There were indeed some changes in this class so that it is better extensible.

Note that you should better override the createBodyFigure() method instead of the paintFigure() one. You can have a look at the ActorFigure in the org.topcased.modeler.uml plugin as an example.

Regards,
Jacques

J.Niepostyn a écrit :
Hi,
I installed Topcased 2.1 package.
I run my own model, where I wrote some method in:
public class UtworzenieFigure extends
		org.topcased.draw2d.figures.GraphicWithLabelFigure {
.....
@Override
public void paintFigure(Graphics graphics) {
	graphics.pushState();
	int width = getBounds().width;
	int height = getBounds().height;
	int x = getBounds().x;
	int y = getBounds().y;
	graphics.setBackgroundColor(graphics.getForegroundColor());
	graphics.fillOval(x + width / 4, y, width / 2, height / 2);
	graphics.popState();
}}
When I run my model I saw an uncomfortably picture. Some little rectangle
was at bottom my figure. This is same with Topcased 2.0.
What is wrong ?
Jurek.


_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
  

--
Anyware Technologies
Jacques LESCOT
Project Manager
Eclipse Technical Expert
[EMAIL PROTECTED]
Standard : +33(0)5 61 00 52 90
Direct : +33(0)5 61 00 06 60
Mobile : +33(0)6 74 49 23 34
Fax : +33(0)5 61 00 51 46
 
New address

Anyware Technologies
Lake Park
ZAC de l'Hers - Allée du Lac
BP 87216
31672 Labège Cedex
France
www.anyware-tech.com
_______________________________________________
Topcased-users mailing list
[email protected]
http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users

Reply via email to