APIdia Launch Partner
Top Description Fields Constructors Methods
javax.swing.plaf.multi

public Class MultiTreeUI

extends TreeUI
Class Inheritance
Imports
java.util.Vector, javax.swing.plaf.TreeUI, .ComponentUI, java.awt.Rectangle, .Graphics, .Dimension, javax.swing.JTree, .JComponent, javax.swing.tree.TreePath, javax.accessibility.Accessible

A multiplexing UI used to combine TreeUIs.

This file was automatically generated by AutoMulti.

Author
Otto Multey

Field Summary

Modifier and TypeField and Description
protected Vector<ComponentUI>
uis

The vector containing the real UIs.

Constructor Summary

AccessConstructor and Description
public
MultiTreeUI()

Constructs a MultiTreeUI.

Method Summary

Modifier and TypeMethod and Description
public void
cancelEditing(JTree a)

Implements abstract javax.swing.plaf.TreeUI.cancelEditing.

Invokes the cancelEditing method on each UI handled by this object.

public boolean

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
contains
(JComponent a, int b, int c)

Overrides javax.swing.plaf.ComponentUI.contains.

Invokes the contains method on each UI handled by this object.

public static ComponentUI

Returns:

the UI delegate created
createUI
(JComponent
the component to create the UI for
a
)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a multiplexing UI instance if any of the auxiliary LookAndFeels supports this UI.

public Accessible

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getAccessibleChild
(JComponent a, int b)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChild.

Invokes the getAccessibleChild method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getAccessibleChildrenCount
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChildrenCount.

Invokes the getAccessibleChildrenCount method on each UI handled by this object.

public TreePath

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getClosestPathForLocation
(JTree a, int b, int c)

Implements abstract javax.swing.plaf.TreeUI.getClosestPathForLocation.

Invokes the getClosestPathForLocation method on each UI handled by this object.

public TreePath

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getEditingPath
(JTree a)

Implements abstract javax.swing.plaf.TreeUI.getEditingPath.

Invokes the getEditingPath method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getMaximumSize
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Invokes the getMaximumSize method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getMinimumSize
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMinimumSize.

Invokes the getMinimumSize method on each UI handled by this object.

public Rectangle

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getPathBounds
(JTree a, TreePath b)

Implements abstract javax.swing.plaf.TreeUI.getPathBounds.

Invokes the getPathBounds method on each UI handled by this object.

public TreePath

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getPathForRow
(JTree a, int b)

Implements abstract javax.swing.plaf.TreeUI.getPathForRow.

Invokes the getPathForRow method on each UI handled by this object.

public Dimension

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getPreferredSize
(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Invokes the getPreferredSize method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getRowCount
(JTree a)

Implements abstract javax.swing.plaf.TreeUI.getRowCount.

Invokes the getRowCount method on each UI handled by this object.

public int

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
getRowForPath
(JTree a, TreePath b)

Implements abstract javax.swing.plaf.TreeUI.getRowForPath.

Invokes the getRowForPath method on each UI handled by this object.

public ComponentUI[]

Returns:

an array of the UI delegates
getUIs
()

Returns the list of UIs associated with this multiplexing UI.

public void
installUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.installUI.

Invokes the installUI method on each UI handled by this object.

public boolean

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
isEditing
(JTree a)

Implements abstract javax.swing.plaf.TreeUI.isEditing.

Invokes the isEditing method on each UI handled by this object.

public void
paint(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.paint.

Invokes the paint method on each UI handled by this object.

public void
startEditingAtPath(JTree a, TreePath b)

Implements abstract javax.swing.plaf.TreeUI.startEditingAtPath.

Invokes the startEditingAtPath method on each UI handled by this object.

public boolean

Returns:

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel
stopEditing
(JTree a)

Implements abstract javax.swing.plaf.TreeUI.stopEditing.

Invokes the stopEditing method on each UI handled by this object.

public void
uninstallUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Invokes the uninstallUI method on each UI handled by this object.

public void
update(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.update.

Invokes the update method on each UI handled by this object.

Field Detail

uisback to summary
protected Vector<ComponentUI> uis

The vector containing the real UIs. This is populated in the call to createUI, and can be obtained by calling the getUIs method. The first element is guaranteed to be the real UI obtained from the default look and feel.

Constructor Detail

MultiTreeUIback to summary
public MultiTreeUI()

Constructs a MultiTreeUI.

Method Detail

cancelEditingback to summary
public void cancelEditing(JTree a)

Implements abstract javax.swing.plaf.TreeUI.cancelEditing.

Invokes the cancelEditing method on each UI handled by this object.

containsback to summary
public boolean contains(JComponent a, int b, int c)

Overrides javax.swing.plaf.ComponentUI.contains.

Invokes the contains method on each UI handled by this object.

Returns:boolean

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

createUIback to summary
public static ComponentUI createUI(JComponent a)

Hides javax.swing.plaf.ComponentUI.createUI.

Returns a multiplexing UI instance if any of the auxiliary LookAndFeels supports this UI. Otherwise, just returns the UI object obtained from the default LookAndFeel.

Parameters
a:JComponent

the component to create the UI for

Returns:ComponentUI

the UI delegate created

getAccessibleChildback to summary
public Accessible getAccessibleChild(JComponent a, int b)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChild.

Invokes the getAccessibleChild method on each UI handled by this object.

Returns:Accessible

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getAccessibleChildrenCountback to summary
public int getAccessibleChildrenCount(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getAccessibleChildrenCount.

Invokes the getAccessibleChildrenCount method on each UI handled by this object.

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getClosestPathForLocationback to summary
public TreePath getClosestPathForLocation(JTree a, int b, int c)

Implements abstract javax.swing.plaf.TreeUI.getClosestPathForLocation.

Invokes the getClosestPathForLocation method on each UI handled by this object.

Returns:TreePath

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getEditingPathback to summary
public TreePath getEditingPath(JTree a)

Implements abstract javax.swing.plaf.TreeUI.getEditingPath.

Invokes the getEditingPath method on each UI handled by this object.

Returns:TreePath

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getMaximumSizeback to summary
public Dimension getMaximumSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMaximumSize.

Invokes the getMaximumSize method on each UI handled by this object.

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getMinimumSizeback to summary
public Dimension getMinimumSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getMinimumSize.

Invokes the getMinimumSize method on each UI handled by this object.

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getPathBoundsback to summary
public Rectangle getPathBounds(JTree a, TreePath b)

Implements abstract javax.swing.plaf.TreeUI.getPathBounds.

Invokes the getPathBounds method on each UI handled by this object.

Returns:Rectangle

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getPathForRowback to summary
public TreePath getPathForRow(JTree a, int b)

Implements abstract javax.swing.plaf.TreeUI.getPathForRow.

Invokes the getPathForRow method on each UI handled by this object.

Returns:TreePath

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getPreferredSizeback to summary
public Dimension getPreferredSize(JComponent a)

Overrides javax.swing.plaf.ComponentUI.getPreferredSize.

Invokes the getPreferredSize method on each UI handled by this object.

Returns:Dimension

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getRowCountback to summary
public int getRowCount(JTree a)

Implements abstract javax.swing.plaf.TreeUI.getRowCount.

Invokes the getRowCount method on each UI handled by this object.

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getRowForPathback to summary
public int getRowForPath(JTree a, TreePath b)

Implements abstract javax.swing.plaf.TreeUI.getRowForPath.

Invokes the getRowForPath method on each UI handled by this object.

Returns:int

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

getUIsback to summary
public ComponentUI[] getUIs()

Returns the list of UIs associated with this multiplexing UI. This allows processing of the UIs by an application aware of multiplexing UIs on components.

Returns:ComponentUI[]

an array of the UI delegates

installUIback to summary
public void installUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.installUI.

Invokes the installUI method on each UI handled by this object.

isEditingback to summary
public boolean isEditing(JTree a)

Implements abstract javax.swing.plaf.TreeUI.isEditing.

Invokes the isEditing method on each UI handled by this object.

Returns:boolean

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

paintback to summary
public void paint(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.paint.

Invokes the paint method on each UI handled by this object.

startEditingAtPathback to summary
public void startEditingAtPath(JTree a, TreePath b)

Implements abstract javax.swing.plaf.TreeUI.startEditingAtPath.

Invokes the startEditingAtPath method on each UI handled by this object.

stopEditingback to summary
public boolean stopEditing(JTree a)

Implements abstract javax.swing.plaf.TreeUI.stopEditing.

Invokes the stopEditing method on each UI handled by this object.

Returns:boolean

the value obtained from the first UI, which is the UI obtained from the default LookAndFeel

uninstallUIback to summary
public void uninstallUI(JComponent a)

Overrides javax.swing.plaf.ComponentUI.uninstallUI.

Invokes the uninstallUI method on each UI handled by this object.

updateback to summary
public void update(Graphics a, JComponent b)

Overrides javax.swing.plaf.ComponentUI.update.

Invokes the update method on each UI handled by this object.