public class TreeNodePainter<E extends javax.swing.JTree,U extends WebTreeUI,D extends IDecoration<E,D>> extends AbstractSectionDecorationPainter<E,U,D> implements ITreeNodePainter<E,U>
AbstractDecorationPainter.
It is used within TreePainter to paint cells selection.| Modifier and Type | Field and Description |
|---|---|
protected int |
row
Painted row index.
|
originancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
TreeNodePainter() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
isFocused()
Returns whether or not component has focus.
|
void |
prepareToPaint(int row)
Prepares painter to paint tree node background.
|
clearOrigin, getDecorationStates, getOrigin, setOriginadjustBounds, asList, collectDecorationStates, getBorders, getDecoration, getDecorations, getDecorationSize, getPreferredSize, getSectionPainters, install, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isDecorationPaintAllowed, isEnabled, isHover, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, isPlainBackgroundPaintAllowed, paint, paintContent, propertyChange, provideShape, uninstall, 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, install, isOpaque, paint, removePainterListener, uninstallpublic void prepareToPaint(int row)
ITreeNodePainterprepareToPaint in interface ITreeNodePainter<E extends javax.swing.JTree,U extends WebTreeUI>row - painted node row indexprotected boolean isFocused()
AbstractDecorationPainterisFocused in class AbstractDecorationPainter<E extends javax.swing.JTree,U extends WebTreeUI,D extends IDecoration<E,D>>