Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » two fixed anchors on a RectangleFigure
two fixed anchors on a RectangleFigure [message #182622] Wed, 25 May 2005 23:42 Go to next message
Eclipse UserFriend
Originally posted by: tankun.web.de

hello guys,

i have a componentfigure extended from RectangleFigure as my Figure, the
XYAnchor as anchor,and the PolylineConnection as Connection.
how can i make two anchor on the Figure(on the two
points:RectangleFigure.getLeft(),rectangleFigure.getRight())

i have so tried:

in the componentfigure,i realize two object from XYAnchor.but it didn't
work.

can u tell me,where is my problem?


thx
Re: two fixed anchors on a RectangleFigure [message #183041 is a reply to message #182622] Tue, 31 May 2005 03:27 Go to previous messageGo to next message
Pratik Shah is currently offline Pratik ShahFriend
Messages: 1077
Registered: July 2009
Senior Member
Look at the logic example. The circuits do something similar. Look for
FixedConnectionAnchor and their usage. Also, make sure you're using
absolute coordinates for the anchors.

"Kun Tan" <tankun@web.de> wrote in message
news:3b6b5ad98674a127c3f307db2f96f7f4$1@www.eclipse.org...
> hello guys,
>
> i have a componentfigure extended from RectangleFigure as my Figure, the
> XYAnchor as anchor,and the PolylineConnection as Connection.
> how can i make two anchor on the Figure(on the two
> points:RectangleFigure.getLeft(),rectangleFigure.getRight())
>
> i have so tried:
>
> in the componentfigure,i realize two object from XYAnchor.but it didn't
> work.
>
> can u tell me,where is my problem?
>
>
> thx
>
Re: two fixed anchors on a RectangleFigure [message #183489 is a reply to message #183041] Fri, 03 June 2005 04:47 Go to previous message
Eclipse UserFriend
Originally posted by: tankun.web.de

thank u,i have this problem solved.
Previous Topic:StackOverflowError in GEF 3.1M6
Next Topic:IBM Redbooks Example
Goto Forum:
  


Current Time: Fri Dec 13 03:52:07 GMT 2024

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

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

Back to the top