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