|Re: using Draw2D to scale the figures [message #245370 is a reply to message #245359]
||Mon, 08 September 2008 01:39
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.
Download example codes from Eclipse cvs, full path is
:pserver:firstname.lastname@example.org :/cvsroot/tools/org.eclipse.gef/examples/org.eclipse.draw2d. examples.
There's a demo named ZoomExample.
Powered by FUDForum
. Page generated in 0.01991 seconds