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 Perforce 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 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.