Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Graphiti » How to resize Polygon shapes and How to have a multiline text
How to resize Polygon shapes and How to have a multiline text [message #563582] Thu, 19 August 2010 22:59 Go to previous message
Daniele is currently offline Daniele
Messages: 45
Registered: August 2010
Member
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.
Daniele
 
Read Message
Read Message
Previous Topic:Use dependency injection instead of singletons for services
Next Topic:Make context buttons API and components accessible to clients.
Goto Forum:
  


Current Time: Fri May 24 09:50:29 EDT 2013

Powered by FUDForum. Page generated in 0.03282 seconds