@JavaBean public class AlphaPainter<T> extends CompoundPainter<T>
AbstractPainter.Interpolation
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, isVisible, paint, setAntialiasing, setCacheable, setFilters, setInterpolation, setVisible
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
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 propertyCopyright © 2018. All rights reserved.