Class ColorImpl

All Implemented Interfaces:
SColor, Serializable

public class ColorImpl extends AbstractColorAdv
Since:
3.5.0
Author:
dennis
See Also:
  • Field Details

  • Constructor Details

    • ColorImpl

      public ColorImpl(byte[] rgb)
    • ColorImpl

      public ColorImpl(byte r, byte g, byte b)
    • ColorImpl

      public ColorImpl(String htmlColor)
  • Method Details

    • getHtmlColor

      public String getHtmlColor()
      Description copied from interface: SColor
      Gets the color html string expression, for example "#FF6622"
      Returns:
    • getRGB

      public byte[] getRGB()
      Description copied from interface: SColor
      Gets the color types array, order by Red,Green,Blue
      Returns:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getARGB

      public byte[] getARGB()
      Description copied from class: AbstractColorAdv
      Returns byte array in Alpha, Red, Green, Blue order
      Specified by:
      getARGB in class AbstractColorAdv
      Returns: