java.lang.Object
com.inductiveautomation.factorypmi.application.components.util.ColorState
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
SimpleBoundColorAdapter.ColorState

public class ColorState extends Object implements Serializable
This class represents a color state, one color, possibly with an alternate (blink) color and a blink rate
See Also:
  • Constructor Details

    • ColorState

      public ColorState()
    • ColorState

      public ColorState(Color mainColor)
    • ColorState

      public ColorState(Color mainColor, Color blinkColor, boolean blink, int blinkTime)
    • ColorState

      public ColorState(ColorState clone)
  • Method Details

    • isBlink

      public boolean isBlink()
      Returns true if this color state is a blinkning state.
    • getBlinkColor

      public Color getBlinkColor()
      Returns the color to be used as the blink color.
    • getBlinkRate

      public int getBlinkRate()
      Returns the blink rate for this state, if it is a blinkning state.
    • getMainColor

      public Color getMainColor()
      Returns the main color (i.e. NOT the blink color) for this color state. This is the color to use for non-blinking states too.
    • setBlink

      public void setBlink(boolean b)
    • setBlinkColor

      public void setBlinkColor(Color color)
    • setBlinkRate

      public void setBlinkRate(int i)
    • setMainColor

      public void setMainColor(Color color)
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object