public abstract class AbstractStateButtonPainter<E extends javax.swing.AbstractButton,U extends javax.swing.plaf.basic.BasicButtonUI,D extends IDecoration<E,D>> extends AbstractButtonPainter<E,U,D> implements IAbstractStateButtonPainter<E,U>
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractStateButtonPainter.StateIcon
Custom state icon.
|
| Modifier and Type | Field and Description |
|---|---|
protected IButtonStatePainter |
checkStatePainter
State icon painter.
|
iconRect, modelChangeListener, selectedForeground, textRect, viewRectancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
AbstractStateButtonPainter() |
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.Icon |
createIcon()
Creates and returns component state icon.
|
java.awt.Rectangle |
getIconRect()
Returns icon bounds.
|
protected java.util.List<SectionPainter<E,U>> |
getSectionPainters()
Returns section painters used within this painter.
|
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
calculateBounds, getDecorationStates, isOpaqueUndecorated, paintContent, paintIcon, paintText, propertyChangeadjustBounds, asList, collectDecorationStates, getBorders, getDecoration, getDecorations, getDecorationSize, getPreferredSize, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isPlainBackgroundPaintAllowed, paint, provideShape, uninstallFocusListener, uninstallHierarchyListener, uninstallHoverListener, updateDecorationState, usesState, usesStateaddPainterListener, b, borderChange, getCompleteBorder, i, i, i, installPropertyChangeListener, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddPainterListener, getBorders, getPreferredSize, isOpaque, paint, removePainterListener@DefaultPainter(value=ButtonStatePainter.class) protected IButtonStatePainter checkStatePainter
public void install(E c, U ui)
Painterinstall in interface Painter<E extends javax.swing.AbstractButton,U extends javax.swing.plaf.basic.BasicButtonUI>install in class AbstractButtonPainter<E extends javax.swing.AbstractButton,U extends javax.swing.plaf.basic.BasicButtonUI,D extends IDecoration<E,D>>c - component this painter is being installed ontoui - component UIpublic void uninstall(E c, U ui)
Painteruninstall in interface Painter<E extends javax.swing.AbstractButton,U extends javax.swing.plaf.basic.BasicButtonUI>uninstall in class AbstractButtonPainter<E extends javax.swing.AbstractButton,U extends javax.swing.plaf.basic.BasicButtonUI,D extends IDecoration<E,D>>c - component this painter is being uninstalled fromui - component UIprotected java.util.List<SectionPainter<E,U>> getSectionPainters()
AbstractDecorationPainternull in case no section painters are used within this one.
This method is used for various internal update mechanisms involving section painters.getSectionPainters in class AbstractDecorationPainter<E extends javax.swing.AbstractButton,U extends javax.swing.plaf.basic.BasicButtonUI,D extends IDecoration<E,D>>public java.awt.Rectangle getIconRect()
getIconRect in interface IAbstractStateButtonPainter<E extends javax.swing.AbstractButton,U extends javax.swing.plaf.basic.BasicButtonUI>protected javax.swing.Icon createIcon()