DefaultTreeUI@Deprecated
public class WideSelectionTreeUI
extends javax.swing.plaf.basic.BasicTreeUI
javax.swing.plaf.basic.BasicTreeUI.CellEditorHandler, javax.swing.plaf.basic.BasicTreeUI.ComponentHandler, javax.swing.plaf.basic.BasicTreeUI.FocusHandler, javax.swing.plaf.basic.BasicTreeUI.KeyHandler, javax.swing.plaf.basic.BasicTreeUI.MouseHandler, javax.swing.plaf.basic.BasicTreeUI.MouseInputHandler, javax.swing.plaf.basic.BasicTreeUI.NodeDimensionsHandler, javax.swing.plaf.basic.BasicTreeUI.PropertyChangeHandler, javax.swing.plaf.basic.BasicTreeUI.SelectionModelPropertyChangeHandler, javax.swing.plaf.basic.BasicTreeUI.TreeCancelEditingAction, javax.swing.plaf.basic.BasicTreeUI.TreeExpansionHandler, javax.swing.plaf.basic.BasicTreeUI.TreeHomeAction, javax.swing.plaf.basic.BasicTreeUI.TreeIncrementAction, javax.swing.plaf.basic.BasicTreeUI.TreeModelHandler, javax.swing.plaf.basic.BasicTreeUI.TreePageAction, javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandler, javax.swing.plaf.basic.BasicTreeUI.TreeToggleAction, javax.swing.plaf.basic.BasicTreeUI.TreeTraverseAction| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SOURCE_LIST_CLIENT_PROPERTY
Deprecated.
|
static java.lang.String |
STRIPED_CLIENT_PROPERTY
Deprecated.
|
static java.lang.String |
TREE_TABLE_TREE_KEY
Deprecated.
|
cellEditor, collapsedIcon, createdCellEditor, createdRenderer, currentCellRenderer, depthOffset, drawingCache, editingComponent, editingPath, editingRow, editorHasDifferentSize, expandedIcon, largeModel, lastSelectedRow, leftChildIndent, nodeDimensions, preferredMinSize, preferredSize, rendererPane, rightChildIndent, stopEditingInCompleteEditing, totalChildIndent, tree, treeModel, treeSelectionModel, treeState, validCachedPreferredSize| Constructor and Description |
|---|
WideSelectionTreeUI()
Deprecated.
|
WideSelectionTreeUI(boolean wideSelection,
Condition<? super java.lang.Integer> wideSelectionCondition)
Deprecated.
Creates new
WideSelectionTreeUI object. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
completeUIInstall()
Deprecated.
|
protected javax.swing.CellRendererPane |
createCellRendererPane()
Deprecated.
|
protected java.awt.event.MouseListener |
createMouseListener()
Deprecated.
|
protected int |
getCustomIndent()
Deprecated.
|
int |
getRightChildIndent()
Deprecated.
|
protected int |
getRowX(int row,
int depth)
Deprecated.
|
protected void |
installKeyboardActions()
Deprecated.
|
void |
invalidateNodeSizes()
Deprecated.
|
boolean |
isCustomIndent()
Deprecated.
|
protected boolean |
isToggleSelectionEvent(java.awt.event.MouseEvent e)
Deprecated.
|
boolean |
isWideSelection()
Deprecated.
|
static boolean |
isWideSelection(javax.swing.JTree tree)
Deprecated.
|
void |
paint(java.awt.Graphics g,
javax.swing.JComponent c)
Deprecated.
|
protected void |
paintExpandControl(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
java.awt.Rectangle bounds,
javax.swing.tree.TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
Deprecated.
|
protected void |
paintHorizontalPartOfLeg(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
java.awt.Rectangle bounds,
javax.swing.tree.TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
Deprecated.
|
protected void |
paintRow(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
java.awt.Rectangle bounds,
javax.swing.tree.TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
Deprecated.
|
protected void |
paintSelectedRows(java.awt.Graphics g,
javax.swing.JTree tr)
Deprecated.
|
protected void |
paintVerticalLine(java.awt.Graphics g,
javax.swing.JComponent c,
int x,
int top,
int bottom)
Deprecated.
|
protected void |
paintVerticalPartOfLeg(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
javax.swing.tree.TreePath path)
Deprecated.
|
void |
setForceDontPaintLines()
Deprecated.
not supported in UI
|
void |
uninstallUI(javax.swing.JComponent c)
Deprecated.
|
cancelEditing, checkForClickInExpandControl, completeEditing, completeEditing, completeUIUninstall, configureLayoutCache, createCellEditorListener, createComponentListener, createDefaultCellEditor, createDefaultCellRenderer, createFocusListener, createKeyListener, createLayoutCache, createNodeDimensions, createPropertyChangeListener, createSelectionModelPropertyChangeListener, createTreeExpansionListener, createTreeModelListener, createTreeSelectionListener, createUI, drawCentered, drawDashedHorizontalLine, drawDashedVerticalLine, ensureRowsAreVisible, getBaseline, getBaselineResizeBehavior, getCellEditor, getCellRenderer, getClosestPathForLocation, getCollapsedIcon, getDropLineRect, getEditingPath, getExpandedIcon, getHashColor, getHorizontalLegBuffer, getLastChildPath, getLeadSelectionRow, getLeftChildIndent, getMaximumSize, getMinimumSize, getModel, getPathBounds, getPathForRow, getPreferredMinSize, getPreferredSize, getPreferredSize, getRowCount, getRowForPath, getRowHeight, getSelectionModel, getShowsRootHandles, getVerticalLegBuffer, handleExpandControlClick, installComponents, installDefaults, installListeners, installUI, isDropLine, isEditable, isEditing, isLargeModel, isLeaf, isLocationInExpandControl, isMultiSelectEvent, isRootVisible, isToggleEvent, paintDropLine, paintHorizontalLine, pathWasCollapsed, pathWasExpanded, prepareForUIInstall, prepareForUIUninstall, selectPathForEvent, setCellEditor, setCellRenderer, setCollapsedIcon, setEditable, setExpandedIcon, setHashColor, setLargeModel, setLeftChildIndent, setModel, setPreferredMinSize, setRightChildIndent, setRootVisible, setRowHeight, setSelectionModel, setShowsRootHandles, shouldPaintExpandControl, startEditing, startEditingAtPath, stopEditing, toggleExpandState, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallListeners, updateCachedPreferredSize, updateCellEditor, updateDepthOffset, updateExpandedDescendants, updateLayoutCacheExpandedNodes, updateLeadSelectionRow, updateRenderer, updateSize@Deprecated public static final java.lang.String TREE_TABLE_TREE_KEY
RenderingUtil.FOCUSABLE_SIBLING or RenderingUtil.ALWAYS_PAINT_SELECTION_AS_FOCUSEDpublic static final java.lang.String SOURCE_LIST_CLIENT_PROPERTY
public static final java.lang.String STRIPED_CLIENT_PROPERTY
public WideSelectionTreeUI()
public WideSelectionTreeUI(boolean wideSelection,
Condition<? super java.lang.Integer> wideSelectionCondition)
WideSelectionTreeUI object.wideSelection - flag that determines if wide selection should be usedwideSelectionCondition - strategy that determine if wide selection should be used for a target row (it's zero-based index
is given to the condition as an argument)public int getRightChildIndent()
getRightChildIndent in class javax.swing.plaf.basic.BasicTreeUIpublic boolean isCustomIndent()
protected int getCustomIndent()
protected java.awt.event.MouseListener createMouseListener()
createMouseListener in class javax.swing.plaf.basic.BasicTreeUIprotected void completeUIInstall()
completeUIInstall in class javax.swing.plaf.basic.BasicTreeUIpublic void uninstallUI(javax.swing.JComponent c)
uninstallUI in class javax.swing.plaf.basic.BasicTreeUIprotected void installKeyboardActions()
installKeyboardActions in class javax.swing.plaf.basic.BasicTreeUI@Deprecated public void setForceDontPaintLines()
protected int getRowX(int row,
int depth)
getRowX in class javax.swing.plaf.basic.BasicTreeUIprotected void paintHorizontalPartOfLeg(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
java.awt.Rectangle bounds,
javax.swing.tree.TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
paintHorizontalPartOfLeg in class javax.swing.plaf.basic.BasicTreeUIprotected boolean isToggleSelectionEvent(java.awt.event.MouseEvent e)
isToggleSelectionEvent in class javax.swing.plaf.basic.BasicTreeUIprotected void paintVerticalPartOfLeg(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
javax.swing.tree.TreePath path)
paintVerticalPartOfLeg in class javax.swing.plaf.basic.BasicTreeUIprotected void paintVerticalLine(java.awt.Graphics g,
javax.swing.JComponent c,
int x,
int top,
int bottom)
paintVerticalLine in class javax.swing.plaf.basic.BasicTreeUIpublic boolean isWideSelection()
public static boolean isWideSelection(javax.swing.JTree tree)
protected void paintRow(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
java.awt.Rectangle bounds,
javax.swing.tree.TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
paintRow in class javax.swing.plaf.basic.BasicTreeUIpublic void paint(java.awt.Graphics g,
javax.swing.JComponent c)
paint in class javax.swing.plaf.basic.BasicTreeUIprotected void paintSelectedRows(java.awt.Graphics g,
javax.swing.JTree tr)
protected javax.swing.CellRendererPane createCellRendererPane()
createCellRendererPane in class javax.swing.plaf.basic.BasicTreeUIprotected void paintExpandControl(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
java.awt.Rectangle bounds,
javax.swing.tree.TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
paintExpandControl in class javax.swing.plaf.basic.BasicTreeUIpublic void invalidateNodeSizes()