Re: [OpenMap Users] Graphic creation without extra click at end

From: Don Dietrick <dietrick@bbn.com>
Date: Wed May 19 2004 - 10:07:40 EDT

Hi Pete,

On May 18, 2004, at 4:31 AM, Peter Wilkes wrote:

> Don,
>
> Appreicate the answers.
>
> some follow up questions.
>
> since the graphic creation is suppose to work like powerpoint is there
> a
> way to cancel the graphic creation programmatically while the icon is
> in
> that middle state?

I don't know what one thing has to do with the other, but yes, the
OMDrawingTool has a deactivate() method that takes a masked int that
tells it what to do with the OMGraphic it's working on. The
OMGraphicDeleteTool, for instance, uses it and tells it to delete the
OMGraphic.

> Also for the application we have we would prefer the user not go
> creating
> layers on their own... Is there a way to add the UTMGridPlugin
> programmatically?

Sure, create it, configure it, and add it to the MapHandler. That
works for pretty much every component.

- Don

>
> On Mon, 17 May 2004, Don Dietrick wrote:
>
>> Hi Peter,
>>
>> On May 17, 2004, at 10:09 AM, Peter Wilkes wrote:
>>
>>> Hello,
>>>
>>> we have a layer that acts similiarly to your Drawing Tool layer.
>>> however we would like to set it up so that it acts like the drawing
>>> tool
>>> creation except that after the icon is created you don't need to
>>> click
>>> afterwords.
>>>
>>> for example. using the openmap demo app. only set the Drawing layer
>>> active. create a circle. notice to finalize the creation of the
>>> circle
>>> you need to click (Semi) outside the circle you are creating.
>>>
>>> is there a way to set this up so that after the user drags the mouse
>>> to
>>> set the circle size it automatically finializes the circle creation?
>>
>> Not without writing code. You'd have to modify the edit states of the
>> different EditableOMGraphics state machines so they skipped the part
>> where they went to the selected state.
>>
>> Just so you know, it works the way it does because the general
>> consensus was that it should work like PowerPoint, so it would be
>> somewhat expected. But, that's the beauty of open-source.
>>
>>> Also i remember as emails were being passed around that there was a
>>> layer
>>> that displayed the MGRS tick markers at the side of the map? similiar
>>> to
>>> the Graticle for Lat/Lon? if this is true is there an FAQ that shows
>>> how
>>> to enable this in your properties file?
>>
>> There isn't one that renders labels at the side of the map. The
>> UTMGridPlugIn renders labels in the corner of the different zone
>> boxes.
>> You can add one via the Add Layers panel, or you can check out the
>> JavaDocs for the plugin to get the properties for that plugin.
>>
>> - Don
>>
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>> Don Dietrick, dietrick@bbn.com
>> BBN Technologies, Cambridge, MA
>> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>>
>>
>
> --
> [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, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Wed May 19 10:09:32 2004

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT