Thanks Don,
I'll investigate on the OMDrawingToolMouseMode.
Adams
On 12/16/08, Don Dietrick <dietrick@bbn.com> wrote:
> Hi Adams,
>
> Hmm, I never thought about getting updates this way before. If you
> have the OMGraphic being modified, you can ask it where it is. The
> OMDrawingToolMouseMode gets events so you could extend that to figure
> out when it's been told about another mouse movement, so you know when
> to query the OMGraphic for its position (after the mouse mode reacts
> to the movement by modifying the OMGraphic).
>
> Hope this helps,
>
> Don
>
> On Dec 15, 2008, at 8:55 AM, Adams Tan wrote:
>
>> Hi, any help here?
>>
>> On Mon, Dec 8, 2008 at 11:12 PM, Adams Tan <nikida78@gmail.com> wrote:
>> Hi,
>>
>> I have this layer extended from EditorLayer, and I have this scenario.
>>
>> Using the default drawing tools, I add a rectangle. By extending the
>> drawingComplete method, I manage to capture
>> the boundaries of the rectangle (lat, lon) into another swing dialog
>> box, when the rectangle is created.
>>
>> Next, I choose the select gesture, and I drag the rectangle (drawn
>> previously) across onto another position. The rectangle
>> is still in edit mode (with the corner selectors), since I hasn't
>> off click on the map yet. At this stage, I want to update the
>> boundaries of the rectangle displayed in abovementioned dialog box.
>> However, I can't find the event which I can locate the
>> OMGraphic (the rectangle) being dragged. The drawingComplete method
>> hasn't been fired at this point, so I can't use it either.
>>
>> How can I capture this event, once the dragging of the edited
>> OMGraphic stops.
>>
>> Thank you,
>> Adams Tan
>>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> 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 Mon Dec 15 21:03:06 2008
This archive was generated by hypermail 2.1.8 : Mon Dec 15 2008 - 21:03:06 EST