Package com.jidesoft.swing
Class JideCursors
- java.lang.Object
-
- com.jidesoft.swing.JideCursors
-
public class JideCursors extends java.lang.ObjectA 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
Fields Modifier and Type Field Description static intDELETE_CURSORThe cursor point when dragged item will be inserted in between.static intDRAG_CURSORThe drag cursor type.static intDRAG_STOP_CURSORThe no-drop cursor type.static intDRAG_TEXT_CURSORThe drag cursor type for text.static intDRAG_TEXT_STOP_CURSORThe no-drop cursor type for text.static intEAST_CURSORThe cursor point pointing to east side.static intFIRST_CUSTOM_CURSORFirst id of Cursors used in JIDE products.static intFLOAT_CURSORThe cursor point when dragged item is floating.static intHORIZONTAL_CURSORThe cursor point when dragged item will be inserted in between.static intHSPLIT_CURSORThe horizontal split cursor type.static intLAST_CUSTOM_CURSORLast id of cursor used by JIDE products.static intMOVE_EAST_CURSORThe cursor for moving toward east.static intMOVE_WEST_CURSORThe cursor for moving toward west.static intNORTH_CURSORThe cursor point pointing to north side.static intPERCENTAGE_CURSORThe cursor for changing percentage.static intSOUTH_CURSORThe cursor point pointing to south side.static intTAB_CURSORThe cursor point pointing when dragged item will be in tabbed pane.static intVERTICAL_CURSORThe cursor point when dragged item will be inserted in between.static intVSPLIT_CURSORThe vertical split cursor type.static intWEST_CURSORThe cursor point pointing to west side.
-
Constructor Summary
Constructors Constructor Description JideCursors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static java.awt.CursorcreateCursor(int type)Creates a cursor specified by type.static java.awt.CursorgetPredefinedCursor(int type)Returns a cursor object with the specified predefined type.static voidsetPredefinedCursor(int type, java.awt.Cursor cursor)Sets a cursor object with the specified predefined type.
-
-
-
Field Detail
-
FIRST_CUSTOM_CURSOR
public static final int FIRST_CUSTOM_CURSOR
First id of Cursors used in JIDE products.- See Also:
- Constant Field Values
-
HSPLIT_CURSOR
public static final int HSPLIT_CURSOR
The horizontal split cursor type.- See Also:
- Constant Field Values
-
VSPLIT_CURSOR
public static final int VSPLIT_CURSOR
The vertical split cursor type.- See Also:
- Constant Field Values
-
DRAG_CURSOR
public static final int DRAG_CURSOR
The drag cursor type.- See Also:
- Constant Field Values
-
DRAG_STOP_CURSOR
public static final int DRAG_STOP_CURSOR
The no-drop cursor type.- See Also:
- Constant Field Values
-
NORTH_CURSOR
public static final int NORTH_CURSOR
The cursor point pointing to north side.- See Also:
- Constant Field Values
-
SOUTH_CURSOR
public static final int SOUTH_CURSOR
The cursor point pointing to south side.- See Also:
- Constant Field Values
-
EAST_CURSOR
public static final int EAST_CURSOR
The cursor point pointing to east side.- See Also:
- Constant Field Values
-
WEST_CURSOR
public static final int WEST_CURSOR
The cursor point pointing to west side.- See Also:
- Constant Field Values
-
TAB_CURSOR
public static final int TAB_CURSOR
The cursor point pointing when dragged item will be in tabbed pane.- See Also:
- Constant Field Values
-
FLOAT_CURSOR
public static final int FLOAT_CURSOR
The cursor point when dragged item is floating.- See Also:
- Constant Field Values
-
VERTICAL_CURSOR
public static final int VERTICAL_CURSOR
The cursor point when dragged item will be inserted in between.- See Also:
- Constant Field Values
-
HORIZONTAL_CURSOR
public static final int HORIZONTAL_CURSOR
The cursor point when dragged item will be inserted in between.- See Also:
- Constant Field Values
-
DELETE_CURSOR
public static final int DELETE_CURSOR
The cursor point when dragged item will be inserted in between.- See Also:
- Constant Field Values
-
DRAG_TEXT_CURSOR
public static final int DRAG_TEXT_CURSOR
The drag cursor type for text.- See Also:
- Constant Field Values
-
DRAG_TEXT_STOP_CURSOR
public static final int DRAG_TEXT_STOP_CURSOR
The no-drop cursor type for text.- See Also:
- Constant Field Values
-
PERCENTAGE_CURSOR
public static final int PERCENTAGE_CURSOR
The cursor for changing percentage.- See Also:
- Constant Field Values
-
MOVE_EAST_CURSOR
public static final int MOVE_EAST_CURSOR
The cursor for moving toward east.- See Also:
- Constant Field Values
-
MOVE_WEST_CURSOR
public static final int MOVE_WEST_CURSOR
The cursor for moving toward west.- See Also:
- Constant Field Values
-
LAST_CUSTOM_CURSOR
public static final int LAST_CUSTOM_CURSOR
Last id of cursor used by JIDE products.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPredefinedCursor
public static java.awt.Cursor getPredefinedCursor(int type)
Returns a cursor object with the specified predefined type.- Parameters:
type- the type of predefined cursor- Returns:
- the cursor associated with that type.
- Throws:
java.lang.IllegalArgumentException- if the specified cursor type is invalid
-
setPredefinedCursor
public static void setPredefinedCursor(int type, java.awt.Cursor cursor)Sets a cursor object with the specified predefined type.- Parameters:
type- the type of predefined cursorcursor- the cursor associated with that type- Throws:
java.lang.IllegalArgumentException- if the specified cursor type is invalid
-
createCursor
protected static java.awt.Cursor createCursor(int type)
Creates a cursor specified by type.- Parameters:
type- cursor type- Returns:
- the cursor with that type
-
-