public interface TransparencyRange extends Persistent
Modifier and Type | Method and Description |
---|---|
int |
getAlpha() |
int[] |
getBlue() |
int[] |
getGreen() |
int[] |
getRed() |
boolean |
isAnd() |
boolean |
isSameRange(TransparencyRange otherRange)
Compare range of colors
|
void |
setAlpha(int alpha)
Sets alpha value to this
TransparencyRange |
void |
setAnd(boolean flag)
Sets boolean parameter to
TransparencyRange to set if
TransparencyRange use AND or OR logic operation. |
void |
setBlue(int[] blue)
Sets blue range values to this
TransparencyRange |
void |
setGreen(int[] green)
Sets blue range values to this
TransparencyRange |
void |
setRed(int[] red)
Sets blue range values to this
TransparencyRange |
void |
setRGB(int[] red,
int[] green,
int[] blue)
Sets blue range values to this
TransparencyRange |
loadFromState, saveToState
int getAlpha()
TransparencyRange
. Default value is
255 (transparent)int[] getBlue()
int[] getGreen()
int[] getRed()
boolean isAnd()
TransparencyRange
use and logic operationvoid setAlpha(int alpha)
TransparencyRange
alpha
- Alpha value (0 to 255).void setAnd(boolean flag)
TransparencyRange
to set if
TransparencyRange
use AND or OR logic operation.flag
- Flag to set AND or OR operation logicvoid setBlue(int[] blue)
TransparencyRange
blue
- Blue range valuesvoid setGreen(int[] green)
TransparencyRange
green
- void setRed(int[] red)
TransparencyRange
red
- void setRGB(int[] red, int[] green, int[] blue)
TransparencyRange
red
- green
- blue
- boolean isSameRange(TransparencyRange otherRange)
otherRange
-