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
uis- The Vector containing the real UI's.
MultiTreeUI()
-
collapsePath(TreePath)
- Insures that the last item identified in path is collapsed and
visible.
collapseRow(int)
- Insures that the item identified by row is collapsed.
contains(JComponent, int, int)
-
createUI(JComponent)
-
expandPath(TreePath)
- Insures that the last item identified in path is expanded and
visible.
expandRow(int)
- Insures that the item identified by row is expanded.
getClosestPathForLocation(int, int)
- Returns the path to the node that is closest to x,y.
getClosestRowForLocation(int, int)
- Returns the row to the node that is closest to x,y.
getEditingPath()
- Returns the path to the element that is being edited.
getMaximumSize(JComponent)
-
getMinimumSize(JComponent)
-
getPathBounds(TreePath)
- Returns the Rectangle enclosing the label portion that the
last item in path will be drawn into.
getPathForRow(int)
- Returns the path for passed in row.
getPreferredSize(JComponent)
-
getRowBounds(int)
- Returns the Rectangle enclosing the label portion that the
item identified by row will be drawn into.
getRowCount()
- Returns the number of rows that are being displayed.
getRowForPath(TreePath)
- Returns the row that the last item identified in path is visible
at.
getUIs()
- Return the list of UI's associated with this multiplexing UI.
installUI(JComponent)
-
isCollapsed(int)
- Returns true if the value identified by row is currently collapsed.
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.
isEditing()
- Returns true if the tree is being edited.
isExpanded(int)
- Returns true if the value identified by row is currently expanded.
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.
isVisible(TreePath)
- Returns true if all the parents of path are currently expanded.
makeVisible(TreePath)
- Ensures that all of the parents of path are currently expanded.
paint(Graphics, JComponent)
-
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).
scrollRowToVisible(int)
- Scrolls the item identified by row to be visible.
startEditingAtPath(TreePath)
- Selects the last item in path and tries to edit it.
stopEditing()
- Stops the current editing session.
uninstallUI(JComponent)
-
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.
MultiTreeUI
public MultiTreeUI()
createUI
public static ComponentUI createUI(JComponent c)
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.
installUI
public void installUI(JComponent c)
- Overrides:
- installUI in class ComponentUI
uninstallUI
public void uninstallUI(JComponent c)
- Overrides:
- uninstallUI in class ComponentUI
paint
public void paint(Graphics g,
JComponent c)
- Overrides:
- paint in class ComponentUI
getPreferredSize
public Dimension getPreferredSize(JComponent c)
- Overrides:
- getPreferredSize in class ComponentUI
getMinimumSize
public Dimension getMinimumSize(JComponent c)
- Overrides:
- getMinimumSize in class ComponentUI
getMaximumSize
public Dimension getMaximumSize(JComponent c)
- Overrides:
- getMaximumSize in class ComponentUI
contains
public boolean contains(JComponent c,
int x,
int y)
- Overrides:
- contains in class ComponentUI
getRowCount
public int getRowCount()
- Returns the number of rows that are being displayed.
- Overrides:
- getRowCount in class TreeUI
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
isExpanded
public boolean isExpanded(int row)
- Returns true if the value identified by row is currently expanded.
- Overrides:
- isExpanded in class TreeUI
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
isCollapsed
public boolean isCollapsed(int row)
- Returns true if the value identified by row is currently collapsed.
- Overrides:
- isCollapsed in class TreeUI
makeVisible
public void makeVisible(TreePath path)
- Ensures that all of the parents of path are currently expanded.
- Overrides:
- makeVisible in class TreeUI
isVisible
public boolean isVisible(TreePath path)
- Returns true if all the parents of path are currently expanded.
- Overrides:
- isVisible in class TreeUI
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
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
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
scrollRowToVisible
public void scrollRowToVisible(int row)
- Scrolls the item identified by row to be visible.
- Overrides:
- scrollRowToVisible in class TreeUI
getPathForRow
public TreePath getPathForRow(int row)
- Returns the path for passed in row.
- Overrides:
- getPathForRow in class TreeUI
getRowForPath
public int getRowForPath(TreePath path)
- Returns the row that the last item identified in path is visible
at.
- Overrides:
- getRowForPath in class TreeUI
expandPath
public void expandPath(TreePath path)
- Insures that the last item identified in path is expanded and
visible.
- Overrides:
- expandPath in class TreeUI
expandRow
public void expandRow(int row)
- Insures that the item identified by row is expanded.
- Overrides:
- expandRow in class TreeUI
collapsePath
public void collapsePath(TreePath path)
- Insures that the last item identified in path is collapsed and
visible.
- Overrides:
- collapsePath in class TreeUI
collapseRow
public void collapseRow(int row)
- Insures that the item identified by row is collapsed.
- Overrides:
- collapseRow in class TreeUI
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
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
isEditing
public boolean isEditing()
- Returns true if the tree is being edited.
- Overrides:
- isEditing in class TreeUI
stopEditing
public boolean stopEditing()
- Stops the current editing session.
- Overrides:
- stopEditing in class TreeUI
startEditingAtPath
public void startEditingAtPath(TreePath path)
- Selects the last item in path and tries to edit it.
- Overrides:
- startEditingAtPath in class TreeUI
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