public class TLcdJava2Util
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CENTER_FOCUS_POINT
Central position for the focus point for cursors created with this class.
|
static int |
TOPLEFT_FOCUS_POINT
Top left position for the focus point for cursors created with this class.
|
Constructor and Description |
---|
TLcdJava2Util() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canDisplay(java.awt.Font aFont,
char c)
Deprecated.
Use
Font.canDisplay(char) instead |
static java.awt.Cursor |
createCursor(java.awt.Image aImage,
int aFocusPointPosition,
java.lang.String aName)
Create a cursor from an
Image . |
static java.awt.Cursor |
createCursor(java.awt.Image aImage,
java.awt.Point aFocusPoint,
java.lang.String aName)
Create a cursor from an
Image , with focus point aFocusPoint. |
static java.awt.Cursor |
createCursor(java.lang.String aImageFileName,
int aFocusPointPosition,
java.lang.String aName)
Create a cursor from a file name, with focus point aFocusPoint.
|
static java.awt.Cursor |
createCursor(java.lang.String aImageFileName,
java.awt.Point aFocusPoint,
java.lang.String aName)
Create a cursor from a file name, with focus point aFocusPoint.
|
public static int CENTER_FOCUS_POINT
public static int TOPLEFT_FOCUS_POINT
@Deprecated public static boolean canDisplay(java.awt.Font aFont, char c)
Font.canDisplay(char)
insteadFont
can display a character.aFont
- the font to check.c
- the character to check.public static java.awt.Cursor createCursor(java.awt.Image aImage, java.awt.Point aFocusPoint, java.lang.String aName)
Image
, with focus point aFocusPoint.aImage
- the image to use for the cursor.aFocusPoint
- the position of the focus point of the cursor.aName
- the name for the cursor.public static java.awt.Cursor createCursor(java.lang.String aImageFileName, java.awt.Point aFocusPoint, java.lang.String aName)
aImageFileName
- The location of the image to use for the cursor. If not
absolute the file name has to be relative to the classpath or the working
directory.aFocusPoint
- the position of the focus point of the cursor.aName
- the name for the cursor.public static java.awt.Cursor createCursor(java.lang.String aImageFileName, int aFocusPointPosition, java.lang.String aName)
aImageFileName
- The location of the image to use for the cursor. If not
absolute the file name has to be relative to the classpath or the working
directory.aFocusPointPosition
- the position of the focus point of the cursor. Choose from
CENTER_FOCUS_POINT
.
TOPLEFT_FOCUS_POINT
.
aName
- the name for the cursor.public static java.awt.Cursor createCursor(java.awt.Image aImage, int aFocusPointPosition, java.lang.String aName)
Image
.aImage
- the image to use for the cursor.aName
- the name for the cursor.aFocusPointPosition
- code for cursor focus point position. Choose from:
CENTER_FOCUS_POINT
.
TOPLEFT_FOCUS_POINT
.