public class AlphaPainter<T> extends CompoundPainter<T>
AbstractPainter.Interpolation
Modifier and Type | Field and Description |
---|---|
private float |
alpha |
Constructor and Description |
---|
AlphaPainter() |
Modifier and Type | Method and Description |
---|---|
protected void |
doPaint(Graphics2D g,
T component,
int width,
int height)
Subclasses must implement this method and perform custom painting operations
here.
|
float |
getAlpha()
Returns the current alpha value for this painter.
|
void |
setAlpha(float alpha)
Sets the current alpha value for this painter.
|
clearCache, clearLocalCache, configureGraphics, getPainters, getTransform, isCheckingDirtyChildPainters, isClipPreserved, isDirty, setCheckingDirtyChildPainters, setClipPreserved, setDirty, setPainters, setTransform, shouldUseCache, validate
getFilters, getInterpolation, isAntialiasing, isCacheable, isCacheCleared, isInPaintContext, isVisible, paint, setAntialiasing, setCacheable, setFilters, setInPaintContext, setInterpolation, setVisible
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
private float alpha
public AlphaPainter()
protected void doPaint(Graphics2D g, T component, int width, int height)
doPaint
in class CompoundPainter<T>
g
- The Graphics2D object in which to paintpublic float getAlpha()
public void setAlpha(float alpha)
alpha
- the new value of the alpha propertyWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses