public class QuaquaTreeUI
extends javax.swing.plaf.basic.BasicTreeUI
| Modifier and Type | Class and Description |
|---|---|
class |
QuaquaTreeUI.FocusHandler
This inner class is marked "public" due to a compiler bug.
|
class |
QuaquaTreeUI.TreeCancelEditingAction
ActionListener that invokes cancelEditing when action performed.
|
class |
QuaquaTreeUI.TreeHomeAction
TreeHomeAction is used to handle end/home actions.
|
class |
QuaquaTreeUI.TreeIncrementAction
TreeIncrementAction is used to handle up/down actions.
|
class |
QuaquaTreeUI.TreePageAction
TreePageAction handles page up and page down events.
|
class |
QuaquaTreeUI.TreeToggleAction
For the first selected row expandedness will be toggled.
|
class |
QuaquaTreeUI.TreeTraverseAction
TreeTraverseAction is the action used for left/right keys. |
javax.swing.plaf.basic.BasicTreeUI.CellEditorHandler, javax.swing.plaf.basic.BasicTreeUI.ComponentHandler, 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.TreeExpansionHandler, javax.swing.plaf.basic.BasicTreeUI.TreeModelHandler, javax.swing.plaf.basic.BasicTreeUI.TreeSelectionHandlercellEditor, 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 |
|---|
QuaquaTreeUI()
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected javax.swing.event.CellEditorListener |
createCellEditorListener()
Creates a listener to handle events from the current editor.
|
protected javax.swing.tree.TreeCellEditor |
createDefaultCellEditor()
Creates a default cell editor.
|
protected javax.swing.tree.TreeCellRenderer |
createDefaultCellRenderer()
Returns the default cell renderer that is used to do the
stamping of each node.
|
protected java.awt.event.FocusListener |
createFocusListener()
Creates the focus listener for handling keyboard navigation in the JTable.
|
protected java.awt.event.KeyListener |
createKeyListener()
Creates the listener reponsible for getting key events from
the tree.
|
protected java.awt.event.MouseListener |
createMouseListener() |
protected java.beans.PropertyChangeListener |
createPropertyChangeListener()
Creates a listener that is responsible that updates the UI based on
how the tree changes.
|
protected java.beans.PropertyChangeListener |
createSelectionModelPropertyChangeListener()
Creates the listener responsible for getting property change
events from the selection model.
|
protected javax.swing.event.TreeExpansionListener |
createTreeExpansionListener()
Creates and returns the object responsible for updating the treestate
when nodes expanded state changes.
|
protected javax.swing.event.TreeModelListener |
createTreeModelListener()
Returns a listener that can update the tree when the model changes.
|
protected javax.swing.event.TreeSelectionListener |
createTreeSelectionListener()
Creates the listener that updates the display based on selection change
methods.
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent c) |
protected int |
getRowX(int row,
int depth)
Returns the location, along the x-axis, to render a particular row
at.
|
protected boolean |
getShowsRootHandles() |
protected void |
installDefaults() |
protected void |
installKeyboardActions() |
protected boolean |
isMultiSelectEvent(java.awt.event.MouseEvent event)
Returning true signifies a mouse event on the node should select
from the anchor point.
|
protected boolean |
isToggleEvent(java.awt.event.MouseEvent event) |
protected boolean |
isToggleSelectionEvent(java.awt.event.MouseEvent event)
Returning true signifies a mouse event on the node should toggle
the selection of only the row under mouse.
|
void |
paint(java.awt.Graphics gr,
javax.swing.JComponent c) |
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)
Paints the expand (toggle) part of a row.
|
protected void |
paintHorizontalLine(java.awt.Graphics g,
javax.swing.JComponent c,
int y,
int left,
int right)
Paints a horizontal line.
|
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)
Paints the horizontal part of the leg.
|
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,
boolean isEnabled,
boolean isFocused,
boolean isActive)
Paints the renderer part of a row.
|
protected void |
paintVerticalLine(java.awt.Graphics g,
javax.swing.JComponent c,
int x,
int top,
int bottom)
Paints a vertical line.
|
protected void |
paintVerticalPartOfLeg(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
javax.swing.tree.TreePath path)
Paints the vertical part of the leg.
|
protected void |
prepareForUIInstall()
Invoked after the
tree instance variable has been
set, but before any defaults/listeners have been installed. |
protected void |
setShowsRootHandles(boolean newValue)
Determines whether the node handles are to be displayed.
|
protected void |
uninstallListeners() |
cancelEditing, checkForClickInExpandControl, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, configureLayoutCache, createCellRendererPane, createComponentListener, createLayoutCache, createNodeDimensions, drawCentered, drawDashedHorizontalLine, drawDashedVerticalLine, ensureRowsAreVisible, getBaseline, getBaselineResizeBehavior, getCellEditor, getCellRenderer, getClosestPathForLocation, getCollapsedIcon, getDropLineRect, getEditingPath, getExpandedIcon, getHashColor, getHorizontalLegBuffer, getLastChildPath, getLeftChildIndent, getMaximumSize, getMinimumSize, getModel, getPathBounds, getPathForRow, getPreferredMinSize, getPreferredSize, getPreferredSize, getRightChildIndent, getRowCount, getRowForPath, getRowHeight, getSelectionModel, getVerticalLegBuffer, handleExpandControlClick, installComponents, installListeners, installUI, isDropLine, isEditable, isEditing, isLargeModel, isLeaf, isLocationInExpandControl, isRootVisible, paintDropLine, paintRow, pathWasCollapsed, pathWasExpanded, prepareForUIUninstall, selectPathForEvent, setCellEditor, setCellRenderer, setCollapsedIcon, setEditable, setExpandedIcon, setHashColor, setLargeModel, setLeftChildIndent, setModel, setPreferredMinSize, setRightChildIndent, setRootVisible, setRowHeight, setSelectionModel, shouldPaintExpandControl, startEditing, startEditingAtPath, stopEditing, toggleExpandState, uninstallComponents, uninstallDefaults, uninstallKeyboardActions, uninstallUI, updateCachedPreferredSize, updateCellEditor, updateDepthOffset, updateExpandedDescendants, updateLayoutCacheExpandedNodes, updateLeadSelectionRow, updateRenderer, updateSizepublic static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent c)
protected void installDefaults()
installDefaults in class javax.swing.plaf.basic.BasicTreeUIprotected void installKeyboardActions()
installKeyboardActions in class javax.swing.plaf.basic.BasicTreeUIprotected void prepareForUIInstall()
tree instance variable has been
set, but before any defaults/listeners have been installed.prepareForUIInstall in class javax.swing.plaf.basic.BasicTreeUIprotected void uninstallListeners()
uninstallListeners in class javax.swing.plaf.basic.BasicTreeUIprotected javax.swing.tree.TreeCellEditor createDefaultCellEditor()
createDefaultCellEditor in class javax.swing.plaf.basic.BasicTreeUIprotected javax.swing.tree.TreeCellRenderer createDefaultCellRenderer()
createDefaultCellRenderer in class javax.swing.plaf.basic.BasicTreeUIprotected java.awt.event.KeyListener createKeyListener()
createKeyListener in class javax.swing.plaf.basic.BasicTreeUIprotected java.beans.PropertyChangeListener createSelectionModelPropertyChangeListener()
createSelectionModelPropertyChangeListener in class javax.swing.plaf.basic.BasicTreeUIprotected javax.swing.event.TreeSelectionListener createTreeSelectionListener()
createTreeSelectionListener in class javax.swing.plaf.basic.BasicTreeUIprotected javax.swing.event.CellEditorListener createCellEditorListener()
createCellEditorListener in class javax.swing.plaf.basic.BasicTreeUIprotected javax.swing.event.TreeExpansionListener createTreeExpansionListener()
createTreeExpansionListener in class javax.swing.plaf.basic.BasicTreeUIprotected java.beans.PropertyChangeListener createPropertyChangeListener()
createPropertyChangeListener in class javax.swing.plaf.basic.BasicTreeUIprotected javax.swing.event.TreeModelListener createTreeModelListener()
createTreeModelListener in class javax.swing.plaf.basic.BasicTreeUIprotected boolean isToggleSelectionEvent(java.awt.event.MouseEvent event)
isToggleSelectionEvent in class javax.swing.plaf.basic.BasicTreeUIprotected boolean isToggleEvent(java.awt.event.MouseEvent event)
isToggleEvent in class javax.swing.plaf.basic.BasicTreeUIprotected boolean isMultiSelectEvent(java.awt.event.MouseEvent event)
isMultiSelectEvent in class javax.swing.plaf.basic.BasicTreeUIprotected void setShowsRootHandles(boolean newValue)
setShowsRootHandles in class javax.swing.plaf.basic.BasicTreeUIprotected boolean getShowsRootHandles()
getShowsRootHandles 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)
clipBounds, or insets.paintExpandControl in class javax.swing.plaf.basic.BasicTreeUIprotected int getRowX(int row,
int depth)
getRowX in class javax.swing.plaf.basic.BasicTreeUIrow - Row to return x location fordepth - Depth of the rowprotected java.awt.event.FocusListener createFocusListener()
createFocusListener in class javax.swing.plaf.basic.BasicTreeUIprotected java.awt.event.MouseListener createMouseListener()
createMouseListener in class javax.swing.plaf.basic.BasicTreeUIpublic void paint(java.awt.Graphics gr,
javax.swing.JComponent c)
paint 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)
clipBounds, insets.paintVerticalPartOfLeg 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)
clipBounds, or insets.
NOTE: parentRow can be -1 if the root is not visible.
paintHorizontalPartOfLeg 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.BasicTreeUIprotected void paintHorizontalLine(java.awt.Graphics g,
javax.swing.JComponent c,
int y,
int left,
int right)
paintHorizontalLine in class javax.swing.plaf.basic.BasicTreeUIprotected 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,
boolean isEnabled,
boolean isFocused,
boolean isActive)
clipBounds, or insets.