Re: [OpenMap Users] Click to start/end drawing an OMLine?

From: Don Dietrick <dfdietrick_at_gmail.com>
Date: Tue, 11 Sep 2012 19:52:43 -0400

Hi Ian,

The classes you'd need to adjust are in the com.bbn.openmap.omGraphics.editable package. For OMLine editing, look at the LineStateMachine, which controls the states that control mouse behavior.

It sounds like you want to add something like a PolyAddPointState to the LineStateMachine state array, and get the LineStateMachine to that state instead if going right to the edit state.

I think your users are right, the other OMGraphics need to be modified so if the first mouse action is a click, the subsequent mouse motion action acts like the mouse dragged works now for after a mouse pressed. I'll add this to the list, but there are a couple of things ahead of it I need to take care of first. If you tackle it and need some help, feel free to write.

Hope this helps,

- Don


On Sep 10, 2012, at 9:45 AM, Renton Ian wrote:

> Hi everyone,
>
> Our software (based on OpenMap) allows the user to add objects to their map using a DrawingTool. Previous versions of our software only offered objects that were variations on OMPoint and OMPoly (as a PolyLine), for which the drawing tool behaviour is "click where you want a point".
>
> Our new version includes the ability to draw things based on a single line, for which we have used the OMLine drawing tool. This tool's behaviour is "click and hold the start point, then drag and release at the end point".
>
> Usability testers have found this behaviour quite unexpected, and have struggled to draw the line precisely on a laptop touchpad.
>
> Is there any way built into OpenMap to draw an OMLine using one click at the start and one at the end (or alternatively, to constrain a PolyLine so that it has exactly two points and drawing automatically finishes after clicking the second point)?
>
> If not, could anyone offer any advice as to where in the OpenMap drawing system I would have to start modifying/subclassing in order to achieve this?
>
> Thanks,
>
> Ian
>
> --
> Ian Renton
> UX / Software Engineer
> ATLAS ELEKTRONIK UK
> Atlas House, Dorset Green Tech. Park, DT2 8ZB, U.K.
> Tel: +44 (0) 1305 212341
> The information contained within this e-mail and any files attached to this e-mail are private and in addition may include commercially sensitive information. The contents of this e-mail are for the intended recipient only and therefore if you wish to disclose the information contained within this e-mail or attached files, please contact the sender prior to any such disclosure.
>
> If you are not the intended recipient, any disclosure, copying or distribution is prohibited. Please also contact the sender and inform them of the error and delete the e-mail, including any attached files from your system.
>
> Atlas Elektronik UK Limited Registered Office Meadows Road, Queensway Meadows, Newport, South Wales NP19 4SS, UK. Company No. 05582639
>
> --
> [To unsubscribe to this list send an email to "majdart_at_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_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Sep 11 2012 - 19:54:04 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:10 EDT