Class ColorState
java.lang.Object
com.inductiveautomation.factorypmi.application.components.util.ColorState
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
SimpleBoundColorAdapter.ColorState
This class represents a color state, one color, possibly with an alternate (blink) color and a blink rate
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionColorState
(ColorState clone) ColorState
(Color mainColor) ColorState
(Color mainColor, Color blinkColor, boolean blink, int blinkTime) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the color to be used as the blink color.int
Returns the blink rate for this state, if it is a blinkning state.Returns the main color (i.e.int
hashCode()
boolean
isBlink()
Returns true if this color state is a blinkning state.void
setBlink
(boolean b) void
setBlinkColor
(Color color) void
setBlinkRate
(int i) void
setMainColor
(Color color)
-
Constructor Details
-
ColorState
public ColorState() -
ColorState
-
ColorState
-
ColorState
-
-
Method Details
-
isBlink
public boolean isBlink()Returns true if this color state is a blinkning state. -
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
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
-
setBlinkRate
public void setBlinkRate(int i) -
setMainColor
-
hashCode
public int hashCode() -
equals
-