Package com.luciad.gui
Class TLcdJava2Util
java.lang.Object
com.luciad.gui.TLcdJava2Util
Utility methods for functionality that was introduced in Java 1.2.
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
Central position for the focus point for cursors created with this class.static int
Top left position for the focus point for cursors created with this class. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
canDisplay
(Font aFont, char c) Deprecated.static Cursor
createCursor
(Image aImage, int aFocusPointPosition, String aName) Create a cursor from anImage
.static Cursor
createCursor
(Image aImage, Point aFocusPoint, String aName) Create a cursor from anImage
, 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.
-
Field Details
-
CENTER_FOCUS_POINT
public static int CENTER_FOCUS_POINTCentral position for the focus point for cursors created with this class. -
TOPLEFT_FOCUS_POINT
public static int TOPLEFT_FOCUS_POINTTop left position for the focus point for cursors created with this class.
-
-
Constructor Details
-
TLcdJava2Util
public TLcdJava2Util()
-
-
Method Details
-
canDisplay
Deprecated.UseFont.canDisplay(char)
insteadChecks whether aFont
can display a character.- Parameters:
aFont
- the font to check.c
- the character to check.- Returns:
- true if aFont can display character c.
-
createCursor
Create a cursor from anImage
, with focus point aFocusPoint.- Parameters:
aImage
- the image to use for the cursor.aFocusPoint
- the position of the focus point of the cursor.aName
- the name for the cursor.- Returns:
- a Cursor which is displayed as aImage, with the focus at aFocusPoint.
-
createCursor
Create a cursor from a file name, with focus point aFocusPoint.- Parameters:
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.- Returns:
- a Cursor which is displayed as an Image built from the data located at aImageFileName, with the focus at aFocusPoint.
-
createCursor
Create a cursor from a file name, with focus point aFocusPoint.- Parameters:
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 fromCENTER_FOCUS_POINT
.TOPLEFT_FOCUS_POINT
.
aName
- the name for the cursor.- Returns:
- a Cursor which is displayed as aImage built from the data at aImageFileName, with the focus at aFocusPointPosition.
-
createCursor
Create a cursor from anImage
.- Parameters:
aImage
- the image to use for the cursor.aFocusPointPosition
- code for cursor focus point position. Choose from:CENTER_FOCUS_POINT
.TOPLEFT_FOCUS_POINT
.
aName
- the name for the cursor.- Returns:
- a Cursor which is displayed as aImage, with the focus at aFocusPointPosition.
-
Font.canDisplay(char)
instead