public class DuotoneEffectiveData extends EffectEffectiveData implements IDuotoneEffectiveData
Immutable object which represents a Duotone effect. For each pixel, combines clr1 and clr2 through a linear interpolation to determine the new color for that pixel.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Determines whether the specified
DuotoneEffectiveData is equal to the current DuotoneEffectiveData . |
java.awt.Color |
getColor1()
Returns a first color.
|
java.awt.Color |
getColor2()
Returns a second color.
|
int |
hashCode()
Serves as a hash function for a particular type.
|
public final java.awt.Color getColor1()
Returns a first color.
Read-only Color
.
getColor1
in interface IDuotoneEffectiveData
public final java.awt.Color getColor2()
Returns a second color.
Read-only Color
.
getColor2
in interface IDuotoneEffectiveData
public boolean equals(java.lang.Object obj)
Determines whether the specified DuotoneEffectiveData
is equal to the current DuotoneEffectiveData
.
equals
in class java.lang.Object
obj
- The DuotoneEffectiveData
to compare.public int hashCode()
Serves as a hash function for a particular type.
hashCode
in class java.lang.Object