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

    • FG_DEFAULT

      public static Color FG_DEFAULT
    • BG_DEFAULT

      public static Color BG_DEFAULT
    • FG_HEADER

      public static Color FG_HEADER
    • BG_HEADER

      public static Color BG_HEADER
    • BG_CONTAINER

      public static Color BG_CONTAINER
    • FG_SELECTED

      public static Color FG_SELECTED
    • BG_SELECTED

      public static Color BG_SELECTED
  • Constructor Details

    • TLcdColor

      public TLcdColor()
  • Method Details

    • parseColor

      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

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

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

      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