|How to resize Polygon shapes and How to have a multiline text [message #563582]
||Thu, 19 August 2010 22:59
Registered: August 2010
Hi there, |
I am using Graphiti to develop an editor for a model in which business objects are associated with different shapes. I have two questions and I really hope that you guys will be able to help me:
Q1) For some of these shapes I am using Polygons. Therefore, is the resize functionality already provided by the framework for Polygons(in a way similar to Rectangle, Ellipse, etc.)?
I am not an expert of eclipse or java but it seems that the answer is NO. Am I wrong?
If I am not should I implement the resizeShape method to resize Ploygon shapes? if YES can you provide me with an example :)
Q2) For all the shapes I need a multiline text similar to the notes shape in the UML editor. Should I use something such as:
"MultiText text = gaService.createDefaultMultiText(shape, addedClass.getName());"
Do you have an example for the EClass Shape in which instead of having a line for the name of the class I can have a multiline description?
Thank you in advance for any suggestions or help.