Hi David,
You would need to change the behavior of the State object, in the
StateMachine of the EditableOMGraphic. Most EditableOMGraphic's
StateMachine use the com.bbn.openmap.editable.GraphicSelectedState (or
a derivation of that) to represent the state when the OMGraphic is at
rest with the GrabPoints visible, and interpret a mouse click off of
the OMGraphic as a sign to exit. You sound like you want that decision
moved to the GraphicEditState on mouseReleased(). That would be
something you would have to do for EditStates of the EditableOMGraphics
you want to change.
It's a nice option, now that you mention it. Sounds like the
EditableOMGraphic should have a behavior mask defining that behavior.
- Don
On Mar 24, 2004, at 4:50 PM, David Ward wrote:
>
> I'd like to change the creation behaviour for the DrawingTool so that
> upon finishing the initial creation gesture it skips going into edit
> mode and invokes the drawingComplete method of the
> DrawingToolRequestor. I'd like the creation of the graphic to be
> completed in one gesture in stead of two, e.i. for an OmRect define
> the extent of the rectangle with the click and drag and upon releasing
> the mouse button the rectangle creatino is complete.
>
> I've been threading through the EditableOmGraphic classes and the
> DrawingTool classes but have not yet found where I might implement the
> behavior change.
>
> Any suggestions are greatly appreciated.
>
>
>
> -----------------
> David J. Ward
> mry_yachtsman@hotmail.com
>
> _________________________________________________________________
> Is your PC infected? Get a FREE online computer virus scan from
> McAfeeŽ Security.
> http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
>
> --
> [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"]
>
-- [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 Thu Mar 25 10:28:57 2004
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:38 EDT