Hi Cicero,
The EditableOMGraphic objects were intended to be used with the
OMDrawingTool, so I'm not sure how they act if the OMDrawingTool isn't
involved. You can look at that class to see how it sets up the
EditableOMRangeRing, though, and that may help.
In general, though, if you want to repaint a graphic that is part of a
layer, you call repaint() on the layer. You also can get a reference
to the MapBean via the ProjectionEvent that comes to the layer in the
projectionChanged() method, as the source of the event.
Hope this helps,
Don
On Friday, August 9, 2002, at 02:58 PM, Cicero A. W. Zandoná wrote:
> Hi Openmap users
>
> I recently created an OMMonitorRings class, that extends
> OMRangeRings. Also, I had to extend EditableOMRangeRings in order to
> create a new GUI panel.
>
> Well, the problem is that I want the graphic to repaint when the user
> interacts with the panel but that only hapens with mouse interactions,
> but the mouse doesnt give the precision I need.
>
> Looking at the source of EditableOMGraphics I saw that to render the
> graphic I need to have a reference to the MapBean object, more
> precisely to the mapBean.getGraphics() method. But in the mouse
> interaction this is made by the mouseEvent.getSource() method, wich I
> dont have.
>
> If anyone have an idea about how to get this reference, or even
> another way to repaint the gaphic it will be welcome.
>
> Thanks Already
>
> Cicero Zandoná
>
> --
> [To unsubscribe to this list send an email to "majdart@bbn.com"
> with the following text in the BODY of the message "unsubscribe
> openmap-users"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [To unsubscribe to this list send an email to "majdart@bbn.com" with the following text in the BODY of the message "unsubscribe openmap-users"]Received on Sat Aug 10 09:53:48 2002
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT