public class TreeDropLocationPainter<E extends javax.swing.JTree,U extends WebTreeUI,D extends IDecoration<E,D>> extends AbstractSectionDecorationPainter<E,U,D> implements ITreeDropLocationPainter<E,U>
| Modifier and Type | Field and Description |
|---|---|
protected javax.swing.JTree.DropLocation |
location
Tree drop location to paint visual representation for.
|
originancestor, DECORATION_STATES_PROPERTY, decorationCache, decorations, focused, focusStateTracker, hierarchyTracker, hover, hoverStateTracker, neighboursTracker, statescomponent, listeners, ltr, propertyChangeListener, ui| Constructor and Description |
|---|
TreeDropLocationPainter() |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Rectangle |
adjustBounds(java.awt.Rectangle bounds)
Returns adjusted painting bounds.
|
protected java.util.List<java.lang.String> |
getDecorationStates()
Returns current component decoration states.
|
protected java.awt.Rectangle |
getDropBetweenViewBounds(javax.swing.JTree.DropLocation location)
Returns drop BETWEEN view bounds.
|
protected java.awt.Rectangle |
getDropOnViewBounds(javax.swing.JTree.DropLocation location)
Returns drop ON view bounds.
|
java.awt.Rectangle |
getDropViewBounds(javax.swing.JTree.DropLocation location)
Returns drop view bounds.
|
protected boolean |
isDecorationPaintAllowed(D decoration)
Returns whether or not painting specified decoration is allowed.
|
protected boolean |
isDropBetween(javax.swing.JTree.DropLocation location)
Returns whether the specified drop location should be displayed as line or not.
|
protected boolean |
isPlainBackgroundPaintAllowed(E c)
Returns whether or not painting plain component background is allowed.
|
void |
prepareToPaint(javax.swing.JTree.DropLocation location)
Prepares painter to paint tree drop location.
|
clearOrigin, getOrigin, setOriginasList, collectDecorationStates, getBorders, getDecoration, getDecorations, getDecorationSize, getPreferredSize, getSectionPainters, install, installFocusListener, installHierarchyListener, installHoverListener, isDecorated, isEnabled, isFocused, isHover, isOpaque, isOpaqueDecorated, isOpaqueUndecorated, 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, uninstallprotected javax.swing.JTree.DropLocation location
protected java.util.List<java.lang.String> getDecorationStates()
AbstractDecorationPaintergetDecorationStates in class AbstractSectionDecorationPainter<E extends javax.swing.JTree,U extends WebTreeUI,D extends IDecoration<E,D>>public void prepareToPaint(javax.swing.JTree.DropLocation location)
ITreeDropLocationPainterprepareToPaint in interface ITreeDropLocationPainter<E extends javax.swing.JTree,U extends WebTreeUI>location - drop locationprotected java.awt.Rectangle adjustBounds(java.awt.Rectangle bounds)
AbstractDecorationPainteradjustBounds in class AbstractDecorationPainter<E extends javax.swing.JTree,U extends WebTreeUI,D extends IDecoration<E,D>>bounds - painting bounds to adjustprotected boolean isPlainBackgroundPaintAllowed(E c)
AbstractDecorationPainterBy default this condition is limited to component being opaque. When component is opaque we must fill every single pixel in its bounds with something to avoid issues.
isPlainBackgroundPaintAllowed in class AbstractDecorationPainter<E extends javax.swing.JTree,U extends WebTreeUI,D extends IDecoration<E,D>>c - component to paint background forprotected boolean isDecorationPaintAllowed(D decoration)
AbstractDecorationPainterBy default this condition is limited to decoration existance and visibility.
isDecorationPaintAllowed in class AbstractDecorationPainter<E extends javax.swing.JTree,U extends WebTreeUI,D extends IDecoration<E,D>>decoration - decoration to be paintedpublic java.awt.Rectangle getDropViewBounds(javax.swing.JTree.DropLocation location)
ITreeDropLocationPaintergetDropViewBounds in interface ITreeDropLocationPainter<E extends javax.swing.JTree,U extends WebTreeUI>location - drop locationprotected boolean isDropBetween(javax.swing.JTree.DropLocation location)
location - drop locationprotected java.awt.Rectangle getDropOnViewBounds(javax.swing.JTree.DropLocation location)
location - drop locationprotected java.awt.Rectangle getDropBetweenViewBounds(javax.swing.JTree.DropLocation location)
location - drop location