java.lang.Object
com.vaadin.featurepack.desktop.graphics.Color
All Implemented Interfaces:
Serializable

public class Color extends Object implements Serializable
Color class to hold RGB values
See Also:
  • Field Details

    • white

      public static final Color white
    • red

      public static final Color red
    • green

      public static final Color green
    • blue

      public static final Color blue
    • black

      public static final Color black
  • Constructor Details

    • Color

      public Color(int red, int green, int blue, int alpha)
    • Color

      public Color(int red, int green, int blue)
  • Method Details

    • getRed

      public int getRed()
    • setRed

      public void setRed(int red)
    • getGreen

      public int getGreen()
    • setGreen

      public void setGreen(int green)
    • getBlue

      public int getBlue()
    • setBlue

      public void setBlue(int blue)
    • getAlpha

      public int getAlpha()
    • setAlpha

      public void setAlpha(int alpha)
    • decode

      public static Color decode(String num) throws NumberFormatException
      Throws:
      NumberFormatException
    • toHexString

      public String toHexString()