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: 2
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: 2
Registered: July 2009
Junior Member
thanks David
Previous Topic:Using EMF with multiple editors
Next Topic:container edit part
Goto Forum:
  


Current Time: Thu Jan 18 09:51:10 GMT 2018

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

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