APIdia Launch Partner
Top Description Constructors Methods
sun.awt.X11

public final Class XCustomCursor

extends X11CustomCursor
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
sun.awt.X11CustomCursor, java.awt.*

A class to encapsulate a custom image-based cursor.
Authors
Thomas Ball, Bino George
See Also
Component#setCursor

Constructor Summary

AccessConstructor and Description
public
XCustomCursor(Image cursor, Point hotSpot, String name)

Method Summary

Modifier and TypeMethod and Description
protected void
createCursor(byte[] xorMask, byte[] andMask, int width, int height, int fcolor, int bcolor, int xHotSpot, int yHotSpot)

Implements abstract sun.awt.X11CustomCursor.createCursor.

pack-priv static Dimension
getBestCursorSize(int preferredWidth, int preferredHeight)

Returns the supported cursor size

Inherited from sun.awt.X11CustomCursor:
createNativeCursor

Constructor Detail

XCustomCursorback to summary
public XCustomCursor(Image cursor, Point hotSpot, String name) throws IndexOutOfBoundsException

Method Detail

createCursorback to summary
protected void createCursor(byte[] xorMask, byte[] andMask, int width, int height, int fcolor, int bcolor, int xHotSpot, int yHotSpot)

Implements abstract sun.awt.X11CustomCursor.createCursor.

Annotations
@Override
getBestCursorSizeback to summary
pack-priv static Dimension getBestCursorSize(int preferredWidth, int preferredHeight)

Returns the supported cursor size