diff options
Diffstat (limited to 'libjava/classpath/javax/swing/plaf/multi/MultiInternalFrameUI.java')
-rw-r--r-- | libjava/classpath/javax/swing/plaf/multi/MultiInternalFrameUI.java | 164 |
1 files changed, 82 insertions, 82 deletions
diff --git a/libjava/classpath/javax/swing/plaf/multi/MultiInternalFrameUI.java b/libjava/classpath/javax/swing/plaf/multi/MultiInternalFrameUI.java index 01d1df6a124..37b2ee3af26 100644 --- a/libjava/classpath/javax/swing/plaf/multi/MultiInternalFrameUI.java +++ b/libjava/classpath/javax/swing/plaf/multi/MultiInternalFrameUI.java @@ -50,35 +50,35 @@ import javax.swing.plaf.ComponentUI; import javax.swing.plaf.InternalFrameUI; /** - * A UI delegate that that coordinates multiple {@link InternalFrameUI} - * instances, one from the primary look and feel, and one or more from the + * A UI delegate that that coordinates multiple {@link InternalFrameUI} + * 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 MultiInternalFrameUI extends InternalFrameUI +public class MultiInternalFrameUI extends InternalFrameUI { /** A list of references to the actual component UIs. */ protected Vector uis; - + /** * Creates a new <code>MultiInternalFrameUI</code> instance. - * + * * @see #createUI(JComponent) */ - public MultiInternalFrameUI() + public MultiInternalFrameUI() { uis = new Vector(); } - + /** - * Creates a delegate object for the specified component. If any auxiliary - * look and feels support this component, a <code>MultiInternalFrameUI</code> + * Creates a delegate object for the specified component. If any auxiliary + * look and feels support this component, a <code>MultiInternalFrameUI</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) @@ -86,12 +86,12 @@ public class MultiInternalFrameUI extends InternalFrameUI MultiInternalFrameUI mui = new MultiInternalFrameUI(); 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>MultiInternalFrameUI</code>. - * + * * @param c the component. */ public void installUI(JComponent c) @@ -105,9 +105,9 @@ public class MultiInternalFrameUI extends InternalFrameUI } /** - * 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>MultiInternalFrameUI</code>. - * + * * @param c the component. */ public void uninstallUI(JComponent c) @@ -119,39 +119,39 @@ public class MultiInternalFrameUI extends InternalFrameUI ui.uninstallUI(c); } } - + /** * Returns an array containing the UI delegates managed by this - * <code>MultiInternalFrameUI</code>. The first item in the array is always + * <code>MultiInternalFrameUI</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>MultiInternalFrameUI</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>MultiInternalFrameUI</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); @@ -164,11 +164,11 @@ public class MultiInternalFrameUI extends InternalFrameUI } 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>MultiInternalFrameUI</code>. - * + * * @param g the graphics device. * @param c the component. */ @@ -183,9 +183,9 @@ public class MultiInternalFrameUI extends InternalFrameUI } /** - * 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>MultiInternalFrameUI</code>. - * + * * @param g the graphics device. * @param c the component. */ @@ -198,24 +198,24 @@ public class MultiInternalFrameUI extends InternalFrameUI ui.paint(g, c); } } - + /** * Calls the {@link ComponentUI#getPreferredSize(JComponent)} method for all - * the UI delegates managed by this <code>MultiInternalFrameUI</code>, - * returning the preferred size for the UI delegate from the primary look and - * feel. - * + * the UI delegates managed by this <code>MultiInternalFrameUI</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); @@ -228,24 +228,24 @@ public class MultiInternalFrameUI extends InternalFrameUI } return result; } - + /** * Calls the {@link ComponentUI#getMinimumSize(JComponent)} method for all - * the UI delegates managed by this <code>MultiInternalFrameUI</code>, - * returning the minimum size for the UI delegate from the primary look and - * feel. - * + * the UI delegates managed by this <code>MultiInternalFrameUI</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); @@ -258,24 +258,24 @@ public class MultiInternalFrameUI extends InternalFrameUI } return result; } - + /** * Calls the {@link ComponentUI#getMaximumSize(JComponent)} method for all - * the UI delegates managed by this <code>MultiInternalFrameUI</code>, - * returning the maximum size for the UI delegate from the primary look and - * feel. - * + * the UI delegates managed by this <code>MultiInternalFrameUI</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); @@ -288,24 +288,24 @@ public class MultiInternalFrameUI extends InternalFrameUI } return result; } - + /** * Calls the {@link ComponentUI#getAccessibleChildrenCount(JComponent)} method - * for all the UI delegates managed by this <code>MultiInternalFrameUI</code>, - * returning the count for the UI delegate from the primary look and - * feel. - * + * for all the UI delegates managed by this <code>MultiInternalFrameUI</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); @@ -318,25 +318,25 @@ public class MultiInternalFrameUI extends InternalFrameUI } return result; } - + /** * Calls the {@link ComponentUI#getAccessibleChild(JComponent, int)} method - * for all the UI delegates managed by this <code>MultiInternalFrameUI</code>, - * returning the child for the UI delegate from the primary look and - * feel. - * + * for all the UI delegates managed by this <code>MultiInternalFrameUI</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); @@ -349,5 +349,5 @@ public class MultiInternalFrameUI extends InternalFrameUI } return result; } - + } |