Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Draw2D Anchor Change Location Question
Draw2D Anchor Change Location Question [message #150843] Tue, 14 September 2004 20:23 Go to next message
Eclipse UserFriend
Originally posted by: eemorale.cs.ucsd.edu

Hi,

I'm just experimenting with draw2d and would like to know if there's a
way to move the location of a ConnectionAnchor along another figure
using the draw2d api.

For instance, I have a PolylineConnection that I want to spawn
multiple Connections from, if I use ChopBoxAnchor it will place all
the spawned Connections on top of each other.

I'm aware of the ConnectionRouters, but I want to explicitly give an
anchor an absolute point on my figure. Is there any way to do this?
If there isn't how do I go about doing so?

Thanks for your help,
Ernesto
Re: Draw2D Anchor Change Location Question [message #150869 is a reply to message #150843] Tue, 14 September 2004 22:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: seasnake.gmx.li

Hi, I think XYAnchor would suit your needs.

> Hi,

> I'm just experimenting with draw2d and would like to know if there's a
> way to move the location of a ConnectionAnchor along another figure
> using the draw2d api.

> For instance, I have a PolylineConnection that I want to spawn
> multiple Connections from, if I use ChopBoxAnchor it will place all
> the spawned Connections on top of each other.

> I'm aware of the ConnectionRouters, but I want to explicitly give an
> anchor an absolute point on my figure. Is there any way to do this?
> If there isn't how do I go about doing so?

> Thanks for your help,
> Ernesto
Re: Draw2D Anchor Change Location Question [message #150873 is a reply to message #150869] Tue, 14 September 2004 22:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eemorale.cs.ucsd.edu

Thanks for your reply.

XYAnchor does provide this functionality, however I'd still like the
anchor to have an owner Figure.

Any other ideas?

On Tue, 14 Sep 2004 22:11:57 +0000 (UTC), seasnake@gmx.li (Ilja)
wrote:

>Hi, I think XYAnchor would suit your needs.
>
>> Hi,
>
>> I'm just experimenting with draw2d and would like to know if there's a
>> way to move the location of a ConnectionAnchor along another figure
>> using the draw2d api.
>
>> For instance, I have a PolylineConnection that I want to spawn
>> multiple Connections from, if I use ChopBoxAnchor it will place all
>> the spawned Connections on top of each other.
>
>> I'm aware of the ConnectionRouters, but I want to explicitly give an
>> anchor an absolute point on my figure. Is there any way to do this?
>> If there isn't how do I go about doing so?
>
>> Thanks for your help,
>> Ernesto
>
Re: Draw2D Anchor Change Location Question [message #150885 is a reply to message #150873] Tue, 14 September 2004 23:19 Go to previous message
Eclipse UserFriend
Originally posted by: eemorale.cs.ucsd.edu

Nevermind, I hacked it by extending ChopboxAnchor and overloading the
getBox method. Thanks for your help.

On Tue, 14 Sep 2004 15:30:06 -0700, Ernesto Morales-Perea
<eemorale@cs.ucsd.edu> wrote:

>Thanks for your reply.
>
>XYAnchor does provide this functionality, however I'd still like the
>anchor to have an owner Figure.
>
>Any other ideas?
>
>On Tue, 14 Sep 2004 22:11:57 +0000 (UTC), seasnake@gmx.li (Ilja)
>wrote:
>
>>Hi, I think XYAnchor would suit your needs.
>>
>>> Hi,
>>
>>> I'm just experimenting with draw2d and would like to know if there's a
>>> way to move the location of a ConnectionAnchor along another figure
>>> using the draw2d api.
>>
>>> For instance, I have a PolylineConnection that I want to spawn
>>> multiple Connections from, if I use ChopBoxAnchor it will place all
>>> the spawned Connections on top of each other.
>>
>>> I'm aware of the ConnectionRouters, but I want to explicitly give an
>>> anchor an absolute point on my figure. Is there any way to do this?
>>> If there isn't how do I go about doing so?
>>
>>> Thanks for your help,
>>> Ernesto
>>
Previous Topic:Connection clipping current state of the art
Next Topic:dynamical loading/adding of pallettes ? editing of pallette items
Goto Forum:
  


Current Time: Fri Sep 20 15:01:20 GMT 2024

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

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

Back to the top