public class ToolBarPainter<E extends javax.swing.JToolBar,U extends WebToolBarUI,D extends IDecoration<E,D>> extends AbstractContainerPainter<E,U,D> implements IToolBarPainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.event.AncestorListener |
ancestorListener
Listeners.
|
static int |
gripperSpace |
protected int |
spacing
Style settings.
|
ancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
ToolBarPainter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getDecorationStates()
Returns current component decoration states.
|
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
protected void |
paintContent(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
Paints content decorated by this painter.
|
protected void |
paintGripper(java.awt.Graphics2D g2d,
E c)
Paints toolbar gripper.
|
protected void |
propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
Performs various updates on property changes.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
protected void |
updateLayout(boolean install)
Updates toolbar layout settings.
|
adjustBounds, asList, collectDecorationStates, getBorders, getDecoration, getDecorations, getDecorationSize, getPreferredSize, getSectionPainters, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, 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, removePainterListenerpublic static final int gripperSpace
protected int spacing
protected javax.swing.event.AncestorListener ancestorListener
public void install(E c, U ui)
Painterinstall in interface Painter<E extends javax.swing.JToolBar,U extends WebToolBarUI>install in class AbstractDecorationPainter<E extends javax.swing.JToolBar,U extends WebToolBarUI,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.JToolBar,U extends WebToolBarUI>uninstall in class AbstractDecorationPainter<E extends javax.swing.JToolBar,U extends WebToolBarUI,D extends IDecoration<E,D>>c - component this painter is being uninstalled fromui - component UIprotected void propertyChange(java.lang.String property,
java.lang.Object oldValue,
java.lang.Object newValue)
AbstractPainterpropertyChange in class AbstractDecorationPainter<E extends javax.swing.JToolBar,U extends WebToolBarUI,D extends IDecoration<E,D>>property - modified propertyoldValue - old property valuenewValue - new property valueprotected java.util.List<java.lang.String> getDecorationStates()
AbstractDecorationPaintergetDecorationStates in class AbstractDecorationPainter<E extends javax.swing.JToolBar,U extends WebToolBarUI,D extends IDecoration<E,D>>protected void updateLayout(boolean install)
install - whether or not should install layout if not installedprotected void paintContent(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
AbstractDecorationPainterpaintContent in class AbstractDecorationPainter<E extends javax.swing.JToolBar,U extends WebToolBarUI,D extends IDecoration<E,D>>g2d - graphics contextbounds - painting boundsc - painted componentui - painted component UIprotected void paintGripper(java.awt.Graphics2D g2d,
E c)
g2d - graphics contextc - toolbar component