Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to create a figure with separate label?
How to create a figure with separate label? [message #659748] Tue, 15 March 2011 13:28 Go to next message
h1055071 is currently offline h1055071
Messages: 335
Registered: July 2009
Senior Member
I've been trying to create a Draw2D Figure that consists of two parts - a central resizeable shape, such as a circle or rectangle, and an editable label for the bottom part. An example of this type of figure is the icon/label you see on a computer's Desktop.

The first attempt was to create a parent container figure with two child sub-figures - a shape figure placed centrally and a label placed at the bottom. It also implemented HandleBounds so that selection and resizing occurs only on the upper shape sub-figure. This turned out not to be a working solution because as the label gets wider with more text so does the main parent figure and consequently the central shape figure. In other words the overall parent figure is as wide as the child label figure.

What I'm seeking is a Figure that maintains the size of the shape figure but allows the width of the label figure to grow independently. Exactly the same behaviour as a desktop icon.

Has anyone done this or anything similar?
Re: How to create a figure with separate label? [message #659949 is a reply to message #659748] Wed, 16 March 2011 10:26 Go to previous message
h1055071 is currently offline h1055071
Messages: 335
Registered: July 2009
Senior Member
Here's a Wiki page describing the problem with screenshot:

http://sourceforge.net/apps/mediawiki/archimate/index.php?ti tle=Drawing_Figures_with_Separate_Labels
Previous Topic:Integrate View within Eclipse MultiPageEditor
Next Topic:Import a SVG image in Draw2d/GEF
Goto Forum:
  


Current Time: Sat Sep 20 12:22:01 GMT 2014

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

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