public class IlvCursorRegistry extends Object
java.awt.Cursor
shapes.
When you create custom cursors using the method
Toolkit.createCustomCursor(java.awt.Image, java.awt.Point, java.lang.String)
,
you can register the image that you use while creating the cursor.
This will allow the Rogue Wave JViews product to work around the fact that there
is no API for retrieving the shape of a custom cursor.Modifier and Type | Method and Description |
---|---|
static Point |
getCustomCursorHotSpot(String name)
Retrieves the hot spot of to a custom cursor.
|
static BufferedImage |
getCustomCursorImage(String name)
Retrieves the image corresponding to a custom cursor.
|
static void |
registerCustomCursor(String name,
Image image,
Point hotSpot)
Registers the image and hot spot of a custom cursor.
|
public static void registerCustomCursor(String name, Image image, Point hotSpot)
public static BufferedImage getCustomCursorImage(String name)
null
if no
cursor of the given name was registered.© Copyright Rogue Wave Software, Inc. 1997, 2018. All Rights Reserved.