public class BreadcrumbLabelPainter<E extends WebBreadcrumbLabel,U extends WebLabelUI,D extends IDecoration<E,D>> extends LabelPainter<E,U,D>
| 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.
|
drawShade, paintIconR, paintTextR, paintViewR, rotation, shadeColor, shadeSizeancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
BreadcrumbLabelPainter() |
| 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.
|
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.
|
getActualRotation, getCompleteBorder, getContentSize, getPreferredSize, isHtmlText, isOpaqueUndecorated, layout, layoutCL, paintBackground, paintContent, paintDisabledText, paintEnabledText, paintHtmlText, paintIcon, paintPlainText, paintShadowText, paintText, transposeDimensionadjustBounds, asList, collectDecorationStates, getDecoration, getDecorations, getDecorationSize, getDecorationStates, getSectionPainters, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isPlainBackgroundPaintAllowed, propertyChange, provideShape, uninstallFocusListener, uninstallHierarchyListener, uninstallHoverListener, updateDecorationState, usesState, usesStateaddPainterListener, b, borderChange, 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, getPreferredSize, isOpaque, removePainterListenerprotected 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 WebBreadcrumbLabel,U extends WebLabelUI>install in class AbstractDecorationPainter<E extends WebBreadcrumbLabel,U extends WebLabelUI,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 WebBreadcrumbLabel,U extends WebLabelUI>uninstall in class AbstractDecorationPainter<E extends WebBreadcrumbLabel,U extends WebLabelUI,D extends IDecoration<E,D>>c - component this painter is being uninstalled fromui - component UIprotected void removeBreadcrumbAdapter()
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 WebBreadcrumbLabel,U extends WebLabelUI>getBorders in class AbstractDecorationPainter<E extends WebBreadcrumbLabel,U extends WebLabelUI,D extends IDecoration<E,D>>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.
paint in interface Painter<E extends WebBreadcrumbLabel,U extends WebLabelUI>paint in class AbstractDecorationPainter<E extends WebBreadcrumbLabel,U extends WebLabelUI,D extends IDecoration<E,D>>g2d - graphics contextbounds - painting boundsc - painted componentui - painted component UI