JSR-209 (Final Release)

Uses of Class
java.awt.Dimension

Packages that use Dimension
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
javax.imageio The main package of the Java Image I/O API. 
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.border Provides classes and interface for drawing specialized borders around a Swing component. 
javax.swing.plaf Provides the basis for the implementation of Swing pluggable look-and-feel capabilities for AGUI. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

Uses of Dimension in java.awt
 

Methods in java.awt that return Dimension
 Dimension Rectangle.getSize()
          Gets the size of this Rectangle, represented by the returned Dimension.
 Dimension Dimension.getSize()
          Gets the size of this Dimension object.
 

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.
 

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.
 

Uses of Dimension in javax.imageio
 

Fields in javax.imageio declared as Dimension
protected  Dimension ImageReadParam.sourceRenderSize
          The desired rendering width and height of the source, if canSetSourceRenderSize is true, or null.
 

Methods in javax.imageio that return Dimension
 Dimension ImageReadParam.getSourceRenderSize()
          Returns the width and height of the source image as it will be rendered during decoding, if they have been set via the setSourceRenderSize method.
 

Methods in javax.imageio with parameters of type Dimension
 void ImageReadParam.setSourceRenderSize(Dimension size)
          If the image is able to be rendered at an arbitrary size, sets the source width and height to the supplied values.
 

Uses of Dimension in javax.swing
 

Fields in javax.swing declared as Dimension
protected  Dimension JTable.preferredViewportSize
          Used by the Scrollable interface to determine the initial visible area.
 

Methods in javax.swing that return Dimension
 Dimension ViewportLayout.preferredLayoutSize(java.awt.Container parent)
          Returns the preferred dimensions for this layout given the components in the specified target container.
 Dimension ViewportLayout.minimumLayoutSize(java.awt.Container parent)
          Returns the minimum dimensions needed to layout the components contained in the specified target container.
 Dimension SpringLayout.minimumLayoutSize(java.awt.Container parent)
           
 Dimension SpringLayout.preferredLayoutSize(java.awt.Container parent)
           
 Dimension SpringLayout.maximumLayoutSize(java.awt.Container parent)
           
 Dimension Scrollable.getPreferredScrollableViewportSize()
          Returns the preferred size of the viewport for a view component.
 Dimension ScrollPaneLayout.preferredLayoutSize(java.awt.Container parent)
          The preferred size of a ScrollPane is the size of the insets, plus the preferred size of the viewport, plus the preferred size of the visible headers, plus the preferred size of the scrollbars that will appear given the current view and the current scrollbar displayPolicies.
 Dimension ScrollPaneLayout.minimumLayoutSize(java.awt.Container parent)
          The minimum size of a ScrollPane is the size of the insets plus minimum size of the viewport, plus the scrollpane's viewportBorder insets, plus the minimum size of the visible headers, plus the minimum size of the scrollbars whose displayPolicy isn't NEVER.
 Dimension OverlayLayout.preferredLayoutSize(java.awt.Container target)
          Returns the preferred dimensions for this layout given the components in the specified target container.
 Dimension OverlayLayout.minimumLayoutSize(java.awt.Container target)
          Returns the minimum dimensions needed to lay out the components contained in the specified target container.
 Dimension OverlayLayout.maximumLayoutSize(java.awt.Container target)
          Returns the minimum dimensions needed to lay out the components contained in the specified target container.
 Dimension JViewport.getViewSize()
          If the view's size hasn't been explicitly set, return the preferred size, otherwise return the view's current size.
 Dimension JViewport.getExtentSize()
          Returns the size of the visible part of the view in view coordinates.
 Dimension JViewport.toViewCoordinates(Dimension size)
          Converts a size in pixel coordinates to view coordinates.
 Dimension JTree.getPreferredScrollableViewportSize()
          Returns the preferred display size of a JTree.
 Dimension JTextArea.getPreferredSize()
          Returns the preferred size of the TextArea.
 Dimension JTextArea.getPreferredScrollableViewportSize()
          Returns the preferred size of the viewport if this component is embedded in a JScrollPane.
 Dimension JSpinner.DefaultEditor.preferredLayoutSize(java.awt.Container parent)
          Returns the preferred size of first (and only) child plus the size of the parents insets.
 Dimension JSpinner.DefaultEditor.minimumLayoutSize(java.awt.Container parent)
          Returns the minimum size of first (and only) child plus the size of the parents insets.
 Dimension JScrollBar.getMinimumSize()
          The scrollbar is flexible along it's scrolling axis and rigid along the other axis.
 Dimension JScrollBar.getMaximumSize()
          The scrollbar is flexible along it's scrolling axis and rigid along the other axis.
 Dimension JRootPane.RootLayout.preferredLayoutSize(java.awt.Container parent)
          Returns the amount of space the layout would like to have.
 Dimension JRootPane.RootLayout.minimumLayoutSize(java.awt.Container parent)
          Returns the minimum amount of space the layout needs.
 Dimension JRootPane.RootLayout.maximumLayoutSize(java.awt.Container target)
          Returns the maximum amount of space the layout can use.
 Dimension JList.getPreferredScrollableViewportSize()
          Computes the size of the viewport needed to display visibleRowCount rows.
 Dimension JEditorPane.getPreferredSize()
          Returns the preferred size for the JEditorPane.
 Dimension JComponent.getPreferredSize()
          If the preferredSize has been set to a non-null value just returns it.
 Dimension JComponent.getMaximumSize()
          If the maximum size has been set to a non-null value just returns it.
 Dimension JComponent.getMinimumSize()
          If the minimum size has been set to a non-null value just returns it.
 Dimension JComponent.getSize(Dimension rv)
          Stores the width/height of this component into "return value" rv and returns rv.
 Dimension JTextField.getPreferredSize()
          Returns the preferred size Dimensions needed for this TextField.
 Dimension JTable.getIntercellSpacing()
          Returns the horizontal and vertical space between cells.
 Dimension JTable.getPreferredScrollableViewportSize()
          Returns the preferred size of the viewport for this table.
 Dimension BoxLayout.preferredLayoutSize(java.awt.Container target)
          Returns the preferred dimensions for this layout, given the components in the specified target container.
 Dimension BoxLayout.minimumLayoutSize(java.awt.Container target)
          Returns the minimum dimensions needed to lay out the components contained in the specified target container.
 Dimension BoxLayout.maximumLayoutSize(java.awt.Container target)
          Returns the maximum dimensions the target container can use to lay out the components it contains.
 Dimension Box.Filler.getMinimumSize()
          Returns the minimum size of the component.
 Dimension Box.Filler.getPreferredSize()
          Returns the preferred size of the component.
 Dimension Box.Filler.getMaximumSize()
          Returns the maximum size of the component.
 

Methods in javax.swing with parameters of type Dimension
 void JViewport.setViewSize(Dimension newSize)
          Sets the size of the view.
protected  boolean JViewport.computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint)
          Computes the parameters for a blit where the backing store image currently contains oldLoc in the upper left hand corner and we're scrolling to newLoc.
 Dimension JViewport.toViewCoordinates(Dimension size)
          Converts a size in pixel coordinates to view coordinates.
 void JViewport.setExtentSize(Dimension newExtent)
          Sets the size of the visible part of the view using view coordinates.
 void JPopupMenu.setPopupSize(Dimension d)
          Sets the size of the popup window using a Dimension object.
 void JComponent.setPreferredSize(Dimension preferredSize)
          Sets the preferred size of this component.
 void JComponent.setMaximumSize(Dimension maximumSize)
          Sets the maximum size of this component to a constant value.
 void JComponent.setMinimumSize(Dimension minimumSize)
          Sets the minimum size of this component to a constant value.
 Dimension JComponent.getSize(Dimension rv)
          Stores the width/height of this component into "return value" rv and returns rv.
 void JTable.setIntercellSpacing(Dimension intercellSpacing)
          Sets the rowMargin and the columnMargin -- the height and width of the space between cells -- to intercellSpacing.
 void JTable.setPreferredScrollableViewportSize(Dimension size)
          Sets the preferred size of the viewport for this table.
static java.awt.Component Box.createRigidArea(Dimension d)
          Creates an invisible component that's always the specified size.
 void Box.Filler.changeShape(Dimension min, Dimension pref, Dimension max)
          Change the size requests for this shape.
 

Constructors in javax.swing with parameters of type Dimension
Box.Filler(Dimension min, Dimension pref, Dimension max)
          Constructor to create shape with the given size ranges.
 

Uses of Dimension in javax.swing.border
 

Methods in javax.swing.border that return Dimension
 Dimension TitledBorder.getMinimumSize(java.awt.Component c)
          Returns the minimum dimensions this border requires in order to fully display the border and title.
 

Uses of Dimension in javax.swing.plaf
 

Methods in javax.swing.plaf that return Dimension
 Dimension ComponentUI.getPreferredSize(JComponent c)
          Returns the specified component's preferred size appropriate for the look and feel.
 Dimension ComponentUI.getMinimumSize(JComponent c)
          Returns the specified component's minimum size appropriate for the look and feel.
 Dimension ComponentUI.getMaximumSize(JComponent c)
          Returns the specified component's maximum size appropriate for the look and feel.
 

Uses of Dimension in javax.swing.text
 

Methods in javax.swing.text that return Dimension
 Dimension JTextComponent.getPreferredScrollableViewportSize()
          Returns the preferred size of the viewport for a view component.
 


JSR-209 (Final Release)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2006 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.