Re: [udig-devel] How to use MapGraphic to draw a graph

2011-02-17 Thread Jody Garnett
Thank you for the quick reply, Jody. > > The "glass pane" is one of the ways to go. I can draw the zoom in/zoom out > bar by using "glass pane". But it seems that I can achieve the same goal > using Layer. > by using a layer, I can add the zoom in/out bar to a Layer as a feature, and > then I c

Re: [udig-devel] How to use MapGraphic to draw a graph

2011-02-17 Thread Fred Chen
tail on this topic. it will be perfect if you have some code snippets. Thanks, Derek Date: Thu, 17 Feb 2011 20:19:21 +1000 From: jody.garn...@gmail.com To: udig-devel@lists.refractions.net Subject: Re: [udig-devel] How to use MapGraphic to draw a graph There is

Re: [udig-devel] How to use MapGraphic to draw a graph

2011-02-17 Thread Jody Garnett
There is also the "glass pane" which is used to render with draw2d over top of the rest of the rendering system. See the "tracking" tutorial here for an example: http://udig.refractions.net/confluence/display/DEV/2+Training+Materials The interesting part for you will be sorting out if your zoom

Re: [udig-devel] How to use MapGraphic to draw a graph

2011-02-17 Thread andrea antonello
Does the mapgraphic appear in the list of decoration objects? You have to pull it on the map to be drawn. Andrea On Thu, Feb 17, 2011 at 4:42 AM, Fred Chen wrote: > Hi, > > I want to implement a zoom in/zoom out bar. It is something like the > vertical bar in google maps. The map will be zoom in

[udig-devel] How to use MapGraphic to draw a graph

2011-02-17 Thread Fred Chen
Hi, I want to implement a zoom in/zoom out bar. It is something like the vertical bar in google maps. The map will be zoom in or out when users clicks on the bar. I am trying to implement the net.refractions.udig.mapgraphic.MapGraphic interface to draw the bar. So I followed the net.refractio