public interface Transparency extends Persistent, java.lang.Cloneable
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add
PropertyChangeListener to fire PropertyChangeEvent
when properties are modified. |
void |
addTransparencyRange(TransparencyRange range)
Add
TransparencyRange to this Transparency |
int |
getAlpha() |
int |
getTransparencyRangeAlpha(byte r,
byte g,
byte b)
Gets alpha of RGB.
|
int |
getTransparencyRangeAlpha(int r,
int g,
int b)
Gets alpha of RGB.
|
java.util.List<TransparencyRange> |
getTransparencyRanges() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove
PropertyChangeListener from this Transparency |
void |
removeTransparencyRange(TransparencyRange range)
Remove
TransparencyRange from this Transparency |
void |
setTransparencyRanges(java.util.List<TransparencyRange> ranges)
Set
TransparencyRange of this Transparency |
void |
setValue(int value)
Sets transparency value
|
loadFromState, saveToState
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
to fire PropertyChangeEvent
when properties are modified.listener
- void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
PropertyChangeListener
from this Transparency
listener
- int getAlpha()
java.util.List<TransparencyRange> getTransparencyRanges()
TransparencyRange
void addTransparencyRange(TransparencyRange range)
TransparencyRange
to this Transparency
range
- TransparencyRange
to be addedvoid removeTransparencyRange(TransparencyRange range)
TransparencyRange
from this Transparency
range
- TransparencyRange
to be removedint getTransparencyRangeAlpha(byte r, byte g, byte b)
TransparencyRange
that
defines alpha to this RGB, it will be returned. Otherwise, this method
will return 255.r
- Red byteg
- Green byteb
- Blue byteint getTransparencyRangeAlpha(int r, int g, int b)
TransparencyRange
that
defines alpha to this RGB, it will be returned. Otherwise, this method
will return 255.r
- Red valueg
- Green valueb
- Blue valuevoid setValue(int value)
value
- Value between 0 and 255void setTransparencyRanges(java.util.List<TransparencyRange> ranges)
TransparencyRange
of this Transparency
ranges
-