[OpenMap Users] MouseMode Support for cursorID Property

From: Renton Ian <ian.renton_at_uk.atlas-elektronik.com>
Date: Fri, 25 May 2012 12:15:36 +0100

Hi,

It looks from the source of AbstractMouseMode that MouseModes support a cursorID property that sets the cursor to use when that MouseMode is active. It looks for one of the static defined cursors in java.awt.Cursor, e.g. CROSSHAIR_CURSOR.

However, I can't get it to work in any MouseMode. I've tried loading it as a property, e.g.

    distanceMouseMode.cursorID=HAND_CURSOR

...and I've tried extending the class and setting the cursor programatically, e.g.

    public class DistanceMouseMode2 extends DistanceMouseMode
    {
      public DistanceMouseMode2()
      {
        super();
        setModeCursor(new Cursor(Cursor.CROSSHAIR_CURSOR));
      }
    }

...but the cursor remains the normal pointer.

Can anyone tell me what I'm doing wrong?

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"]
Received on Fri May 25 2012 - 07:16:38 EDT

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