All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Class java.awt.swing.multi.MultiTreeUI

java.lang.Object
    |
    +----java.awt.swing.plaf.ComponentUI
            |
            +----java.awt.swing.plaf.TreeUI
                    |
                    +----java.awt.swing.multi.MultiTreeUI

public class MultiTreeUI
extends TreeUI
implements Serializable
MultiTreeUI implementation


Variable Index

 o uis
The Vector containing the real UI's.

Constructor Index

 o MultiTreeUI()

Method Index

 o collapsePath(TreePath)
Insures that the last item identified in path is collapsed and visible.
 o collapseRow(int)
Insures that the item identified by row is collapsed.
 o contains(JComponent, int, int)
 o createUI(JComponent)
 o expandPath(TreePath)
Insures that the last item identified in path is expanded and visible.
 o expandRow(int)
Insures that the item identified by row is expanded.
 o getClosestPathForLocation(int, int)
Returns the path to the node that is closest to x,y.
 o getClosestRowForLocation(int, int)
Returns the row to the node that is closest to x,y.
 o getEditingPath()
Returns the path to the element that is being edited.
 o getMaximumSize(JComponent)
 o getMinimumSize(JComponent)
 o getPathBounds(TreePath)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.
 o getPathForRow(int)
Returns the path for passed in row.
 o getPreferredSize(JComponent)
 o getRowBounds(int)
Returns the Rectangle enclosing the label portion that the item identified by row will be drawn into.
 o getRowCount()
Returns the number of rows that are being displayed.
 o getRowForPath(TreePath)
Returns the row that the last item identified in path is visible at.
 o getUIs()
Return the list of UI's associated with this multiplexing UI.
 o installUI(JComponent)
 o isCollapsed(int)
Returns true if the value identified by row is currently collapsed.
 o isCollapsed(TreePath)
Returns true if the value identified by path is currently collapsed, this will return false if any of the values in path are currently not being displayed.
 o isEditing()
Returns true if the tree is being edited.
 o isExpanded(int)
Returns true if the value identified by row is currently expanded.
 o isExpanded(TreePath)
Returns true if the value identified by path is currently expanded, this will return false if any of the values in path are currently not being displayed.
 o isVisible(TreePath)
Returns true if all the parents of path are currently expanded.
 o makeVisible(TreePath)
Ensures that all of the parents of path are currently expanded.
 o paint(Graphics, JComponent)
 o scrollPathToVisible(TreePath)
Makes sure all the path components in path are expanded (accept for the last path component) and tries to scroll the resulting path to be visible (the scrolling will only work if the JTree is contained in a JScrollPane).
 o scrollRowToVisible(int)
Scrolls the item identified by row to be visible.
 o startEditingAtPath(TreePath)
Selects the last item in path and tries to edit it.
 o stopEditing()
Stops the current editing session.
 o uninstallUI(JComponent)

Variables

 o uis
protected Vector uis
The Vector containing the real UI's. This is populated in the call to createUI, and can be obtained by calling getUIs. The first element is guaranteed to the real UI obtained from the default look and feel.

Constructors

 o MultiTreeUI
public MultiTreeUI()

Methods

 o createUI
public static ComponentUI createUI(JComponent c)
 o getUIs
public ComponentUI[] getUIs()
Return the list of UI's associated with this multiplexing UI. This allows processing of the UI's by an application aware of multiplexing UI's on components.

 o installUI
public void installUI(JComponent c)
Overrides:
installUI in class ComponentUI
 o uninstallUI
public void uninstallUI(JComponent c)
Overrides:
uninstallUI in class ComponentUI
 o paint
public void paint(Graphics g,
                  JComponent c)
Overrides:
paint in class ComponentUI
 o getPreferredSize
public Dimension getPreferredSize(JComponent c)
Overrides:
getPreferredSize in class ComponentUI
 o getMinimumSize
public Dimension getMinimumSize(JComponent c)
Overrides:
getMinimumSize in class ComponentUI
 o getMaximumSize
public Dimension getMaximumSize(JComponent c)
Overrides:
getMaximumSize in class ComponentUI
 o contains
public boolean contains(JComponent c,
                        int x,
                        int y)
Overrides:
contains in class ComponentUI
 o getRowCount
public int getRowCount()
Returns the number of rows that are being displayed.

Overrides:
getRowCount in class TreeUI
 o isExpanded
public boolean isExpanded(TreePath path)
Returns true if the value identified by path is currently expanded, this will return false if any of the values in path are currently not being displayed.

Overrides:
isExpanded in class TreeUI
 o isExpanded
public boolean isExpanded(int row)
Returns true if the value identified by row is currently expanded.

Overrides:
isExpanded in class TreeUI
 o isCollapsed
public boolean isCollapsed(TreePath path)
Returns true if the value identified by path is currently collapsed, this will return false if any of the values in path are currently not being displayed.

Overrides:
isCollapsed in class TreeUI
 o isCollapsed
public boolean isCollapsed(int row)
Returns true if the value identified by row is currently collapsed.

Overrides:
isCollapsed in class TreeUI
 o makeVisible
public void makeVisible(TreePath path)
Ensures that all of the parents of path are currently expanded.

Overrides:
makeVisible in class TreeUI
 o isVisible
public boolean isVisible(TreePath path)
Returns true if all the parents of path are currently expanded.

Overrides:
isVisible in class TreeUI
 o getPathBounds
public Rectangle getPathBounds(TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.

Overrides:
getPathBounds in class TreeUI
 o getRowBounds
public Rectangle getRowBounds(int row)
Returns the Rectangle enclosing the label portion that the item identified by row will be drawn into.

Overrides:
getRowBounds in class TreeUI
 o scrollPathToVisible
public void scrollPathToVisible(TreePath path)
Makes sure all the path components in path are expanded (accept for the last path component) and tries to scroll the resulting path to be visible (the scrolling will only work if the JTree is contained in a JScrollPane).

Overrides:
scrollPathToVisible in class TreeUI
 o scrollRowToVisible
public void scrollRowToVisible(int row)
Scrolls the item identified by row to be visible.

Overrides:
scrollRowToVisible in class TreeUI
 o getPathForRow
public TreePath getPathForRow(int row)
Returns the path for passed in row.

Overrides:
getPathForRow in class TreeUI
 o getRowForPath
public int getRowForPath(TreePath path)
Returns the row that the last item identified in path is visible at.

Overrides:
getRowForPath in class TreeUI
 o expandPath
public void expandPath(TreePath path)
Insures that the last item identified in path is expanded and visible.

Overrides:
expandPath in class TreeUI
 o expandRow
public void expandRow(int row)
Insures that the item identified by row is expanded.

Overrides:
expandRow in class TreeUI
 o collapsePath
public void collapsePath(TreePath path)
Insures that the last item identified in path is collapsed and visible.

Overrides:
collapsePath in class TreeUI
 o collapseRow
public void collapseRow(int row)
Insures that the item identified by row is collapsed.

Overrides:
collapseRow in class TreeUI
 o getClosestPathForLocation
public TreePath getClosestPathForLocation(int x,
                                          int y)
Returns the path to the node that is closest to x,y.

Overrides:
getClosestPathForLocation in class TreeUI
 o getClosestRowForLocation
public int getClosestRowForLocation(int x,
                                    int y)
Returns the row to the node that is closest to x,y.

Overrides:
getClosestRowForLocation in class TreeUI
 o isEditing
public boolean isEditing()
Returns true if the tree is being edited.

Overrides:
isEditing in class TreeUI
 o stopEditing
public boolean stopEditing()
Stops the current editing session.

Overrides:
stopEditing in class TreeUI
 o startEditingAtPath
public void startEditingAtPath(TreePath path)
Selects the last item in path and tries to edit it.

Overrides:
startEditingAtPath in class TreeUI
 o getEditingPath
public TreePath getEditingPath()
Returns the path to the element that is being edited.

Overrides:
getEditingPath in class TreeUI

All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Submit a bug or feature