Uses of Class
java.awt.Cursor
Package | Description |
---|---|
com.sun.java.accessibility.util |
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
|
java.awt |
Contains all of the classes for creating user interfaces and for painting
graphics and images.
|
java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
|
javax.accessibility |
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
|
javax.swing |
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
|
javax.swing.text.html |
Provides the class
HTMLEditorKit and supporting classes for creating
HTML text editors. |
-
Uses of Cursor in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return Cursor Modifier and Type Method Description Cursor
Translator. getCursor()
Get theCursor
of this object.Methods in com.sun.java.accessibility.util with parameters of type Cursor Modifier and Type Method Description void
Translator. setCursor(Cursor c)
Set theCursor
of this object. -
Uses of Cursor in java.awt
Fields in java.awt declared as Cursor Modifier and Type Field Description protected static Cursor[]
Cursor. predefined
Deprecated.As of JDK version 1.7, thegetPredefinedCursor(int)
method should be used instead.Methods in java.awt that return Cursor Modifier and Type Method Description Cursor
Toolkit. createCustomCursor(Image cursor, Point hotSpot, String name)
Creates a new custom cursor object.Cursor
Component.AccessibleAWTComponent. getCursor()
Gets theCursor
of this object.Cursor
Component. getCursor()
Gets the cursor set in the component.Cursor
List.AccessibleAWTList.AccessibleAWTListChild. getCursor()
Get the Cursor of this object.Cursor
MenuComponent.AccessibleAWTMenuComponent. getCursor()
Gets theCursor
of this object.static Cursor
Cursor. getDefaultCursor()
Return the system default cursor.static Cursor
Cursor. getPredefinedCursor(int type)
Returns a cursor object with the specified predefined type.static Cursor
Cursor. getSystemCustomCursor(String name)
Returns a system-specific custom cursor object matching the specified name.Methods in java.awt with parameters of type Cursor Modifier and Type Method Description void
Component.AccessibleAWTComponent. setCursor(Cursor cursor)
Sets theCursor
of this object.void
Component. setCursor(Cursor cursor)
Sets the cursor image to the specified cursor.void
List.AccessibleAWTList.AccessibleAWTListChild. setCursor(Cursor cursor)
Set the Cursor of this object.void
MenuComponent.AccessibleAWTMenuComponent. setCursor(Cursor cursor)
Sets theCursor
of this object.void
Window. setCursor(Cursor cursor)
Set the cursor image to a specified cursor. -
Uses of Cursor in java.awt.dnd
Fields in java.awt.dnd declared as Cursor Modifier and Type Field Description static Cursor
DragSource. DefaultCopyDrop
The defaultCursor
to use with a copy operation indicating that a drop is currently allowed.static Cursor
DragSource. DefaultCopyNoDrop
The defaultCursor
to use with a copy operation indicating that a drop is currently not allowed.static Cursor
DragSource. DefaultLinkDrop
The defaultCursor
to use with a link operation indicating that a drop is currently allowed.static Cursor
DragSource. DefaultLinkNoDrop
The defaultCursor
to use with a link operation indicating that a drop is currently not allowed.static Cursor
DragSource. DefaultMoveDrop
The defaultCursor
to use with a move operation indicating that a drop is currently allowed.static Cursor
DragSource. DefaultMoveNoDrop
The defaultCursor
to use with a move operation indicating that a drop is currently not allowed.Methods in java.awt.dnd that return Cursor Modifier and Type Method Description Cursor
DragSourceContext. getCursor()
Returns the current custom dragCursor
.Methods in java.awt.dnd with parameters of type Cursor Modifier and Type Method Description protected DragSourceContext
DragSource. createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
Creates theDragSourceContext
to handle the current drag operation.void
DragSourceContext. setCursor(Cursor c)
Sets the custom cursor for this drag operation to the specifiedCursor
.void
DragGestureEvent. startDrag(Cursor dragCursor, Transferable transferable)
Starts the drag operation given theCursor
for this drag operation and theTransferable
representing the source data for this drag operation.void
DragGestureEvent. startDrag(Cursor dragCursor, Transferable transferable, DragSourceListener dsl)
Starts the drag given the initialCursor
to display, theTransferable
object, and theDragSourceListener
to use.void
DragGestureEvent. startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl)
Start the drag given the initialCursor
to display, a dragImage
, the offset of theImage
, theTransferable
object, and theDragSourceListener
to use.void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl)
Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theTransferable
subject data of the drag, and theDragSourceListener
.void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theTransferable
subject data of the drag, theDragSourceListener
, and theFlavorMap
.void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl)
Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theImage
to drag, the offset of theImage
origin from the hotspot of theCursor
at the instant of the trigger, the subject data of the drag, and theDragSourceListener
.void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
Start a drag, given theDragGestureEvent
that initiated the drag, the initialCursor
to use, theImage
to drag, the offset of theImage
origin from the hotspot of theCursor
at the instant of the trigger, theTransferable
subject data of the drag, theDragSourceListener
, and theFlavorMap
.Constructors in java.awt.dnd with parameters of type Cursor Constructor Description DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)
Called fromDragSource
, this constructor creates a newDragSourceContext
given theDragSourceContextPeer
for this Drag, theDragGestureEvent
that triggered the Drag, the initialCursor
to use for the Drag, an (optional)Image
to display while the Drag is taking place, the offset of theImage
origin from the hotspot at the instant of the triggering event, theTransferable
subject data, and theDragSourceListener
to use during the Drag and Drop operation. -
Uses of Cursor in javax.accessibility
Methods in javax.accessibility that return Cursor Modifier and Type Method Description Cursor
AccessibleComponent. getCursor()
Gets the cursor of this object.Methods in javax.accessibility with parameters of type Cursor Modifier and Type Method Description void
AccessibleComponent. setCursor(Cursor cursor)
Sets the cursor of this object. -
Uses of Cursor in javax.swing
Methods in javax.swing that return Cursor Modifier and Type Method Description Cursor
JTable.AccessibleJTable.AccessibleJTableCell. getCursor()
Gets theCursor
of this object.Cursor
JInternalFrame. getLastCursor()
Returns the lastCursor
that was set by thesetCursor
method that is not a resizableCursor
. -
Uses of Cursor in javax.swing.text.html
Methods in javax.swing.text.html that return Cursor Modifier and Type Method Description Cursor
HTMLEditorKit. getDefaultCursor()
Returns the default cursor.Cursor
HTMLEditorKit. getLinkCursor()
Returns the cursor to use over hyper links.Methods in javax.swing.text.html with parameters of type Cursor Modifier and Type Method Description void
HTMLEditorKit. setDefaultCursor(Cursor cursor)
Sets the default cursor.void
HTMLEditorKit. setLinkCursor(Cursor cursor)
Sets the cursor to use over links.