Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » about ConnectionEndPointLocator
about ConnectionEndPointLocator [message #144362] Sun, 25 July 2004 16:37
Eclipse UserFriend
Originally posted by: joseph.yahoo.com

Hi
Now I am working on a Figure which can have a EndPointLocator just like
ConnectionPointLocator. Can it work?
When I use setUDistance(-15) the label on PolyLineConnection will behind
the connection. I want my Figure have a end point locator to locate a
label behind it. I use DelegatingLayout as my figure's layoutmanager. when
I add a label to this figure I find that the label's location value is
behind the figure in debug mode but I cannot see the label behind my
figure.
relocate(IFigure target){
//figure is this label's parent figure this
Rectangle rect = new Rectangle(figure.getBounds().x +
figure.getBounds().width + 10,
figure.getBounds().y ,
20,20);
target.setBounds(rect);
);
}
Will I translate the coordinate system?
thanks in advance!
Previous Topic:repainting, repainting, repainting.......
Next Topic:About ViewPart
Goto Forum:
  


Current Time: Tue Jan 28 14:54:15 GMT 2025

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

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

Back to the top