im drawing a vertex in my graph

Object v1 = graph.insertVertex(parent, null, "aa", 10, 10, 5,30,"shape=ellipse;fillColor=#FF6666");

and i want to set his style and his name , any answer will be appreciate

asked 07 May '12, 17:56

Wassim%20Sboui's gravatar image

Wassim Sboui
16
accept rate: 0%


Check out the documentation here:

http://www.jgraph.com/doc/mxgraph/index_javavis.html

There are various ways, e. g. set style and label as parameter in the insertVertex method, setStyle(cell, style), overriding toString() in your value object, etc.

link

answered 08 May '12, 01:26

Lofi's gravatar image

Lofi
1.0k1221
accept rate: 37%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×194
×66
×50
×45

Asked: 07 May '12, 17:56

Seen: 2,140 times

Last updated: 08 May '12, 01:26