diff options
Diffstat (limited to 'libjava/classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java')
-rw-r--r-- | libjava/classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java | 218 |
1 files changed, 109 insertions, 109 deletions
diff --git a/libjava/classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java b/libjava/classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java index 2a2599bde1b..3f9d22af4ee 100644 --- a/libjava/classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java +++ b/libjava/classpath/javax/swing/plaf/multi/MultiTabbedPaneUI.java @@ -52,35 +52,35 @@ import javax.swing.plaf.ComponentUI; import javax.swing.plaf.TabbedPaneUI; /** - * A UI delegate that that coordinates multiple {@link TabbedPaneUI} - * instances, one from the primary look and feel, and one or more from the + * A UI delegate that that coordinates multiple {@link TabbedPaneUI} + * instances, one from the primary look and feel, and one or more from the * auxiliary look and feel(s). - * + * * @see UIManager#addAuxiliaryLookAndFeel(LookAndFeel) */ -public class MultiTabbedPaneUI extends TabbedPaneUI +public class MultiTabbedPaneUI extends TabbedPaneUI { /** A list of references to the actual component UIs. */ protected Vector uis; - + /** * Creates a new <code>MultiTabbedPaneUI</code> instance. - * + * * @see #createUI(JComponent) */ - public MultiTabbedPaneUI() + public MultiTabbedPaneUI() { uis = new Vector(); } - + /** - * Creates a delegate object for the specified component. If any auxiliary + * Creates a delegate object for the specified component. If any auxiliary * look and feels support this component, a <code>MultiTabbedPaneUI</code> is * returned, otherwise the UI from the default look and feel is returned. - * + * * @param target the component. - * + * * @see MultiLookAndFeel#createUIs(ComponentUI, Vector, JComponent) */ public static ComponentUI createUI(JComponent target) @@ -88,11 +88,11 @@ public class MultiTabbedPaneUI extends TabbedPaneUI MultiTabbedPaneUI mui = new MultiTabbedPaneUI(); return MultiLookAndFeel.createUIs(mui, mui.uis, target); } - + /** - * Calls the {@link ComponentUI#installUI(JComponent)} method for all + * Calls the {@link ComponentUI#installUI(JComponent)} method for all * the UI delegates managed by this <code>MultiTabbedPaneUI</code>. - * + * * @param c the component. */ public void installUI(JComponent c) @@ -106,9 +106,9 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } /** - * Calls the {@link ComponentUI#uninstallUI(JComponent)} method for all + * Calls the {@link ComponentUI#uninstallUI(JComponent)} method for all * the UI delegates managed by this <code>MultiTabbedPaneUI</code>. - * + * * @param c the component. */ public void uninstallUI(JComponent c) @@ -120,39 +120,39 @@ public class MultiTabbedPaneUI extends TabbedPaneUI ui.uninstallUI(c); } } - + /** * Returns an array containing the UI delegates managed by this - * <code>MultiTabbedPaneUI</code>. The first item in the array is always + * <code>MultiTabbedPaneUI</code>. The first item in the array is always * the UI delegate from the installed default look and feel. - * + * * @return An array of UI delegates. */ public ComponentUI[] getUIs() { return MultiLookAndFeel.uisToArray(uis); } - + /** - * Calls the {@link ComponentUI#contains(JComponent, int, int)} method for all - * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, - * returning the result for the UI delegate from the primary look and - * feel. - * + * Calls the {@link ComponentUI#contains(JComponent, int, int)} method for all + * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, + * returning the result for the UI delegate from the primary look and + * feel. + * * @param c the component. * @param x the x-coordinate. * @param y the y-coordinate. - * + * * @return <code>true</code> 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, and <code>false</code> otherwise. + * primary look and feel, and <code>false</code> otherwise. */ - public boolean contains(JComponent c, int x, int y) + public boolean contains(JComponent c, int x, int y) { boolean result = false; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { ComponentUI ui = (ComponentUI) iterator.next(); result = ui.contains(c, x, y); @@ -165,11 +165,11 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } return result; } - + /** - * Calls the {@link ComponentUI#update(Graphics, JComponent)} method for all + * Calls the {@link ComponentUI#update(Graphics, JComponent)} method for all * the UI delegates managed by this <code>MultiTabbedPaneUI</code>. - * + * * @param g the graphics device. * @param c the component. */ @@ -184,9 +184,9 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } /** - * Calls the <code>paint(Graphics, JComponent)</code> method for all the UI + * Calls the <code>paint(Graphics, JComponent)</code> method for all the UI * delegates managed by this <code>MultiTabbedPaneUI</code>. - * + * * @param g the graphics device. * @param c the component. */ @@ -199,24 +199,24 @@ public class MultiTabbedPaneUI extends TabbedPaneUI ui.paint(g, c); } } - + /** * Calls the {@link ComponentUI#getPreferredSize(JComponent)} method for all - * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, - * returning the preferred size for the UI delegate from the primary look and - * feel. - * + * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, + * returning the preferred size for the UI delegate from the primary look and + * feel. + * * @param c the component. - * - * @return The preferred size returned by the UI delegate from the primary - * look and feel. + * + * @return The preferred size returned by the UI delegate from the primary + * look and feel. */ public Dimension getPreferredSize(JComponent c) { Dimension result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { ComponentUI ui = (ComponentUI) iterator.next(); result = ui.getPreferredSize(c); @@ -232,21 +232,21 @@ public class MultiTabbedPaneUI extends TabbedPaneUI /** * Calls the {@link ComponentUI#getMinimumSize(JComponent)} method for all - * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, - * returning the minimum size for the UI delegate from the primary look and - * feel. - * + * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, + * returning the minimum size for the UI delegate from the primary look and + * feel. + * * @param c the component. - * - * @return The minimum size returned by the UI delegate from the primary - * look and feel. + * + * @return The minimum size returned by the UI delegate from the primary + * look and feel. */ public Dimension getMinimumSize(JComponent c) { Dimension result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { ComponentUI ui = (ComponentUI) iterator.next(); result = ui.getMinimumSize(c); @@ -259,24 +259,24 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } return result; } - + /** * Calls the {@link ComponentUI#getMaximumSize(JComponent)} method for all - * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, - * returning the maximum size for the UI delegate from the primary look and - * feel. - * + * the UI delegates managed by this <code>MultiTabbedPaneUI</code>, + * returning the maximum size for the UI delegate from the primary look and + * feel. + * * @param c the component. - * - * @return The maximum size returned by the UI delegate from the primary - * look and feel. + * + * @return The maximum size returned by the UI delegate from the primary + * look and feel. */ public Dimension getMaximumSize(JComponent c) { Dimension result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { ComponentUI ui = (ComponentUI) iterator.next(); result = ui.getMaximumSize(c); @@ -289,24 +289,24 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } return result; } - + /** * Calls the {@link ComponentUI#getAccessibleChildrenCount(JComponent)} method - * for all the UI delegates managed by this <code>MultiTabbedPaneUI</code>, - * returning the count for the UI delegate from the primary look and - * feel. - * + * for all the UI delegates managed by this <code>MultiTabbedPaneUI</code>, + * returning the count for the UI delegate from the primary look and + * feel. + * * @param c the component. - * - * @return The count returned by the UI delegate from the primary - * look and feel. + * + * @return The count returned by the UI delegate from the primary + * look and feel. */ public int getAccessibleChildrenCount(JComponent c) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { ComponentUI ui = (ComponentUI) iterator.next(); result = ui.getAccessibleChildrenCount(c); @@ -319,25 +319,25 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } return result; } - + /** * Calls the {@link ComponentUI#getAccessibleChild(JComponent, int)} method - * for all the UI delegates managed by this <code>MultiTabbedPaneUI</code>, - * returning the child for the UI delegate from the primary look and - * feel. - * + * for all the UI delegates managed by this <code>MultiTabbedPaneUI</code>, + * returning the child for the UI delegate from the primary look and + * feel. + * * @param c the component * @param i the child index. - * - * @return The child returned by the UI delegate from the primary - * look and feel. + * + * @return The child returned by the UI delegate from the primary + * look and feel. */ public Accessible getAccessibleChild(JComponent c, int i) { Accessible result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { ComponentUI ui = (ComponentUI) iterator.next(); result = ui.getAccessibleChild(c, i); @@ -350,26 +350,26 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } return result; } - + /** - * Calls the {@link TabbedPaneUI#tabForCoordinate(JTabbedPane, int, int)} - * method for all the UI delegates managed by this - * <code>MultiTabbedPaneUI</code>, returning the tab index for the UI - * delegate from the primary look and feel. - * + * Calls the {@link TabbedPaneUI#tabForCoordinate(JTabbedPane, int, int)} + * method for all the UI delegates managed by this + * <code>MultiTabbedPaneUI</code>, returning the tab index for the UI + * delegate from the primary look and feel. + * * @param pane the tabbed pane. * @param x the x-coordinate. * @param y the y-coordinate. - * - * @return The tab index returned by the UI delegate from the primary - * look and feel. + * + * @return The tab index returned by the UI delegate from the primary + * look and feel. */ - public int tabForCoordinate(JTabbedPane pane, int x, int y) + public int tabForCoordinate(JTabbedPane pane, int x, int y) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.tabForCoordinate(pane, x, y); @@ -384,23 +384,23 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } /** - * Calls the {@link TabbedPaneUI#getTabBounds(JTabbedPane, int)} - * method for all the UI delegates managed by this - * <code>MultiTabbedPaneUI</code>, returning the bounds for the UI - * delegate from the primary look and feel. - * + * Calls the {@link TabbedPaneUI#getTabBounds(JTabbedPane, int)} + * method for all the UI delegates managed by this + * <code>MultiTabbedPaneUI</code>, returning the bounds for the UI + * delegate from the primary look and feel. + * * @param pane the tabbed pane. * @param index the index. - * - * @return The bounds returned by the UI delegate from the primary - * look and feel. + * + * @return The bounds returned by the UI delegate from the primary + * look and feel. */ - public Rectangle getTabBounds(JTabbedPane pane, int index) + public Rectangle getTabBounds(JTabbedPane pane, int index) { Rectangle result = null; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabBounds(pane, index); @@ -415,22 +415,22 @@ public class MultiTabbedPaneUI extends TabbedPaneUI } /** - * Calls the {@link TabbedPaneUI#getTabRunCount(JTabbedPane)} - * method for all the UI delegates managed by this - * <code>MultiTabbedPaneUI</code>, returning the nt for the UI - * delegate from the primary look and feel. - * + * Calls the {@link TabbedPaneUI#getTabRunCount(JTabbedPane)} + * method for all the UI delegates managed by this + * <code>MultiTabbedPaneUI</code>, returning the nt for the UI + * delegate from the primary look and feel. + * * @param pane the tabbed pane. - * - * @return The count returned by the UI delegate from the primary - * look and feel. + * + * @return The count returned by the UI delegate from the primary + * look and feel. */ - public int getTabRunCount(JTabbedPane pane) + public int getTabRunCount(JTabbedPane pane) { int result = 0; Iterator iterator = uis.iterator(); // first UI delegate provides the return value - if (iterator.hasNext()) + if (iterator.hasNext()) { TabbedPaneUI ui = (TabbedPaneUI) iterator.next(); result = ui.getTabRunCount(pane); |