Class TLcdColor

java.lang.Object
com.luciad.gui.TLcdColor

public class TLcdColor extends Object
This class contains utility methods to create colors from strings or from integers.
  • Field Details Link icon

    • FG_DEFAULT Link icon

      public static Color FG_DEFAULT
    • BG_DEFAULT Link icon

      public static Color BG_DEFAULT
    • FG_HEADER Link icon

      public static Color FG_HEADER
    • BG_HEADER Link icon

      public static Color BG_HEADER
    • BG_CONTAINER Link icon

      public static Color BG_CONTAINER
    • FG_SELECTED Link icon

      public static Color FG_SELECTED
    • BG_SELECTED Link icon

      public static Color BG_SELECTED
  • Constructor Details Link icon

    • TLcdColor Link icon

      public TLcdColor()
  • Method Details Link icon

    • parseColor Link icon

      public static Color parseColor(String aColorAsString, Color aDefaultColor)
      Returns a Color based on the given RGB String. The format of the string should be "<red>.<green>.<blue>", where <red>, <green>, and <blue> are values between 0 and 255. For example, the string "255.130.20" corresponds to a color with red=255, green=130 and blue=20. The given default color is returned if the string can't be parsed properly.
    • makeColor Link icon

      public static Color makeColor(int aRGBValue)
      Returns a Color based on the given RGB integer.
    • makeTransparentColor Link icon

      public static Color makeTransparentColor(int aARGBValue)
      Returns a Color based on the given ARGB integer.
    • interpolate Link icon

      public static Color interpolate(Color aColor1, Color aColor2, double aFraction)
      Interpolates linearly between the two given colors.
      Parameters:
      aColor1 - the first color
      aColor2 - the second point
      aFraction - the interpolation weight
      Returns:
      the interpolated color