|
I want to set the icon of a vertex cell with shape label but nothing seems to work: \nObject v1 = graph.insertVertex(parent, null,"Click here", 10, 10, 30, 50,\n "shape=label;image=images/icons/info.png;" ); \nI also tryed image=file:://imagepath.. \nMaybe this do not work for java only javascript?\nImageIcon newVertexImage = new ImageIcon("images/icons/info.png"); works. \nOr maybe there is a problem for windows? |
|
Very confusing, when i set the style image my cpu performance goes to 100%?! \n"shape=image;image=file:///documente/studium/Diplomarbeit/worspace/buildtreebank/images/office_building.png;" \nPerhaps anything do not function with this style..?? \nMaybe it is because of the absolute but not nessessary unique path under windows? \nCan anyone tell me how can i use rellative paths here?\nWere must the images be located. |
|
See com.mxgraph.examples.swing.GraphEditor.java for an example (line 116, line 124). |