Class ColorUtils

java.lang.Object
lu.kbra.modelizer_next.common.ColorUtils

public class ColorUtils extends Object
Utility methods for serializing, deserializing, and deriving AWT colors.
  • Constructor Details

    • ColorUtils

      public ColorUtils()
  • Method Details

    • ofArgb

      public static Color ofArgb(int argb)
      Creates a value from the supplied argb.
      Parameters:
      argb - numeric argb value
      Returns:
      the of argb result
    • ofHex

      public static Color ofHex(String string)
      Creates a value from the supplied hex.
      Parameters:
      string - text value for string
      Returns:
      the of hex result
    • ofRgb

      public static Color ofRgb(int rgb)
      Creates a value from the supplied rgb.
      Parameters:
      rgb - numeric rgb value
      Returns:
      the of rgb result