Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Flip and rotate display
Flip and rotate display [message #152448] Wed, 29 September 2004 19:48 Go to next message
Eclipse UserFriend
Originally posted by: kvdijken.tiscali.nl

Hello,

I want to be able to rotate and flip the display of a GEF editor with a
ScrollingGraphicalViewer and ScalableFreeformRootEditPart, so only display
movement, no coordinate changes of Figures.

Could the following method work ?

subclass ScalableFreeformRootEditPart, with a subclassed FreeformViewport,
which uses a final user settable transformation in its translateXXX methods

or are there hidden caveats. I only need to display polygons, polylines and
ellipses.

Koen van Dijken
Re: Flip and rotate display [message #152457 is a reply to message #152448] Wed, 29 September 2004 21:32 Go to previous message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

The translate methods are not called when painting. Only when converting to
and from absolute coordinates.

"Koen van Dijken" <kvdijken@tiscali.nl> wrote in message
news:cjf39o$ecr$1@eclipse.org...
> Hello,
>
> I want to be able to rotate and flip the display of a GEF editor with a
> ScrollingGraphicalViewer and ScalableFreeformRootEditPart, so only display
> movement, no coordinate changes of Figures.
>
> Could the following method work ?
>
> subclass ScalableFreeformRootEditPart, with a subclassed FreeformViewport,
> which uses a final user settable transformation in its translateXXX
methods
>
> or are there hidden caveats. I only need to display polygons, polylines
and
> ellipses.
>
> Koen van Dijken
>
>
Previous Topic:collapse/expand nested container problem
Next Topic:problems trying to use org.eclipse.gef.ui.parts.TreeViewer in the simplest way
Goto Forum:
  


Current Time: Mon Jan 13 11:06:45 GMT 2025

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

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

Back to the top