Painter<T>
public class AlphaPainter<T> extends CompoundPainter<T>
AbstractPainter.Interpolation
Constructor | Description |
---|---|
AlphaPainter() |
Modifier and Type | Method | Description |
---|---|---|
void |
doPaint(java.awt.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.
|
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
getFilters, getInterpolation, isAntialiasing, isCacheable, isVisible, paint, setAntialiasing, setCacheable, setDirty, setFilters, setInterpolation, setVisible
clearCache, clearLocalCache, configureGraphics, getPainters, getTransform, isCheckingDirtyChildPainters, isClipPreserved, isDirty, setCheckingDirtyChildPainters, setClipPreserved, setPainters, setTransform, shouldUseCache, validate
public void doPaint(java.awt.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 property