public class ColorChangeEffectiveData extends EffectEffectiveData implements IColorChangeEffectiveData
Immutable object which represents a Color Change effect. Instances of FromColor are replaced with instances of ToColor.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
ColorChangeEffectiveData is equal to the current ColorChangeEffectiveData . |
java.awt.Color |
getFromColor()
Returns color which will be replaced.
|
java.awt.Color |
getToColor()
Returns color which will replace.
|
boolean |
getUseAlpha()
Returns a boolean value which determines if alpha component should be used.
|
int |
hashCode()
Serves as a hash function for a particular type.
|
public final java.awt.Color getFromColor()
Returns color which will be replaced.
Read-only Color
.
getFromColor
in interface IColorChangeEffectiveData
public final java.awt.Color getToColor()
Returns color which will replace.
Read-only Color
.
getToColor
in interface IColorChangeEffectiveData
public final boolean getUseAlpha()
Returns a boolean value which determines if alpha component should be used.
Read-only boolean
.
getUseAlpha
in interface IColorChangeEffectiveData
public boolean equals(java.lang.Object obj)
Determines whether the specified ColorChangeEffectiveData
is equal to the current ColorChangeEffectiveData
.
equals
in class java.lang.Object
obj
- The ColorChangeEffectiveData
to compare.public int hashCode()
Serves as a hash function for a particular type.
hashCode
in class java.lang.Object