public class SubstanceTreeUI
extends javax.swing.plaf.basic.BasicTreeUI
Modifier and Type | Class | Description |
---|---|---|
protected class |
SubstanceTreeUI.MyTreeSelectionListener |
Selection listener for selection animation effects.
|
protected class |
SubstanceTreeUI.PathRepaintCallback |
Repaints a single path during the fade animation cycle.
|
static class |
SubstanceTreeUI.TreePathId |
ID of a single tree path.
|
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 | Description |
---|---|---|
protected SubstanceTreeUI.TreePathId |
currRolloverPathId |
Holds the currently rolled-over path or
null if none such. |
protected java.util.Map<SubstanceTreeUI.TreePathId,java.lang.Object> |
selectedPaths |
Holds the list of currently selected paths.
|
protected org.pushingpixels.substance.internal.ui.SubstanceTreeUI.RolloverFadeListener |
substanceFadeRolloverListener |
Listener for transition animations on tree rollovers.
|
protected java.beans.PropertyChangeListener |
substancePropertyChangeListener |
Listener that listens to changes on tree properties.
|
protected java.awt.event.MouseListener |
substanceRowSelectionListener |
Listener for selection of an entire row.
|
protected javax.swing.event.TreeSelectionListener |
substanceSelectionFadeListener |
Listener for selection animations.
|
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 | Description |
---|---|
SubstanceTreeUI() |
Creates a UI delegate for tree.
|
Modifier and Type | Method | Description |
---|---|---|
protected javax.swing.tree.TreeCellRenderer |
createDefaultCellRenderer() |
|
static javax.swing.plaf.ComponentUI |
createUI(javax.swing.JComponent comp) |
|
java.awt.Insets |
getCellRendererInsets() |
Returns the cell renderer insets of this tree.
|
SubstanceColorScheme |
getDefaultColorScheme() |
Returns the default color scheme of this tree.
|
StateTransitionTracker.ModelStateInfo |
getModelStateInfo(SubstanceTreeUI.TreePathId pathId) |
|
java.awt.Rectangle |
getPathBounds(javax.swing.JTree tree,
javax.swing.tree.TreePath path) |
|
ComponentState |
getPathState(SubstanceTreeUI.TreePathId pathId) |
Returns the current state for the specified path.
|
int |
getPivotRendererX(java.awt.Rectangle paintBounds) |
Returns the pivot X for the cells rendered in the specified area.
|
StateTransitionTracker |
getStateTransitionTracker(SubstanceTreeUI.TreePathId pathId) |
|
protected void |
installDefaults() |
|
protected void |
installListeners() |
|
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) |
|
protected void |
paintExpandControlEnforce(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 control of the specified row.
|
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) |
|
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) |
|
protected void |
paintVerticalPartOfLeg(java.awt.Graphics g,
java.awt.Rectangle clipBounds,
java.awt.Insets insets,
javax.swing.tree.TreePath path) |
|
protected void |
uninstallDefaults() |
|
protected void |
uninstallListeners() |
|
void |
update(java.awt.Graphics g,
javax.swing.JComponent c) |
cancelEditing, checkForClickInExpandControl, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, configureLayoutCache, createCellEditorListener, createCellRendererPane, createComponentListener, createDefaultCellEditor, createFocusListener, createKeyListener, createLayoutCache, createMouseListener, createNodeDimensions, createPropertyChangeListener, createSelectionModelPropertyChangeListener, createTreeExpansionListener, createTreeModelListener, createTreeSelectionListener, drawCentered, drawDashedHorizontalLine, drawDashedVerticalLine, ensureRowsAreVisible, getBaseline, getBaselineResizeBehavior, getCellEditor, getCellRenderer, getClosestPathForLocation, getCollapsedIcon, getDropLineRect, getEditingPath, getExpandedIcon, getHashColor, getHorizontalLegBuffer, getLastChildPath, getLeadSelectionRow, getLeftChildIndent, getMaximumSize, getMinimumSize, getModel, getPathForRow, getPreferredMinSize, getPreferredSize, getPreferredSize, getRightChildIndent, getRowCount, getRowForPath, getRowHeight, getRowX, getSelectionModel, getShowsRootHandles, getVerticalLegBuffer, handleExpandControlClick, installComponents, installKeyboardActions, installUI, isDropLine, isEditable, isEditing, isLargeModel, isLeaf, isLocationInExpandControl, isMultiSelectEvent, isRootVisible, isToggleEvent, isToggleSelectionEvent, paint, paintDropLine, paintHorizontalLine, paintVerticalLine, 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, uninstallKeyboardActions, uninstallUI, updateCachedPreferredSize, updateCellEditor, updateDepthOffset, updateExpandedDescendants, updateLayoutCacheExpandedNodes, updateLeadSelectionRow, updateRenderer, updateSize
protected java.util.Map<SubstanceTreeUI.TreePathId,java.lang.Object> selectedPaths
protected SubstanceTreeUI.TreePathId currRolloverPathId
null
if none such.protected java.beans.PropertyChangeListener substancePropertyChangeListener
protected javax.swing.event.TreeSelectionListener substanceSelectionFadeListener
protected org.pushingpixels.substance.internal.ui.SubstanceTreeUI.RolloverFadeListener substanceFadeRolloverListener
protected java.awt.event.MouseListener substanceRowSelectionListener
public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent comp)
protected void installDefaults()
installDefaults
in class javax.swing.plaf.basic.BasicTreeUI
protected void uninstallDefaults()
uninstallDefaults
in class javax.swing.plaf.basic.BasicTreeUI
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.BasicTreeUI
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)
paintExpandControl
in class javax.swing.plaf.basic.BasicTreeUI
protected void paintExpandControlEnforce(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)
g
- Graphics context.clipBounds
- Clip bounds.insets
- Insets.bounds
- Row bounds.path
- Tree path.row
- Tree row.isExpanded
- Expand indication.hasBeenExpanded
- Indication whether this row has ever been expanded.isLeaf
- Indication whether this row is a leaf.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)
paintHorizontalPartOfLeg
in class javax.swing.plaf.basic.BasicTreeUI
protected 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.BasicTreeUI
protected javax.swing.tree.TreeCellRenderer createDefaultCellRenderer()
createDefaultCellRenderer
in class javax.swing.plaf.basic.BasicTreeUI
protected void installListeners()
installListeners
in class javax.swing.plaf.basic.BasicTreeUI
protected void uninstallListeners()
uninstallListeners
in class javax.swing.plaf.basic.BasicTreeUI
public int getPivotRendererX(java.awt.Rectangle paintBounds)
SubstanceLookAndFeel.TREE_SMART_SCROLL_ANIMATION_KIND
).paintBounds
- Area bounds.public ComponentState getPathState(SubstanceTreeUI.TreePathId pathId)
pathId
- Path index.public StateTransitionTracker.ModelStateInfo getModelStateInfo(SubstanceTreeUI.TreePathId pathId)
public void update(java.awt.Graphics g, javax.swing.JComponent c)
update
in class javax.swing.plaf.ComponentUI
public SubstanceColorScheme getDefaultColorScheme()
public java.awt.Insets getCellRendererInsets()
public java.awt.Rectangle getPathBounds(javax.swing.JTree tree, javax.swing.tree.TreePath path)
getPathBounds
in class javax.swing.plaf.basic.BasicTreeUI
public StateTransitionTracker getStateTransitionTracker(SubstanceTreeUI.TreePathId pathId)