Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » using Draw2D to scale the figures
using Draw2D to scale the figures [message #245359] Fri, 05 September 2008 14:16 Go to next message
Juewei Jin is currently offline Juewei JinFriend
Messages: 17
Registered: July 2009
Junior Member
Hi all,

i am doing with a program to parser the xml file, which include the
geographic information of the maps, and try to show the nodes and ways
with diagram. i used RCP and Draw2D in eclipse. unforturnaly there are not
many articles about the development with Draw2D. now i have a problem:
i drawed all the nodes and ways of the maps with draw2D sucessfuly in a
RCP viewer, how can i scale the figures? like zooming the map.
if i want to scale the figures, must i use the ScalableFreeformLayeredPane
in draw2D? are there some example source code about scaling?
by the way, where can i find some good texts about the using with draw2D,
like scale, drag and drop the figures.

thanks

Juewei
Re: using Draw2D to scale the figures [message #245370 is a reply to message #245359] Mon, 08 September 2008 01:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: lifesting.gmail.com

Juewei Jin wrote:
> Hi all,
>
> i am doing with a program to parser the xml file, which include the
> geographic information of the maps, and try to show the nodes and ways
> with diagram. i used RCP and Draw2D in eclipse. unforturnaly there are
> not many articles about the development with Draw2D. now i have a problem:
> i drawed all the nodes and ways of the maps with draw2D sucessfuly in a
> RCP viewer, how can i scale the figures? like zooming the map.
> if i want to scale the figures, must i use the
> ScalableFreeformLayeredPane in draw2D? are there some example source
> code about scaling?
> by the way, where can i find some good texts about the using with
> draw2D, like scale, drag and drop the figures.
>
> thanks
>
> Juewei
>
Download example codes from Eclipse cvs, full path is
:pserver:anonymous@dev.eclipse.org :/cvsroot/tools/org.eclipse.gef/examples/org.eclipse.draw2d. examples.

There's a demo named ZoomExample.
Re: using Draw2D to scale the figures [message #245423 is a reply to message #245370] Wed, 10 September 2008 10:52 Go to previous message
Juewei Jin is currently offline Juewei JinFriend
Messages: 17
Registered: July 2009
Junior Member
thanks David
Previous Topic:[Announce] GEF 3.5.0 I200809091900 is available
Next Topic:Copy, cut and paste don't work
Goto Forum:
  


Current Time: Fri Apr 26 11:13:31 GMT 2024

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

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

Back to the top