Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Additional parameters for constructor of custom figures
Additional parameters for constructor of custom figures [message #71340] Sat, 28 October 2006 20:04
Michael Moser is currently offline Michael MoserFriend
Messages: 914
Registered: July 2009
Senior Member
If the constructor of a custom figure requires additional parameters,
e.g.

public NoteFigure(int width, int height, Insets insets) { ... }

How/where can one define such parameters? Or is the onl;y way to define
a derived class that hard-codes these parameters, i.e. something like

public MySpecialNoteFigure() extends NoteFigure {
super(50, 70, new Insets(5,5,5,5));
}
?

Michael
Previous Topic:create a color block
Next Topic:exporting ecore diagrams to svg: how to link out of the document.
Goto Forum:
  


Current Time: Fri Apr 19 02:58:05 GMT 2024

Powered by FUDForum. Page generated in 0.01910 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top