Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Custom Connection Decoration, rotation
Custom Connection Decoration, rotation [message #199820] Fri, 01 August 2008 12:21 Go to next message
Patry Olivier is currently offline Patry OlivierFriend
Messages: 54
Registered: July 2009
Member
Hi,

I'm using a custom connection decoration.

This is a rectangle filled-in. It works well, but I would like to rotate
my rectangle.

myGraphics.rotate((float)45.0); make an error

How can I get this?

Thanks,

Olivier PATRY
Re: Custom Connection Decoration, rotation [message #200764 is a reply to message #199820] Wed, 06 August 2008 11:18 Go to previous messageGo to next message
Axel Guckelsberger is currently offline Axel GuckelsbergerFriend
Messages: 354
Registered: July 2009
Senior Member
Hi,

you have to implement RotatableDecoration or inherit from existing
Draw2D implementations like RotatablePolygon.

Greetings

Axel


Olivier PATRY schrieb:
> Hi,
>
> I'm using a custom connection decoration.
>
> This is a rectangle filled-in. It works well, but I would like to rotate
> my rectangle.
>
> myGraphics.rotate((float)45.0); make an error
>
> How can I get this?
>
> Thanks,
>
> Olivier PATRY
Re: Custom Connection Decoration, rotation [message #200781 is a reply to message #199820] Wed, 06 August 2008 12:02 Go to previous message
Eclipse UserFriend
Originally posted by: tobk42.gmx.de

If you want just a rotated, but fixed rectangle (like for an
aggregation/composite decoration) you could use a polygon or polyline
instead.

Regards,
Tobias



Olivier PATRY schrieb:
> Hi,
>
> I'm using a custom connection decoration.
>
> This is a rectangle filled-in. It works well, but I would like to rotate
> my rectangle.
>
> myGraphics.rotate((float)45.0); make an error
>
> How can I get this?
>
> Thanks,
>
> Olivier PATRY
Previous Topic:displaying a dialogue when adding a node
Next Topic:copy container element as well as children element
Goto Forum:
  


Current Time: Fri Apr 26 02:18:49 GMT 2024

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

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

Back to the top