org.geotools.swt.utils
Class CursorManager

Object
  extended by CursorManager

public class CursorManager
extends Object

A singleton cursor manager.

This takes care of creating, reusing and managing the various cursors.

Author:
Andrea Antonello (www.hydrologis.com).

Field Summary
static Point CURSOR_HOTSPOT_INFO
          Info Cursor hotspot coordinates
static Point CURSOR_HOTSPOT_PAN
          Pan Cursor hotspot coordinates
static Point CURSOR_HOTSPOT_ZOOMIN
          Zoomin Cursor hotspot coordinates
static Point CURSOR_HOTSPOT_ZOOMOUT
          Zoomout Cursor hotspot coordinates
 
Method Summary
 Cursor getArrowCursor()
           
 Cursor getInfoCursor()
           
static CursorManager getInstance()
           
 Cursor getPanCursor()
           
 Cursor getZoominCursor()
           
 Cursor getZoomoutCursor()
           
 void setCursor(Image image, Point hotspot)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CURSOR_HOTSPOT_INFO

public static final Point CURSOR_HOTSPOT_INFO
Info Cursor hotspot coordinates


CURSOR_HOTSPOT_PAN

public static final Point CURSOR_HOTSPOT_PAN
Pan Cursor hotspot coordinates


CURSOR_HOTSPOT_ZOOMIN

public static final Point CURSOR_HOTSPOT_ZOOMIN
Zoomin Cursor hotspot coordinates


CURSOR_HOTSPOT_ZOOMOUT

public static final Point CURSOR_HOTSPOT_ZOOMOUT
Zoomout Cursor hotspot coordinates

Method Detail

getInstance

public static CursorManager getInstance()

getArrowCursor

public Cursor getArrowCursor()

getInfoCursor

public Cursor getInfoCursor()

getPanCursor

public Cursor getPanCursor()

getZoominCursor

public Cursor getZoominCursor()

getZoomoutCursor

public Cursor getZoomoutCursor()

setCursor

public void setCursor(Image image,
                      Point hotspot)


Copyright © 1996-2014 Geotools. All Rights Reserved.