Class ColorUtil

java.lang.Object
org.locationtech.jtstest.testbuilder.ui.ColorUtil

public class ColorUtil extends Object
  • Constructor Details

    • ColorUtil

      public ColorUtil()
  • Method Details

    • gray

      public static Color gray(int grayVal)
    • opaque

      public static Color opaque(Color clr)
    • lighter

      public static Color lighter(Color clr)
    • darker

      public static Color darker(Color clr, double fraction)
    • lighter

      public static Color lighter(Color clr, double saturationFraction)
    • saturate

      public static Color saturate(Color clr, double saturation)
    • getHue

      public static float getHue(Color clr)
    • getSaturation

      public static float getSaturation(Color clr)
    • getBrightness

      public static float getBrightness(Color clr)
    • setAlpha

      public static Color setAlpha(Color clr, int alpha)