Uses of Class
java.awt.Cursor
Package
Description
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
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.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces for dealing with
javax.swing.JTable
.Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.-
Uses of Cursor in com.sun.java.accessibility.util
-
Uses of Cursor in java.awt
Modifier and TypeMethodDescriptionToolkit.createCustomCursor(Image cursor, Point hotSpot, String name)
Creates a new custom cursor object.Component.AccessibleAWTComponent.getCursor()
Gets theCursor
of this object.Component.getCursor()
Gets the cursor set in the component.List.AccessibleAWTList.AccessibleAWTListChild.getCursor()
Get the Cursor of this object.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.Modifier and TypeMethodDescriptionvoid
Sets theCursor
of this object.void
Sets the cursor image to the specified cursor.void
Set the Cursor of this object.void
Sets theCursor
of this object.void
Set the cursor image to a specified cursor. -
Uses of Cursor in java.awt.dnd
Modifier and TypeFieldDescriptionstatic 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.Modifier and TypeMethodDescriptionDragSourceContext.getCursor()
Returns the current custom dragCursor
.Modifier and TypeMethodDescriptionprotected DragSourceContext
DragSource.createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
Creates theDragSourceContext
to handle the current drag operation.void
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
.ModifierConstructorDescriptionDragSourceContext(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
Modifier and TypeMethodDescriptionAccessibleComponent.getCursor()
Gets the cursor of this object. -
Uses of Cursor in javax.swing
Modifier and TypeMethodDescriptionJList.AccessibleJList.AccessibleJListChild.getCursor()
JTable.AccessibleJTable.AccessibleJTableCell.getCursor()
Gets theCursor
of this object.JTree.AccessibleJTree.AccessibleJTreeNode.getCursor()
JInternalFrame.getLastCursor()
Returns the lastCursor
that was set by thesetCursor
method that is not a resizableCursor
.Modifier and TypeMethodDescriptionvoid
Sets the cursor image to the specified cursor.void
void
Sets theCursor
of this object.void
-
Uses of Cursor in javax.swing.table
Modifier and TypeMethodDescriptionJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getCursor()
-
Uses of Cursor in javax.swing.text.html
Modifier and TypeMethodDescriptionHTMLEditorKit.getDefaultCursor()
Returns the default cursor.HTMLEditorKit.getLinkCursor()
Returns the cursor to use over hyper links.Modifier and TypeMethodDescriptionvoid
HTMLEditorKit.setDefaultCursor(Cursor cursor)
Sets the default cursor.void
HTMLEditorKit.setLinkCursor(Cursor cursor)
Sets the cursor to use over links.
getPredefinedCursor(int)
method should be used instead.