using Draw2D to scale the figures [message #245359] |
Fri, 05 September 2008 10:16  |
Eclipse User |
|
|
|
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] |
Sun, 07 September 2008 21:39   |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.04273 seconds