| 
| about ConnectionEndPointLocator [message #144362] | Sun, 25 July 2004 12:37 |  | 
| Eclipse User  |  |  |  |  | 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!
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.08472 seconds