| javax.swing.plaf.basic.BasicTreeUI org.jvnet.substance.SubstanceTreeUI
SubstanceTreeUI | public class SubstanceTreeUI extends BasicTreeUI (Code) | | UI for lists in Substance look and feel.
author: Kirill Grouchnikov |
Inner Class :protected static class TreePathId implements Comparable | |
Inner Class :protected class PathRepaintCallback extends FadeTrackerAdapter | |
Constructor Summary | |
public | SubstanceTreeUI() Creates a UI delegate for tree. |
Method Summary | |
protected TreeCellRenderer | createDefaultCellRenderer() | public static ComponentUI | createUI(JComponent tree) | protected Color | getHashColor() | public ComponentState | getPathState(TreePathId pathId) Returns the current state for the specified path.
Parameters: pathId - Path index. | public int | getPivotRendererX(Rectangle paintBounds) Returns the pivot X for the cells rendered in the specified area. | public ComponentState | getPrevPathState(TreePathId pathId) Returns the previous state for the specified path.
Parameters: pathId - Path index. | protected void | installDefaults() | protected void | installListeners() | protected void | paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) | protected void | paintExpandControlEnforce(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 | paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) | protected void | paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) | protected void | uninstallDefaults() | protected void | uninstallListeners() | public void | update(Graphics g, JComponent c) |
currRolloverPathId | protected TreePathId currRolloverPathId(Code) | | Holds the currently rolled-over path or null if none such.
|
selectedPaths | protected Map<TreePathId, Object> selectedPaths(Code) | | Holds the list of currently selected paths.
|
substanceFadeRolloverListener | protected RolloverFadeListener substanceFadeRolloverListener(Code) | | Listener for fade animations on tree rollovers.
|
substancePropertyChangeListener | protected PropertyChangeListener substancePropertyChangeListener(Code) | | Listener that listens to changes on tree properties.
|
substanceRowSelectionListener | protected MouseListener substanceRowSelectionListener(Code) | | Listener for selection of an entire row.
|
SubstanceTreeUI | public SubstanceTreeUI()(Code) | | Creates a UI delegate for tree.
|
getPathState | public ComponentState getPathState(TreePathId pathId)(Code) | | Returns the current state for the specified path.
Parameters: pathId - Path index. The current state for the specified path. |
getPrevPathState | public ComponentState getPrevPathState(TreePathId pathId)(Code) | | Returns the previous state for the specified path.
Parameters: pathId - Path index. The previous state for the specified path. |
installDefaults | protected void installDefaults()(Code) | | |
installListeners | protected void installListeners()(Code) | | |
uninstallDefaults | protected void uninstallDefaults()(Code) | | |
uninstallListeners | protected void uninstallListeners()(Code) | | |
Methods inherited from javax.swing.plaf.basic.BasicTreeUI | public void cancelEditing(JTree tree)(Code)(Java Doc) protected void checkForClickInExpandControl(TreePath path, int mouseX, int mouseY)(Code)(Java Doc) protected void completeEditing()(Code)(Java Doc) protected void completeEditing(boolean messageStop, boolean messageCancel, boolean messageTree)(Code)(Java Doc) protected void completeUIInstall()(Code)(Java Doc) protected void completeUIUninstall()(Code)(Java Doc) protected void configureLayoutCache()(Code)(Java Doc) protected CellEditorListener createCellEditorListener()(Code)(Java Doc) protected CellRendererPane createCellRendererPane()(Code)(Java Doc) protected ComponentListener createComponentListener()(Code)(Java Doc) protected TreeCellEditor createDefaultCellEditor()(Code)(Java Doc) protected TreeCellRenderer createDefaultCellRenderer()(Code)(Java Doc) protected FocusListener createFocusListener()(Code)(Java Doc) protected KeyListener createKeyListener()(Code)(Java Doc) protected AbstractLayoutCache createLayoutCache()(Code)(Java Doc) protected MouseListener createMouseListener()(Code)(Java Doc) protected AbstractLayoutCache.NodeDimensions createNodeDimensions()(Code)(Java Doc) protected PropertyChangeListener createPropertyChangeListener()(Code)(Java Doc) protected PropertyChangeListener createSelectionModelPropertyChangeListener()(Code)(Java Doc) protected TreeExpansionListener createTreeExpansionListener()(Code)(Java Doc) protected TreeModelListener createTreeModelListener()(Code)(Java Doc) protected TreeSelectionListener createTreeSelectionListener()(Code)(Java Doc) public static ComponentUI createUI(JComponent x)(Code)(Java Doc) protected void drawCentered(Component c, Graphics graphics, Icon icon, int x, int y)(Code)(Java Doc) protected void drawDashedHorizontalLine(Graphics g, int y, int x1, int x2)(Code)(Java Doc) protected void drawDashedVerticalLine(Graphics g, int x, int y1, int y2)(Code)(Java Doc) protected void ensureRowsAreVisible(int beginRow, int endRow)(Code)(Java Doc) public int getBaseline(JComponent c, int width, int height)(Code)(Java Doc) public Component.BaselineResizeBehavior getBaselineResizeBehavior(JComponent c)(Code)(Java Doc) protected TreeCellEditor getCellEditor()(Code)(Java Doc) protected TreeCellRenderer getCellRenderer()(Code)(Java Doc) public TreePath getClosestPathForLocation(JTree tree, int x, int y)(Code)(Java Doc) public Icon getCollapsedIcon()(Code)(Java Doc) public TreePath getEditingPath(JTree tree)(Code)(Java Doc) public Icon getExpandedIcon()(Code)(Java Doc) protected Color getHashColor()(Code)(Java Doc) protected int getHorizontalLegBuffer()(Code)(Java Doc) protected TreePath getLastChildPath(TreePath parent)(Code)(Java Doc) public int getLeftChildIndent()(Code)(Java Doc) public Dimension getMaximumSize(JComponent c)(Code)(Java Doc) public Dimension getMinimumSize(JComponent c)(Code)(Java Doc) protected TreeModel getModel()(Code)(Java Doc) public Rectangle getPathBounds(JTree tree, TreePath path)(Code)(Java Doc) public TreePath getPathForRow(JTree tree, int row)(Code)(Java Doc) public Dimension getPreferredMinSize()(Code)(Java Doc) public Dimension getPreferredSize(JComponent c)(Code)(Java Doc) public Dimension getPreferredSize(JComponent c, boolean checkConsistancy)(Code)(Java Doc) public int getRightChildIndent()(Code)(Java Doc) public int getRowCount(JTree tree)(Code)(Java Doc) public int getRowForPath(JTree tree, TreePath path)(Code)(Java Doc) protected int getRowHeight()(Code)(Java Doc) protected int getRowX(int row, int depth)(Code)(Java Doc) protected TreeSelectionModel getSelectionModel()(Code)(Java Doc) protected boolean getShowsRootHandles()(Code)(Java Doc) protected int getVerticalLegBuffer()(Code)(Java Doc) protected void handleExpandControlClick(TreePath path, int mouseX, int mouseY)(Code)(Java Doc) protected void installComponents()(Code)(Java Doc) protected void installDefaults()(Code)(Java Doc) protected void installKeyboardActions()(Code)(Java Doc) protected void installListeners()(Code)(Java Doc) public void installUI(JComponent c)(Code)(Java Doc) protected boolean isEditable()(Code)(Java Doc) public boolean isEditing(JTree tree)(Code)(Java Doc) protected boolean isLargeModel()(Code)(Java Doc) protected boolean isLeaf(int row)(Code)(Java Doc) protected boolean isLocationInExpandControl(TreePath path, int mouseX, int mouseY)(Code)(Java Doc) protected boolean isMultiSelectEvent(MouseEvent event)(Code)(Java Doc) protected boolean isRootVisible()(Code)(Java Doc) protected boolean isToggleEvent(MouseEvent event)(Code)(Java Doc) protected boolean isToggleSelectionEvent(MouseEvent event)(Code)(Java Doc) public void paint(Graphics g, JComponent c)(Code)(Java Doc) protected void paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)(Code)(Java Doc) protected void paintHorizontalLine(Graphics g, JComponent c, int y, int left, int right)(Code)(Java Doc) protected void paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)(Code)(Java Doc) protected void paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)(Code)(Java Doc) protected void paintVerticalLine(Graphics g, JComponent c, int x, int top, int bottom)(Code)(Java Doc) protected void paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)(Code)(Java Doc) protected void pathWasCollapsed(TreePath path)(Code)(Java Doc) protected void pathWasExpanded(TreePath path)(Code)(Java Doc) protected void prepareForUIInstall()(Code)(Java Doc) protected void prepareForUIUninstall()(Code)(Java Doc) protected void selectPathForEvent(TreePath path, MouseEvent event)(Code)(Java Doc) protected void setCellEditor(TreeCellEditor editor)(Code)(Java Doc) protected void setCellRenderer(TreeCellRenderer tcr)(Code)(Java Doc) public void setCollapsedIcon(Icon newG)(Code)(Java Doc) protected void setEditable(boolean newValue)(Code)(Java Doc) public void setExpandedIcon(Icon newG)(Code)(Java Doc) protected void setHashColor(Color color)(Code)(Java Doc) protected void setLargeModel(boolean largeModel)(Code)(Java Doc) public void setLeftChildIndent(int newAmount)(Code)(Java Doc) protected void setModel(TreeModel model)(Code)(Java Doc) public void setPreferredMinSize(Dimension newSize)(Code)(Java Doc) public void setRightChildIndent(int newAmount)(Code)(Java Doc) protected void setRootVisible(boolean newValue)(Code)(Java Doc) protected void setRowHeight(int rowHeight)(Code)(Java Doc) protected void setSelectionModel(TreeSelectionModel newLSM)(Code)(Java Doc) protected void setShowsRootHandles(boolean newValue)(Code)(Java Doc) protected boolean shouldPaintExpandControl(TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)(Code)(Java Doc) protected boolean startEditing(TreePath path, MouseEvent event)(Code)(Java Doc) public void startEditingAtPath(JTree tree, TreePath path)(Code)(Java Doc) public boolean stopEditing(JTree tree)(Code)(Java Doc) protected void toggleExpandState(TreePath path)(Code)(Java Doc) protected void uninstallComponents()(Code)(Java Doc) protected void uninstallDefaults()(Code)(Java Doc) protected void uninstallKeyboardActions()(Code)(Java Doc) protected void uninstallListeners()(Code)(Java Doc) public void uninstallUI(JComponent c)(Code)(Java Doc) protected void updateCachedPreferredSize()(Code)(Java Doc) protected void updateCellEditor()(Code)(Java Doc) protected void updateDepthOffset()(Code)(Java Doc) protected void updateExpandedDescendants(TreePath path)(Code)(Java Doc) protected void updateLayoutCacheExpandedNodes()(Code)(Java Doc) protected void updateRenderer()(Code)(Java Doc) protected void updateSize()(Code)(Java Doc)
|
|
|