public class DarkTreeUI extends BasicTreeUI implements PropertyChangeListener
BasicTreeUI.CellEditorHandler, BasicTreeUI.ComponentHandler, BasicTreeUI.FocusHandler, BasicTreeUI.KeyHandler, BasicTreeUI.MouseHandler, BasicTreeUI.MouseInputHandler, BasicTreeUI.NodeDimensionsHandler, BasicTreeUI.PropertyChangeHandler, BasicTreeUI.SelectionModelPropertyChangeHandler, BasicTreeUI.TreeCancelEditingAction, BasicTreeUI.TreeExpansionHandler, BasicTreeUI.TreeHomeAction, BasicTreeUI.TreeIncrementAction, BasicTreeUI.TreeModelHandler, BasicTreeUI.TreePageAction, BasicTreeUI.TreeSelectionHandler, BasicTreeUI.TreeToggleAction, BasicTreeUI.TreeTraverseAction
Modifier and Type | Field and Description |
---|---|
protected Color |
alternativeBackground |
protected Icon |
collapsed |
protected Icon |
collapsedFocus |
protected Icon |
collapsedFocusSelected |
protected Icon |
collapsedSelected |
protected Icon |
expanded |
protected Icon |
expandedFocus |
protected Icon |
expandedFocusSelected |
protected Icon |
expandedSelected |
protected Color |
focusSelectedLineColor |
protected Color |
focusSelectionBackground |
static String |
KEY_ALTERNATE_ROW_COLOR |
static String |
KEY_BOOLEAN_RENDER_TYPE |
static String |
KEY_IS_TREE_EDITOR |
static String |
KEY_IS_TREE_RENDERER |
static String |
KEY_LINE_STYLE |
static String |
KEY_MAC_ACTIONS_INSTALLED |
protected static String |
KEY_PREFIX |
static String |
KEY_RENDER_BOOLEAN_AS_CHECKBOX |
static String |
KEY_TREE_TABLE_TREE |
protected Color |
lineColor |
static String |
RENDER_TYPE_CHECKBOX |
static String |
RENDER_TYPE_RADIOBUTTON |
protected Color |
selectedLineColor |
protected Color |
selectionBackground |
static String |
STYLE_DASHED |
static String |
STYLE_LINE |
static String |
STYLE_NONE |
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 |
---|
DarkTreeUI() |
Modifier and Type | Method and Description |
---|---|
protected void |
completeEditing() |
protected void |
completeUIInstall() |
protected TreeCellEditor |
createDefaultCellEditor() |
protected TreeCellRenderer |
createDefaultCellRenderer() |
protected FocusListener |
createFocusListener() |
static ComponentUI |
createUI(JComponent c) |
protected Icon |
getCollapsedIcon(boolean selected,
boolean focused) |
protected Icon |
getExpandedIcon(boolean selected,
boolean focused) |
protected Color |
getLineColor(TreePath path) |
protected String |
getLineStyle() |
protected Rectangle |
getPathBounds(TreePath path,
Insets insets,
Rectangle bounds) |
protected Color |
getRowBackground(int row,
boolean selected) |
protected Color |
getTreeSelectionBackground(boolean focused) |
protected boolean |
hasFocus() |
protected boolean |
hasFocus(Component other) |
protected void |
installDefaults() |
protected void |
installKeyboardActions() |
protected void |
installListeners() |
protected boolean |
isDashedLine() |
protected boolean |
isSelected(MouseEvent e) |
protected boolean |
isToggleSelectionEvent(MouseEvent e) |
void |
paint(Graphics g,
JComponent c) |
protected void |
paintExpandControl(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
protected void |
paintHorizontalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
protected void |
paintRowBackground(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf) |
protected void |
paintVerticalLine(Graphics g,
JComponent c,
int x,
int top,
int bottom) |
protected void |
paintVerticalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path) |
void |
propertyChange(PropertyChangeEvent evt) |
protected boolean |
selectedChildOf(TreePath path) |
protected boolean |
shouldPaintLines() |
protected boolean |
startEditing(TreePath path,
MouseEvent event) |
protected void |
uninstallDefaults() |
protected void |
uninstallListeners() |
protected void |
updateRenderer() |
cancelEditing, checkForClickInExpandControl, completeEditing, completeUIUninstall, configureLayoutCache, createCellEditorListener, createCellRendererPane, createComponentListener, 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, getPathBounds, getPathForRow, getPreferredMinSize, getPreferredSize, getPreferredSize, getRightChildIndent, getRowCount, getRowForPath, getRowHeight, getRowX, getSelectionModel, getShowsRootHandles, getVerticalLegBuffer, handleExpandControlClick, installComponents, installUI, isDropLine, isEditable, isEditing, isLargeModel, isLeaf, isLocationInExpandControl, isMultiSelectEvent, isRootVisible, isToggleEvent, paintDropLine, paintHorizontalLine, paintRow, pathWasCollapsed, pathWasExpanded, prepareForUIInstall, prepareForUIUninstall, selectPathForEvent, setCellEditor, setCellRenderer, setCollapsedIcon, setEditable, setExpandedIcon, setHashColor, setLargeModel, setLeftChildIndent, setModel, setPreferredMinSize, setRightChildIndent, setRootVisible, setRowHeight, setSelectionModel, setShowsRootHandles, shouldPaintExpandControl, startEditingAtPath, stopEditing, toggleExpandState, uninstallComponents, uninstallKeyboardActions, uninstallUI, updateCachedPreferredSize, updateCellEditor, updateDepthOffset, updateExpandedDescendants, updateLayoutCacheExpandedNodes, updateLeadSelectionRow, updateSize
contains, getAccessibleChild, getAccessibleChildrenCount, update
protected static final String KEY_PREFIX
public static final String KEY_TREE_TABLE_TREE
public static final String KEY_ALTERNATE_ROW_COLOR
public static final String KEY_RENDER_BOOLEAN_AS_CHECKBOX
public static final String KEY_BOOLEAN_RENDER_TYPE
public static final String KEY_LINE_STYLE
public static final String KEY_MAC_ACTIONS_INSTALLED
public static final String RENDER_TYPE_CHECKBOX
public static final String RENDER_TYPE_RADIOBUTTON
public static final String STYLE_LINE
public static final String STYLE_DASHED
public static final String STYLE_NONE
public static final String KEY_IS_TREE_EDITOR
public static final String KEY_IS_TREE_RENDERER
protected Color alternativeBackground
protected Color lineColor
protected Color focusSelectedLineColor
protected Color selectedLineColor
protected Color selectionBackground
protected Color focusSelectionBackground
protected Icon expandedFocusSelected
protected Icon expandedSelected
protected Icon expandedFocus
protected Icon expanded
protected Icon collapsedFocusSelected
protected Icon collapsedSelected
protected Icon collapsedFocus
protected Icon collapsed
public static ComponentUI createUI(JComponent c)
protected boolean isSelected(MouseEvent e)
protected void completeUIInstall()
completeUIInstall
in class BasicTreeUI
protected void installDefaults()
installDefaults
in class BasicTreeUI
protected void installListeners()
installListeners
in class BasicTreeUI
protected void installKeyboardActions()
installKeyboardActions
in class BasicTreeUI
protected FocusListener createFocusListener()
createFocusListener
in class BasicTreeUI
protected boolean hasFocus()
protected boolean hasFocus(Component other)
protected TreeCellEditor createDefaultCellEditor()
createDefaultCellEditor
in class BasicTreeUI
protected TreeCellRenderer createDefaultCellRenderer()
createDefaultCellRenderer
in class BasicTreeUI
protected void uninstallDefaults()
uninstallDefaults
in class BasicTreeUI
protected void uninstallListeners()
uninstallListeners
in class BasicTreeUI
protected boolean startEditing(TreePath path, MouseEvent event)
startEditing
in class BasicTreeUI
public void paint(Graphics g, JComponent c)
paint
in class BasicTreeUI
protected void paintRowBackground(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
protected void updateRenderer()
updateRenderer
in class BasicTreeUI
protected Color getRowBackground(int row, boolean selected)
protected boolean shouldPaintLines()
protected Icon getExpandedIcon(boolean selected, boolean focused)
protected Icon getCollapsedIcon(boolean selected, boolean focused)
protected Color getTreeSelectionBackground(boolean focused)
protected String getLineStyle()
protected boolean selectedChildOf(TreePath path)
protected boolean isDashedLine()
protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
paintHorizontalPartOfLeg
in class BasicTreeUI
protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
paintVerticalPartOfLeg
in class BasicTreeUI
protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
paintExpandControl
in class BasicTreeUI
protected void paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)
paintVerticalLine
in class BasicTreeUI
protected void completeEditing()
completeEditing
in class BasicTreeUI
protected boolean isToggleSelectionEvent(MouseEvent e)
isToggleSelectionEvent
in class BasicTreeUI
public void propertyChange(PropertyChangeEvent evt)
propertyChange
in interface PropertyChangeListener