Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Attaching one figure to another
Attaching one figure to another [message #191677] Wed, 10 August 2005 20:01 Go to next message
Eclipse UserFriend
Originally posted by: gef.oppacher.ca

Hi,

I'm trying to attach one figure to another. I have a device figure and a
port figure. I would like to attach a port figure to the outside of a
device figure. Also I'd like the port figure to move with the device
figure whenever the device figure is moved. Do I just have to manually
change the bounds of the ports after a device move? Any help would be
great.
Re: Attaching one figure to another [message #192062 is a reply to message #191677] Sat, 13 August 2005 11:06 Go to previous message
Eclipse UserFriend
Originally posted by: venkataramana.m.tcs.com

Hi, If your want port figure also to move along with device figure ...then
it could be done like this ...

--------------------------------------
/* a transparent container figure to which
Device Figure and PortFigure should be added */
class ContainerFig extends Figure
{
public ContainerFig() { setLayoutManager(new XYLayout()); }

public useLocalCoordinates() { return true; }
}
--------------------------------------

class PortEditPart extends ...
{
boolean isSelectable() { return false; }/*PORT FIGURE WILL NOT BE
SELECTABLE*/
}
--------------------------------------
Previous Topic:What is the best way to make a thick arrow connector?
Next Topic:GEF with EMF (HELP!!!)
Goto Forum:
  


Current Time: Tue Sep 24 11:48:22 GMT 2024

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

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

Back to the top