Java in a Nutshell Online Quick Reference for Java 1.1
CLASS java.awt.Dimension
Availability: JDK 1.0
public class Dimension extends Object implements Serializable {
// Public Constructors
public Dimension();
public Dimension(Dimension d);
public Dimension(int width, int height);
// Public Instance Variables
public int height;
public int width;
// Public Instance Methods
1.1 public boolean equals(Object obj); // Overrides Object.equals()
1.1 public Dimension getSize();
1.1 public void setSize(Dimension d);
1.1 public void setSize(int width, int height);
public String toString(); // Overrides Object.toString()
}
- Passed To:
-
Applet.resize(),
Component.resize(),
Component.setSize(),
Dimension.Dimension(),
Dimension.setSize(),
Rectangle.Rectangle(),
Rectangle.setSize().
- Returned By:
-
BorderLayout.maximumLayoutSize(),
BorderLayout.minimumLayoutSize(),
BorderLayout.preferredLayoutSize(),
CardLayout.maximumLayoutSize(),
CardLayout.minimumLayoutSize(),
CardLayout.preferredLayoutSize(),
Component.getMaximumSize(),
Component.getMinimumSize(),
Component.getPreferredSize(),
Component.getSize(),
Component.minimumSize(),
Component.preferredSize(),
Component.size(),
ComponentPeer.getMinimumSize(),
ComponentPeer.getPreferredSize(),
ComponentPeer.minimumSize(),
ComponentPeer.preferredSize(),
Container.getMaximumSize(),
Container.getMinimumSize(),
Container.getPreferredSize(),
Container.minimumSize(),
Container.preferredSize(),
Dimension.getSize(),
FlowLayout.minimumLayoutSize(),
FlowLayout.preferredLayoutSize(),
GridBagLayout.GetMinSize(),
GridBagLayout.maximumLayoutSize(),
GridBagLayout.minimumLayoutSize(),
GridBagLayout.preferredLayoutSize(),
GridLayout.minimumLayoutSize(),
GridLayout.preferredLayoutSize(),
LayoutManager.minimumLayoutSize(),
LayoutManager.preferredLayoutSize(),
LayoutManager2.maximumLayoutSize(),
List.getMinimumSize(),
List.getPreferredSize(),
List.minimumSize(),
List.preferredSize(),
ListPeer.getMinimumSize(),
ListPeer.getPreferredSize(),
ListPeer.minimumSize(),
ListPeer.preferredSize(),
PrintJob.getPageDimension(),
Rectangle.getSize(),
ScrollPane.getViewportSize(),
TextArea.getMinimumSize(),
TextArea.getPreferredSize(),
TextArea.minimumSize(),
TextArea.preferredSize(),
TextAreaPeer.getMinimumSize(),
TextAreaPeer.getPreferredSize(),
TextAreaPeer.minimumSize(),
TextAreaPeer.preferredSize(),
TextField.getMinimumSize(),
TextField.getPreferredSize(),
TextField.minimumSize(),
TextField.preferredSize(),
TextFieldPeer.getMinimumSize(),
TextFieldPeer.getPreferredSize(),
TextFieldPeer.minimumSize(),
TextFieldPeer.preferredSize(),
Toolkit.getScreenSize().
Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan.
Copyright © 1997 by O'Reilly & Associates.