Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Object
javax.swing.plaf.ComponentUI
javax.swing.plaf.TreeUI
javax.swing.plaf.multi.MultiTreeUI
public class MultiTreeUI
extends TreeUI
TreeUI
instances, one from the primary look and feel, and one or more from the
auxiliary look and feel(s).
Constructor Summary | |
|
Method Summary | |
void |
|
boolean |
|
static ComponentUI |
|
Accessible |
|
int |
|
TreePath |
|
TreePath |
|
Dimension |
|
Dimension |
|
Rectangle |
|
TreePath |
|
Dimension |
|
int |
|
int |
|
ComponentUI[] |
|
void |
|
boolean |
|
void |
|
void |
|
boolean |
|
void |
|
void |
|
Methods inherited from class javax.swing.plaf.TreeUI | |
cancelEditing , getClosestPathForLocation , getEditingPath , getPathBounds , getPathForRow , getRowCount , getRowForPath , isEditing , startEditingAtPath , stopEditing |
Methods inherited from class javax.swing.plaf.ComponentUI | |
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , installUI , paint , uninstallUI , update |
Methods inherited from class java.lang.Object | |
clone , equals , extends Object> getClass , finalize , hashCode , notify , notifyAll , toString , wait , wait , wait |
public void cancelEditing(JTree tree)
Calls theTreeUI.cancelEditing(JTree)
method for all the UI delegates managed by thisMultiTreeUI
.
- Overrides:
- cancelEditing in interface TreeUI
- Parameters:
tree
- the tree component.
public boolean contains(JComponent c, int x, int y)
Calls theComponentUI.contains(JComponent,int,int)
method for all the UI delegates managed by thisMultiTreeUI
, returning the result for the UI delegate from the primary look and feel.
- Overrides:
- contains in interface ComponentUI
- Parameters:
c
- the component.x
- the x-coordinate.y
- the y-coordinate.
- Returns:
true
if the specified (x, y) coordinate falls within the bounds of the component as rendered by the UI delegate in the primary look and feel, andfalse
otherwise.
public static ComponentUI createUI(JComponent target)
Creates a delegate object for the specified component. If any auxiliary look and feels support this component, aMultiTreeUI
is returned, otherwise the UI from the default look and feel is returned.
- Overrides:
- createUI in interface ComponentUI
- Parameters:
target
- the component.
public Accessible getAccessibleChild(JComponent c, int i)
Calls theComponentUI.getAccessibleChild(JComponent,int)
method for all the UI delegates managed by thisMultiTreeUI
, returning the child for the UI delegate from the primary look and feel.
- Overrides:
- getAccessibleChild in interface ComponentUI
- Parameters:
c
- the componenti
- the child index.
- Returns:
- The child returned by the UI delegate from the primary look and feel.
public int getAccessibleChildrenCount(JComponent c)
Calls theComponentUI.getAccessibleChildrenCount(JComponent)
method for all the UI delegates managed by thisMultiTreeUI
, returning the count for the UI delegate from the primary look and feel.
- Overrides:
- getAccessibleChildrenCount in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The count returned by the UI delegate from the primary look and feel.
public TreePath getClosestPathForLocation(JTree tree, int x, int y)
Calls theTreeUI.getClosestPathForLocation(JTree,int,int)
method for all the UI delegates managed by thisMultiTreeUI
, returning the path for the UI delegate from the primary look and feel.
- Overrides:
- getClosestPathForLocation in interface TreeUI
- Parameters:
tree
- the tree component.
- Returns:
- The path returned by the UI delegate from the primary look and feel.
public TreePath getEditingPath(JTree tree)
Calls theTreeUI.getEditingPath(JTree)
method for all the UI delegates managed by thisMultiTreeUI
, returning the path for the UI delegate from the primary look and feel.
- Overrides:
- getEditingPath in interface TreeUI
- Parameters:
tree
- the tree component.
- Returns:
- The path returned by the UI delegate from the primary look and feel.
public Dimension getMaximumSize(JComponent c)
Calls theComponentUI.getMaximumSize(JComponent)
method for all the UI delegates managed by thisMultiTreeUI
, returning the maximum size for the UI delegate from the primary look and feel.
- Overrides:
- getMaximumSize in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The maximum size returned by the UI delegate from the primary look and feel.
public Dimension getMinimumSize(JComponent c)
Calls theComponentUI.getMinimumSize(JComponent)
method for all the UI delegates managed by thisMultiTreeUI
, returning the minimum size for the UI delegate from the primary look and feel.
- Overrides:
- getMinimumSize in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The minimum size returned by the UI delegate from the primary look and feel.
public Rectangle getPathBounds(JTree tree, TreePath path)
Calls theTreeUI.getPathBounds(JTree,TreePath)
method for all the UI delegates managed by thisMultiTreeUI
, returning the bounds for the UI delegate from the primary look and feel.
- Overrides:
- getPathBounds in interface TreeUI
- Parameters:
tree
- the tree component.
- Returns:
- The bounds returned by the UI delegate from the primary look and feel.
public TreePath getPathForRow(JTree tree, int row)
Calls theTreeUI.getPathForRow(JTree,int)
method for all the UI delegates managed by thisMultiTreeUI
, returning the path for the UI delegate from the primary look and feel.
- Overrides:
- getPathForRow in interface TreeUI
- Parameters:
tree
- the tree component.
- Returns:
- The path returned by the UI delegate from the primary look and feel.
public Dimension getPreferredSize(JComponent c)
Calls theComponentUI.getPreferredSize(JComponent)
method for all the UI delegates managed by thisMultiTreeUI
, returning the preferred size for the UI delegate from the primary look and feel.
- Overrides:
- getPreferredSize in interface ComponentUI
- Parameters:
c
- the component.
- Returns:
- The preferred size returned by the UI delegate from the primary look and feel.
public int getRowCount(JTree tree)
Calls theTreeUI.getRowCount(JTree)
method for all the UI delegates managed by thisMultiTreeUI
, returning the count for the UI delegate from the primary look and feel.
- Overrides:
- getRowCount in interface TreeUI
- Parameters:
tree
- the tree component.
- Returns:
- The count returned by the UI delegate from the primary look and feel.
public int getRowForPath(JTree tree, TreePath path)
Calls theTreeUI.getRowForPath(JTree,TreePath)
method for all the UI delegates managed by thisMultiTreeUI
, returning the row index for the UI delegate from the primary look and feel.
- Overrides:
- getRowForPath in interface TreeUI
- Parameters:
tree
- the tree component.
- Returns:
- The row index returned by the UI delegate from the primary look and feel.
public ComponentUI[] getUIs()
Returns an array containing the UI delegates managed by thisMultiTreeUI
. The first item in the array is always the UI delegate from the installed default look and feel.
- Returns:
- An array of UI delegates.
public void installUI(JComponent c)
Calls theComponentUI.installUI(JComponent)
method for all the UI delegates managed by thisMultiTreeUI
.
- Overrides:
- installUI in interface ComponentUI
- Parameters:
c
- the component.
public boolean isEditing(JTree tree)
Calls theTreeUI.isEditing(JTree)
method for all the UI delegates managed by thisMultiTreeUI
, returning the result for the UI delegate from the primary look and feel.
- Parameters:
tree
- the tree component.
- Returns:
- The result returned by the UI delegate from the primary look and feel.
public void paint(Graphics g, JComponent c)
Calls thepaint(Graphics, JComponent)
method for all the UI delegates managed by thisMultiTreeUI
.
- Overrides:
- paint in interface ComponentUI
- Parameters:
g
- the graphics device.c
- the component.
public void startEditingAtPath(JTree tree, TreePath path)
Calls theTreeUI.startEditingAtPath(JTree,TreePath)
method for all the UI delegates managed by thisMultiTreeUI
.
- Overrides:
- startEditingAtPath in interface TreeUI
- Parameters:
tree
- the tree component.path
- the path.
public boolean stopEditing(JTree tree)
Calls theTreeUI.stopEditing(JTree)
method for all the UI delegates managed by thisMultiTreeUI
, returning the result for the UI delegate from the primary look and feel.
- Overrides:
- stopEditing in interface TreeUI
- Parameters:
tree
- the tree component.
- Returns:
- The result returned by the UI delegate from the primary look and feel.
public void uninstallUI(JComponent c)
Calls theComponentUI.uninstallUI(JComponent)
method for all the UI delegates managed by thisMultiTreeUI
.
- Overrides:
- uninstallUI in interface ComponentUI
- Parameters:
c
- the component.
public void update(Graphics g, JComponent c)
Calls theComponentUI.update(Graphics,JComponent)
method for all the UI delegates managed by thisMultiTreeUI
.
- Overrides:
- update in interface ComponentUI
- Parameters:
g
- the graphics device.c
- the component.