| 
JSR 217 (Maintenance Release) | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||
| Packages that use Dimension | |
| java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. | 
| Uses of Dimension in java.awt | 
| Methods in java.awt that return Dimension | |
abstract  Dimension | 
Toolkit.getScreenSize()
Gets the size of the screen.  | 
 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 | 
LayoutManager2.maximumLayoutSize(Container target)
Calculates the maximum 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 | 
Rectangle.getSize()
Gets the size of this Rectangle, represented by 
 the returned Dimension. | 
 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.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.getMinimumSize()
Gets the mininimum size of this component.  | 
 Dimension | 
Component.getMaximumSize()
Gets the maximum size of this component.  | 
 Dimension | 
Container.getPreferredSize()
Returns the preferred size of this container.  | 
 Dimension | 
Container.getMinimumSize()
Returns the minimum size of this container.  | 
 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.  | 
 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.  | 
| 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. | 
 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 217 (Maintenance Release) | ||||||||||
| PREV NEXT | FRAMES NO FRAMES | ||||||||||