Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR 216 (Maintenance Release)

Uses of Class
java.awt.Dimension

Packages that use Dimension
java.applet Provides the classes necessary to create an applet and the classes an applet uses to communicate with its applet context. 
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
 

Uses of Dimension in java.applet
 

Methods in java.applet with parameters of type Dimension
 void Applet.resize(Dimension d)
          Requests that this applet be resized.
 

Uses of Dimension in java.awt
 

Methods in java.awt that return Dimension
abstract  Dimension Toolkit.getScreenSize()
          Gets the size of the screen.
 Dimension TextField.getPreferredSize(int columns)
          Gets the preferred size of this text field with the specified number of columns.
 Dimension TextField.preferredSize(int columns)
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize(int).
 Dimension TextField.getPreferredSize()
          Gets the preferred size of this text field.
 Dimension TextField.preferredSize()
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize().
 Dimension TextField.getMinimumSize(int columns)
          Gets the minumum dimensions for a text field with the specified number of columns.
 Dimension TextField.minimumSize(int columns)
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize(int).
 Dimension TextField.getMinimumSize()
          Gets the minumum dimensions for this text field.
 Dimension TextField.minimumSize()
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize().
 Dimension TextArea.getPreferredSize(int rows, int columns)
          Determines the preferred size of a text area with the specified number of rows and columns.
 Dimension TextArea.preferredSize(int rows, int columns)
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize(int, int).
 Dimension TextArea.getPreferredSize()
          Determines the preferred size of this text area.
 Dimension TextArea.preferredSize()
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize().
 Dimension TextArea.getMinimumSize(int rows, int columns)
          Determines the minimum size of a text area with the specified number of rows and columns.
 Dimension TextArea.minimumSize(int rows, int columns)
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize(int, int).
 Dimension TextArea.getMinimumSize()
          Determines the minimum size of this text area.
 Dimension TextArea.minimumSize()
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize().
 Dimension ScrollPane.getViewportSize()
          Returns the current size of the scroll pane's view port.
 Dimension Rectangle.getSize()
          Gets the size of this Rectangle, represented by the returned Dimension.
 Dimension LayoutManager2.maximumLayoutSize(Container target)
          Calculates the maximum size dimensions for the specified container, given the components it contains.
 Dimension LayoutManager.preferredLayoutSize(Container parent)
          Calculates the preferred size dimensions for the specified container, given the components it contains.
 Dimension LayoutManager.minimumLayoutSize(Container parent)
          Calculates the minimum size dimensions for the specified container, given the components it contains.
 Dimension GridLayout.preferredLayoutSize(Container parent)
          Determines the preferred size of the container argument using this grid layout.
 Dimension GridLayout.minimumLayoutSize(Container parent)
          Determines the minimum size of the container argument using this grid layout.
 Dimension GridBagLayout.preferredLayoutSize(Container parent)
          Determines the preferred size of the parent container using this grid bag layout.
 Dimension GridBagLayout.minimumLayoutSize(Container parent)
          Determines the minimum size of the parent container using this grid bag layout.
 Dimension GridBagLayout.maximumLayoutSize(Container target)
          Returns the maximum dimensions for this layout given the components in the specified target container.
 Dimension List.getPreferredSize(int rows)
          Gets the preferred dimensions for a list with the specified number of rows.
 Dimension List.preferredSize(int rows)
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize(int).
 Dimension List.getPreferredSize()
          Gets the preferred size of this scrolling list.
 Dimension List.preferredSize()
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize().
 Dimension List.getMinimumSize(int rows)
          Gets the minumum dimensions for a list with the specified number of rows.
 Dimension List.minimumSize(int rows)
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize(int).
 Dimension List.getMinimumSize()
          Determines the minimum size of this scrolling list.
 Dimension List.minimumSize()
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize().
 Dimension FlowLayout.preferredLayoutSize(Container target)
          Returns the preferred dimensions for this layout given the visible components in the specified target container.
 Dimension FlowLayout.minimumLayoutSize(Container target)
          Returns the minimum dimensions needed to layout the visible components contained in the specified target container.
 Dimension Dimension.getSize()
          Gets the size of this Dimension object.
 Dimension Component.getSize()
          Returns the size of this component in the form of a Dimension object.
 Dimension Component.size()
          Deprecated. As of JDK version 1.1, replaced by getSize().
 Dimension Component.getSize(Dimension rv)
          Stores the width/height of this component into "return value" rv and return rv.
 Dimension Component.getPreferredSize()
          Gets the preferred size of this component.
 Dimension Component.preferredSize()
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize().
 Dimension Component.getMinimumSize()
          Gets the mininimum size of this component.
 Dimension Component.minimumSize()
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize().
 Dimension Component.getMaximumSize()
          Gets the maximum size of this component.
 Dimension Container.getPreferredSize()
          Returns the preferred size of this container.
 Dimension Container.preferredSize()
          Deprecated. As of JDK version 1.1, replaced by getPreferredSize().
 Dimension Container.getMinimumSize()
          Returns the minimum size of this container.
 Dimension Container.minimumSize()
          Deprecated. As of JDK version 1.1, replaced by getMinimumSize().
 Dimension Container.getMaximumSize()
          Returns the maximum size of this container.
 Dimension CardLayout.preferredLayoutSize(Container parent)
          Determines the preferred size of the container argument using this card layout.
 Dimension CardLayout.minimumLayoutSize(Container parent)
          Calculates the minimum size for the specified panel.
 Dimension CardLayout.maximumLayoutSize(Container target)
          Returns the maximum dimensions for this layout given the components in the specified target container.
 Dimension BorderLayout.minimumLayoutSize(Container target)
          Determines the minimum size of the target container using this layout manager.
 Dimension BorderLayout.preferredLayoutSize(Container target)
          Determines the preferred size of the target container using this layout manager, based on the components in the container.
 Dimension BorderLayout.maximumLayoutSize(Container target)
          Returns the maximum dimensions for this layout given the components in the specified target container.
 

Methods in java.awt with parameters of type Dimension
 void Rectangle.setSize(Dimension d)
          Sets the size of this Rectangle to match the specified Dimension.
 void Dimension.setSize(Dimension d)
          Sets the size of this Dimension object to the specified size.
 void Component.setSize(Dimension d)
          Resizes this component so that it has width d.width and height d.height.
 void Component.resize(Dimension d)
          Deprecated. As of JDK version 1.1, replaced by setSize(Dimension).
 Dimension Component.getSize(Dimension rv)
          Stores the width/height of this component into "return value" rv and return rv.
 

Constructors in java.awt with parameters of type Dimension
Rectangle(Point p, Dimension d)
          Constructs a new Rectangle whose top-left corner is specified by the Point argument, and whose width and height are specified by the Dimension argument.
Rectangle(Dimension d)
          Constructs a new Rectangle whose top left corner is (0, 0) and whose width and height are specified by the Dimension argument.
Dimension(Dimension d)
          Creates an instance of Dimension whose width and height are the same as for the specified dimension.
 


JSR 216 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 216 specification.
ing HTML relocated from here.-->