FileDocCategorySizeDatePackage
MultiTreeUI.javaAPI DocJava SE 5 API11358Fri Aug 26 14:58:10 BST 2005javax.swing.plaf.multi

MultiTreeUI

public class MultiTreeUI extends TreeUI
A multiplexing UI used to combine TreeUIs.

This file was automatically generated by AutoMulti.

version
1.32 12/19/03 17:39:46
author
Otto Multey

Fields Summary
protected Vector
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.
Constructors Summary
Methods Summary
public voidcancelEditing(javax.swing.JTree a)
Invokes the cancelEditing method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).cancelEditing(a);
        }
    
public booleancontains(javax.swing.JComponent a, int b, int c)
Invokes the contains method on each UI handled by this object.

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

        boolean returnValue = 
            ((ComponentUI) (uis.elementAt(0))).contains(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).contains(a,b,c);
        }
        return returnValue;
    
public static javax.swing.plaf.ComponentUIcreateUI(javax.swing.JComponent a)
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.

        ComponentUI mui = new MultiTreeUI();
        return MultiLookAndFeel.createUIs(mui,
                                          ((MultiTreeUI) mui).uis,
                                          a);
    
public javax.accessibility.AccessiblegetAccessibleChild(javax.swing.JComponent a, int b)
Invokes the getAccessibleChild method on each UI handled by this object.

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

        Accessible returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getAccessibleChild(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getAccessibleChild(a,b);
        }
        return returnValue;
    
public intgetAccessibleChildrenCount(javax.swing.JComponent a)
Invokes the getAccessibleChildrenCount method on each UI handled by this object.

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

        int returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getAccessibleChildrenCount(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getAccessibleChildrenCount(a);
        }
        return returnValue;
    
public javax.swing.tree.TreePathgetClosestPathForLocation(javax.swing.JTree a, int b, int c)
Invokes the getClosestPathForLocation method on each UI handled by this object.

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

        TreePath returnValue = 
            ((TreeUI) (uis.elementAt(0))).getClosestPathForLocation(a,b,c);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).getClosestPathForLocation(a,b,c);
        }
        return returnValue;
    
public javax.swing.tree.TreePathgetEditingPath(javax.swing.JTree a)
Invokes the getEditingPath method on each UI handled by this object.

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

        TreePath returnValue = 
            ((TreeUI) (uis.elementAt(0))).getEditingPath(a);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).getEditingPath(a);
        }
        return returnValue;
    
public java.awt.DimensiongetMaximumSize(javax.swing.JComponent a)
Invokes the getMaximumSize method on each UI handled by this object.

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

        Dimension returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getMaximumSize(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getMaximumSize(a);
        }
        return returnValue;
    
public java.awt.DimensiongetMinimumSize(javax.swing.JComponent a)
Invokes the getMinimumSize method on each UI handled by this object.

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

        Dimension returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getMinimumSize(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getMinimumSize(a);
        }
        return returnValue;
    
public java.awt.RectanglegetPathBounds(javax.swing.JTree a, javax.swing.tree.TreePath b)
Invokes the getPathBounds method on each UI handled by this object.

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

        Rectangle returnValue = 
            ((TreeUI) (uis.elementAt(0))).getPathBounds(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).getPathBounds(a,b);
        }
        return returnValue;
    
public javax.swing.tree.TreePathgetPathForRow(javax.swing.JTree a, int b)
Invokes the getPathForRow method on each UI handled by this object.

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

        TreePath returnValue = 
            ((TreeUI) (uis.elementAt(0))).getPathForRow(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).getPathForRow(a,b);
        }
        return returnValue;
    
public java.awt.DimensiongetPreferredSize(javax.swing.JComponent a)
Invokes the getPreferredSize method on each UI handled by this object.

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

        Dimension returnValue = 
            ((ComponentUI) (uis.elementAt(0))).getPreferredSize(a);
        for (int i = 1; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).getPreferredSize(a);
        }
        return returnValue;
    
public intgetRowCount(javax.swing.JTree a)
Invokes the getRowCount method on each UI handled by this object.

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

        int returnValue = 
            ((TreeUI) (uis.elementAt(0))).getRowCount(a);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).getRowCount(a);
        }
        return returnValue;
    
public intgetRowForPath(javax.swing.JTree a, javax.swing.tree.TreePath b)
Invokes the getRowForPath method on each UI handled by this object.

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

        int returnValue = 
            ((TreeUI) (uis.elementAt(0))).getRowForPath(a,b);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).getRowForPath(a,b);
        }
        return returnValue;
    
public javax.swing.plaf.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.


////////////////////
// Common UI methods
////////////////////

                                     
       
        return MultiLookAndFeel.uisToArray(uis);
    
public voidinstallUI(javax.swing.JComponent a)
Invokes the installUI method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).installUI(a);
        }
    
public booleanisEditing(javax.swing.JTree a)
Invokes the isEditing method on each UI handled by this object.

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

        boolean returnValue = 
            ((TreeUI) (uis.elementAt(0))).isEditing(a);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).isEditing(a);
        }
        return returnValue;
    
public voidpaint(java.awt.Graphics a, javax.swing.JComponent b)
Invokes the paint method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).paint(a,b);
        }
    
public voidstartEditingAtPath(javax.swing.JTree a, javax.swing.tree.TreePath b)
Invokes the startEditingAtPath method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).startEditingAtPath(a,b);
        }
    
public booleanstopEditing(javax.swing.JTree a)
Invokes the stopEditing method on each UI handled by this object.

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

        boolean returnValue = 
            ((TreeUI) (uis.elementAt(0))).stopEditing(a);
        for (int i = 1; i < uis.size(); i++) {
            ((TreeUI) (uis.elementAt(i))).stopEditing(a);
        }
        return returnValue;
    
public voiduninstallUI(javax.swing.JComponent a)
Invokes the uninstallUI method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).uninstallUI(a);
        }
    
public voidupdate(java.awt.Graphics a, javax.swing.JComponent b)
Invokes the update method on each UI handled by this object.

        for (int i = 0; i < uis.size(); i++) {
            ((ComponentUI) (uis.elementAt(i))).update(a,b);
        }