Class ColorUtils


  • public class ColorUtils
    extends Object
    Utility class containing methods to the Color Manipulation Tool.
    • Method Detail

      • rgba

        public static int rgba​(int red,
                               int green,
                               int blue)
        Returns the RGB color as int.
        Parameters:
        red - the red component
        green - the green component
        blue - the blue component
        Returns:
        the RGB color as int
      • alpha

        public static int alpha​(int color)
        Returns the alpha component.
        Parameters:
        color - the RGB color
        Returns:
        the alpha component
      • red

        public static int red​(int color)
        Returns the red component.
        Parameters:
        color - the RGB color
        Returns:
        the red component
      • green

        public static int green​(int color)
        Returns the green component.
        Parameters:
        color - the RGB color
        Returns:
        the green component
      • blue

        public static int blue​(int color)
        Returns the blue component.
        Parameters:
        color - the RGB color
        Returns:
        the blue component
      • isNumber

        public static boolean isNumber​(String string)
      • isNumber

        public static boolean isNumber​(String string,
                                       String componentName,
                                       boolean showMessage)
      • checkRangeCompatibility

        public static boolean checkRangeCompatibility​(String minStr,
                                                      String maxStr)
      • checkRangeCompatibility

        public static boolean checkRangeCompatibility​(double min,
                                                      double max)
      • showErrorDialog

        public static void showErrorDialog​(String message)
      • checkRangeCompatibility

        public static boolean checkRangeCompatibility​(double min,
                                                      double max,
                                                      boolean isLogScaled)
      • checkSliderRangeCompatibility

        public static boolean checkSliderRangeCompatibility​(double value,
                                                            double min,
                                                            double max)
      • checkLogCompatibility

        public static boolean checkLogCompatibility​(double value,
                                                    String componentName,
                                                    boolean isLogScaled)
      • checkTableRangeCompatibility

        public static boolean checkTableRangeCompatibility​(double value,
                                                           double min,
                                                           double max)