public class TLcdJava2Util extends 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(Font aFont,
char c)
Deprecated.
Use
Font.canDisplay(char) instead |
static Cursor |
createCursor(Image aImage,
int aFocusPointPosition,
String aName)
Create a cursor from an
Image . |
static Cursor |
createCursor(Image aImage,
Point aFocusPoint,
String aName)
Create a cursor from an
Image , with focus point aFocusPoint. |
static Cursor |
createCursor(String aImageFileName,
int aFocusPointPosition,
String aName)
Create a cursor from a file name, with focus point aFocusPoint.
|
static Cursor |
createCursor(String aImageFileName,
Point aFocusPoint,
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(Font aFont, char c)
Font.canDisplay(char)
insteadFont
can display a character.aFont
- the font to check.c
- the character to check.public static Cursor createCursor(Image aImage, Point aFocusPoint, 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 Cursor createCursor(String aImageFileName, Point aFocusPoint, 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 Cursor createCursor(String aImageFileName, int aFocusPointPosition, 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 Cursor createCursor(Image aImage, int aFocusPointPosition, 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
.