Class TLcdJava2Util

java.lang.Object
com.luciad.gui.TLcdJava2Util

public class TLcdJava2Util extends Object
Utility methods for functionality that was introduced in Java 1.2.
  • Field Details

    • CENTER_FOCUS_POINT

      public static int CENTER_FOCUS_POINT
      Central position for the focus point for cursors created with this class.
    • TOPLEFT_FOCUS_POINT

      public static int TOPLEFT_FOCUS_POINT
      Top left position for the focus point for cursors created with this class.
  • Constructor Details

    • TLcdJava2Util

      public TLcdJava2Util()
  • Method Details

    • canDisplay

      @Deprecated public static boolean canDisplay(Font aFont, char c)
      Deprecated.
      Checks whether a Font can display a character.
      Parameters:
      aFont - the font to check.
      c - the character to check.
      Returns:
      true if aFont can display character c.
    • createCursor

      public static Cursor createCursor(Image aImage, Point aFocusPoint, String aName)
      Create a cursor from an Image, 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

      public static Cursor createCursor(String aImageFileName, Point aFocusPoint, String aName)
      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

      public static Cursor createCursor(String aImageFileName, int aFocusPointPosition, String aName)
      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 from
      • CENTER_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

      public static Cursor createCursor(Image aImage, int aFocusPointPosition, String aName)
      Create a cursor from an Image.
      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.