vsaraogi
vsaraogi

Reputation: 31

Creating Figures in GEF eclipse

In GEF I want to create figure that is rhombus in shape and also I want to add label to each of the vertex of the figure with some text for each vertex. How can I do it?

Upvotes: 1

Views: 643

Answers (1)

vainolo
vainolo

Reputation: 6987

Implement a figure that is composed of 5 elements: four labels and a rhombus figure. Place each figure inside the parent figure using standard draw2d constrants. The rhombus figure itself is easy to implement, by extending the Shape class. You can see how I did this for a triangle. If you need more in-depth knowledge of draw2d, check out this tutorial.

Upvotes: 1

Related Questions