public class BreadcrumbToggleButtonPainter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI> extends AbstractPainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected com.alee.utils.swing.AncestorAdapter |
ancestorAdapter |
protected WebBreadcrumb |
breadcrumb
Runtime variables.
|
protected java.awt.event.ContainerAdapter |
containerAdapter
Listeners.
|
component, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
BreadcrumbToggleButtonPainter() |
| Modifier and Type | Method and Description |
|---|---|
java.awt.Insets |
getBorders()
Returns borders required for visual data provided by this painter.
|
void |
install(E c,
U ui)
Called when painter is installed onto some component.
|
java.lang.Boolean |
isOpaque()
Returns whether visual data provided by this painter is opaque or not.
|
void |
paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
Paints visual data using component graphics context.
|
protected void |
removeBreadcrumbAdapter()
Removes ContainerAdapter from parent breadcrumb if it exists.
|
void |
uninstall(E c,
U ui)
Called when painter is installed into some component.
|
addPainterListener, b, borderChange, getCompleteBorder, getPreferredSize, i, i, i, installPropertyChangeListener, isSectionPainter, isSettingsUpdateAllowed, orientationChange, p, propertyChange, removePainterListener, repaint, repaint, repaint, revalidate, saveOrientation, uninstallPropertyChangeListener, updateAll, updateBorder, updateOpacity, updateOrientationprotected java.awt.event.ContainerAdapter containerAdapter
protected com.alee.utils.swing.AncestorAdapter ancestorAdapter
protected WebBreadcrumb breadcrumb
public void install(E c, U ui)
Painterinstall in interface Painter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>install in class AbstractPainter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>c - component this painter is being installed ontoui - component UIpublic void uninstall(E c, U ui)
Painteruninstall in interface Painter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>uninstall in class AbstractPainter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>c - component this painter is being uninstalled fromui - component UIprotected void removeBreadcrumbAdapter()
public java.lang.Boolean isOpaque()
PainterisOpaque in interface Painter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>isOpaque in class AbstractPainter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>public java.awt.Insets getBorders()
Painter
You may pass null in case additional borders aren't needed for this painter.
getBorders in interface Painter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>getBorders in class AbstractPainter<E extends WebBreadcrumbToggleButton,U extends WebToggleButtonUI>null in case those aren't neededpublic void paint(java.awt.Graphics2D g2d,
java.awt.Rectangle bounds,
E c,
U ui)
PainterIt is highly recommended to honor provided painting bounds to avoid painting issues. These bounds might be representing full component size or contain just a small portion of the component.
g2d - graphics contextbounds - painting boundsc - painted componentui - painted component UI