public abstract class CursorManager<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALIAS |
static int |
CELL |
static int |
COLUMN_RESIZE |
static int |
CONTEXT_MENU |
static int |
COPY |
static int |
CROSS |
static int |
EAST_PANNING |
static int |
EAST_RESIZE |
static int |
EAST_WEST_RESIZE |
static int |
GRAB |
static int |
GRABBING |
static int |
HAND |
static int |
HELP |
private static CursorManager |
instance |
private java.util.Map<java.lang.Long,T> |
map |
static int |
MIDDLE_PANNING |
static int |
MOVE |
static int |
NO_DROP |
static int |
NONE |
static int |
NORTH_EAST_PANNING |
static int |
NORTH_EAST_RESIZE |
static int |
NORTH_EAST_SOUTH_WEST_RESIZE |
static int |
NORTH_PANNING |
static int |
NORTH_RESIZE |
static int |
NORTH_SOUTH_RESIZE |
static int |
NORTH_WEST_PANNING |
static int |
NORTH_WEST_RESIZE |
static int |
NORTH_WEST_SOUTH_EAST_RESIZE |
static int |
NOT_ALLOWED |
static int |
POINTER |
static int |
PROGRESS |
static int |
ROW_RESIZE |
static int |
SOUTH_EAST_PANNING |
static int |
SOUTH_EAST_RESIZE |
static int |
SOUTH_PANNING |
static int |
SOUTH_RESIZE |
static int |
SOUTH_WEST_PANNING |
static int |
SOUTH_WEST_RESIZE |
static int |
TEXT |
static int |
VERTICAL_TEXT |
static int |
WAIT |
static int |
WEST_PANNING |
static int |
WEST_RESIZE |
static int |
ZOOM_IN |
static int |
ZOOM_OUT |
Constructor and Description |
---|
CursorManager() |
Modifier and Type | Method and Description |
---|---|
T |
getCursor(long id) |
static CursorManager |
getCursorManager() |
protected abstract T |
getCustomCursor(WCImage image,
int hotspotX,
int hotspotY) |
private long |
getCustomCursorID(WCImageFrame frame,
int hotspotX,
int hotspotY) |
protected abstract T |
getPredefinedCursor(int type) |
private long |
getPredefinedCursorID(int type) |
private long |
putCursor(T cursor) |
static void |
setCursorManager(CursorManager manager) |
@Native public static final int POINTER
@Native public static final int CROSS
@Native public static final int HAND
@Native public static final int MOVE
@Native public static final int TEXT
@Native public static final int WAIT
@Native public static final int HELP
@Native public static final int EAST_RESIZE
@Native public static final int NORTH_RESIZE
@Native public static final int NORTH_EAST_RESIZE
@Native public static final int NORTH_WEST_RESIZE
@Native public static final int SOUTH_RESIZE
@Native public static final int SOUTH_EAST_RESIZE
@Native public static final int SOUTH_WEST_RESIZE
@Native public static final int WEST_RESIZE
@Native public static final int NORTH_SOUTH_RESIZE
@Native public static final int EAST_WEST_RESIZE
@Native public static final int NORTH_EAST_SOUTH_WEST_RESIZE
@Native public static final int NORTH_WEST_SOUTH_EAST_RESIZE
@Native public static final int COLUMN_RESIZE
@Native public static final int ROW_RESIZE
@Native public static final int MIDDLE_PANNING
@Native public static final int EAST_PANNING
@Native public static final int NORTH_PANNING
@Native public static final int NORTH_EAST_PANNING
@Native public static final int NORTH_WEST_PANNING
@Native public static final int SOUTH_PANNING
@Native public static final int SOUTH_EAST_PANNING
@Native public static final int SOUTH_WEST_PANNING
@Native public static final int WEST_PANNING
@Native public static final int VERTICAL_TEXT
@Native public static final int CELL
@Native public static final int CONTEXT_MENU
@Native public static final int NO_DROP
@Native public static final int NOT_ALLOWED
@Native public static final int PROGRESS
@Native public static final int ALIAS
@Native public static final int ZOOM_IN
@Native public static final int ZOOM_OUT
@Native public static final int COPY
@Native public static final int NONE
@Native public static final int GRAB
@Native public static final int GRABBING
private static CursorManager instance
private final java.util.Map<java.lang.Long,T> map
public static void setCursorManager(CursorManager manager)
public static CursorManager getCursorManager()
protected abstract T getPredefinedCursor(int type)
private long getCustomCursorID(WCImageFrame frame, int hotspotX, int hotspotY)
private long getPredefinedCursorID(int type)
public final T getCursor(long id)
private long putCursor(T cursor)