Package com.jidesoft.swing
Class JideCursors
java.lang.Object
com.jidesoft.swing.JideCursors
A utility class that create additional cursors used by JIDE products.
Notes: this class has to be public so that JIDE can use it in different packages, not meant to release to end user as
a public API. JIDE will not guarantee the class will remain as it is.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The cursor point when dragged item will be inserted in between.static final int
The drag cursor type.static final int
The no-drop cursor type.static final int
The drag cursor type for text.static final int
The no-drop cursor type for text.static final int
The cursor point pointing to east side.static final int
First id of Cursors used in JIDE products.static final int
The cursor point when dragged item is floating.static final int
The cursor point when dragged item will be inserted in between.static final int
The horizontal split cursor type.static final int
Last id of cursor used by JIDE products.static final int
The cursor for moving toward east.static final int
The cursor for moving toward west.static final int
The cursor point pointing to north side.static final int
The cursor for changing percentage.static final int
The cursor point pointing to south side.static final int
The cursor point pointing when dragged item will be in tabbed pane.static final int
The cursor point when dragged item will be inserted in between.static final int
The vertical split cursor type.static final int
The cursor point pointing to west side. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static Cursor
createCursor
(int type) Creates a cursor specified by type.static Cursor
getPredefinedCursor
(int type) Returns a cursor object with the specified predefined type.static void
setPredefinedCursor
(int type, Cursor cursor) Sets a cursor object with the specified predefined type.
-
Field Details
-
FIRST_CUSTOM_CURSOR
public static final int FIRST_CUSTOM_CURSORFirst id of Cursors used in JIDE products.- See Also:
-
HSPLIT_CURSOR
public static final int HSPLIT_CURSORThe horizontal split cursor type.- See Also:
-
VSPLIT_CURSOR
public static final int VSPLIT_CURSORThe vertical split cursor type.- See Also:
-
DRAG_CURSOR
public static final int DRAG_CURSORThe drag cursor type.- See Also:
-
DRAG_STOP_CURSOR
public static final int DRAG_STOP_CURSORThe no-drop cursor type.- See Also:
-
NORTH_CURSOR
public static final int NORTH_CURSORThe cursor point pointing to north side.- See Also:
-
SOUTH_CURSOR
public static final int SOUTH_CURSORThe cursor point pointing to south side.- See Also:
-
EAST_CURSOR
public static final int EAST_CURSORThe cursor point pointing to east side.- See Also:
-
WEST_CURSOR
public static final int WEST_CURSORThe cursor point pointing to west side.- See Also:
-
TAB_CURSOR
public static final int TAB_CURSORThe cursor point pointing when dragged item will be in tabbed pane.- See Also:
-
FLOAT_CURSOR
public static final int FLOAT_CURSORThe cursor point when dragged item is floating.- See Also:
-
VERTICAL_CURSOR
public static final int VERTICAL_CURSORThe cursor point when dragged item will be inserted in between.- See Also:
-
HORIZONTAL_CURSOR
public static final int HORIZONTAL_CURSORThe cursor point when dragged item will be inserted in between.- See Also:
-
DELETE_CURSOR
public static final int DELETE_CURSORThe cursor point when dragged item will be inserted in between.- See Also:
-
DRAG_TEXT_CURSOR
public static final int DRAG_TEXT_CURSORThe drag cursor type for text.- See Also:
-
DRAG_TEXT_STOP_CURSOR
public static final int DRAG_TEXT_STOP_CURSORThe no-drop cursor type for text.- See Also:
-
PERCENTAGE_CURSOR
public static final int PERCENTAGE_CURSORThe cursor for changing percentage.- See Also:
-
MOVE_EAST_CURSOR
public static final int MOVE_EAST_CURSORThe cursor for moving toward east.- See Also:
-
MOVE_WEST_CURSOR
public static final int MOVE_WEST_CURSORThe cursor for moving toward west.- See Also:
-
LAST_CUSTOM_CURSOR
public static final int LAST_CUSTOM_CURSORLast id of cursor used by JIDE products.- See Also:
-
-
Constructor Details
-
JideCursors
public JideCursors()
-
-
Method Details
-
getPredefinedCursor
Returns a cursor object with the specified predefined type.- Parameters:
type
- the type of predefined cursor- Returns:
- the cursor associated with that type.
- Throws:
IllegalArgumentException
- if the specified cursor type is invalid
-
setPredefinedCursor
Sets a cursor object with the specified predefined type.- Parameters:
type
- the type of predefined cursorcursor
- the cursor associated with that type- Throws:
IllegalArgumentException
- if the specified cursor type is invalid
-
createCursor
Creates a cursor specified by type.- Parameters:
type
- cursor type- Returns:
- the cursor with that type
-