Uses of Class
java.awt.Dimension
| Package | Description |
|---|---|
| com.sun.java.accessibility.util |
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
|
| 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.
|
| javax.accessibility |
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
|
| 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 one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
|
| javax.swing.plaf.basic |
Provides user interface objects built according to the Basic look and feel.
|
| javax.swing.plaf.metal |
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
|
| javax.swing.plaf.multi |
Provides user interface objects that combine two or more look and feels.
|
| javax.swing.plaf.nimbus |
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
|
| javax.swing.plaf.synth |
Synth is a skinnable look and feel in which all painting is delegated.
|
| javax.swing.table |
Provides classes and interfaces for dealing with
javax.swing.JTable. |
| javax.swing.text |
Provides classes and interfaces that deal with editable and noneditable text
components.
|
| javax.swing.tree |
Provides classes and interfaces for dealing with
javax.swing.JTree. |
-
Uses of Dimension in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return Dimension Modifier and Type Method Description DimensionTranslator. getSize()Returns the current size of this object.Methods in com.sun.java.accessibility.util with parameters of type Dimension Modifier and Type Method Description voidTranslator. setSize(Dimension d)Sets the current size of this object. -
Uses of Dimension in java.applet
Methods in java.applet with parameters of type Dimension Modifier and Type Method Description voidApplet. resize(Dimension d)Deprecated.Requests that this applet be resized. -
Uses of Dimension in java.awt
Methods in java.awt that return Dimension Modifier and Type Method Description DimensionToolkit. getBestCursorSize(int preferredWidth, int preferredHeight)Returns the supported cursor dimension which is closest to the desired sizes.DimensionComponent. getMaximumSize()Gets the maximum size of this component.DimensionContainer. getMaximumSize()Returns the maximum size of this container.DimensionComponent. getMinimumSize()Gets the minimum size of this component.DimensionContainer. getMinimumSize()Returns the minimum size of this container.DimensionList. getMinimumSize()Determines the minimum size of this scrolling list.DimensionList. getMinimumSize(int rows)Gets the minimum dimensions for a list with the specified number of rows.DimensionTextArea. getMinimumSize()Determines the minimum size of this text area.DimensionTextArea. getMinimumSize(int rows, int columns)Determines the minimum size of a text area with the specified number of rows and columns.DimensionTextField. getMinimumSize()Gets the minimum dimensions for this text field.DimensionTextField. getMinimumSize(int columns)Gets the minimum dimensions for a text field with the specified number of columns.protected DimensionGridBagLayout. getMinSize(Container parent, GridBagLayoutInfo info)Figures out the minimum size of the master based on the information fromgetLayoutInfo.protected DimensionGridBagLayout. GetMinSize(Container parent, GridBagLayoutInfo info)This method is obsolete and supplied for backwards compatibility only; new code should callgetMinSizeinstead.abstract DimensionPrintJob. getPageDimension()Returns the dimensions of the page in pixels.DimensionComponent. getPreferredSize()Gets the preferred size of this component.DimensionContainer. getPreferredSize()Returns the preferred size of this container.DimensionList. getPreferredSize()Gets the preferred size of this scrolling list.DimensionList. getPreferredSize(int rows)Gets the preferred dimensions for a list with the specified number of rows.DimensionTextArea. getPreferredSize()Determines the preferred size of this text area.DimensionTextArea. getPreferredSize(int rows, int columns)Determines the preferred size of a text area with the specified number of rows and columns.DimensionTextField. getPreferredSize()Gets the preferred size of this text field.DimensionTextField. getPreferredSize(int columns)Gets the preferred size of this text field with the specified number of columns.abstract DimensionToolkit. getScreenSize()Gets the size of the screen.DimensionComponent.AccessibleAWTComponent. getSize()Returns the size of this object in the form of aDimensionobject.DimensionComponent. getSize()Returns the size of this component in the form of aDimensionobject.DimensionComponent. getSize(Dimension rv)Stores the width/height of this component into "return value" rv and return rv.DimensionDimension. getSize()Gets the size of thisDimensionobject.DimensionList.AccessibleAWTList.AccessibleAWTListChild. getSize()Returns the size of this object in the form of a Dimension object.DimensionMenuComponent.AccessibleAWTMenuComponent. getSize()Returns the size of this object in the form of aDimensionobject.DimensionRectangle. getSize()Gets the size of thisRectangle, represented by the returnedDimension.DimensionSplashScreen. getSize()Returns the size of the splash screen window as aDimension.DimensionTrayIcon. getSize()Returns the size, in pixels, of the space that the tray icon occupies in the system tray.DimensionSystemTray. getTrayIconSize()Returns the size, in pixels, of the space that a tray icon will occupy in the system tray.DimensionScrollPane. getViewportSize()Returns the current size of the scroll pane's view port.DimensionBorderLayout. maximumLayoutSize(Container target)Returns the maximum dimensions for this layout given the components in the specified target container.DimensionCardLayout. maximumLayoutSize(Container target)Returns the maximum dimensions for this layout given the components in the specified target container.DimensionGridBagLayout. maximumLayoutSize(Container target)Returns the maximum dimensions for this layout given the components in the specified target container.DimensionLayoutManager2. maximumLayoutSize(Container target)Calculates the maximum size dimensions for the specified container, given the components it contains.DimensionBorderLayout. minimumLayoutSize(Container target)Determines the minimum size of thetargetcontainer using this layout manager.DimensionCardLayout. minimumLayoutSize(Container parent)Calculates the minimum size for the specified panel.DimensionFlowLayout. minimumLayoutSize(Container target)Returns the minimum dimensions needed to layout the visible components contained in the specified target container.DimensionGridBagLayout. minimumLayoutSize(Container parent)Determines the minimum size of theparentcontainer using this grid bag layout.DimensionGridLayout. minimumLayoutSize(Container parent)Determines the minimum size of the container argument using this grid layout.DimensionLayoutManager. minimumLayoutSize(Container parent)Calculates the minimum size dimensions for the specified container, given the components it contains.DimensionComponent. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionContainer. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionList. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionList. minimumSize(int rows)Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int).DimensionTextArea. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionTextArea. minimumSize(int rows, int columns)Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int, int).DimensionTextField. minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().DimensionTextField. minimumSize(int columns)Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int).DimensionBorderLayout. preferredLayoutSize(Container target)Determines the preferred size of thetargetcontainer using this layout manager, based on the components in the container.DimensionCardLayout. preferredLayoutSize(Container parent)Determines the preferred size of the container argument using this card layout.DimensionFlowLayout. preferredLayoutSize(Container target)Returns the preferred dimensions for this layout given the visible components in the specified target container.DimensionGridBagLayout. preferredLayoutSize(Container parent)Determines the preferred size of theparentcontainer using this grid bag layout.DimensionGridLayout. preferredLayoutSize(Container parent)Determines the preferred size of the container argument using this grid layout.DimensionLayoutManager. preferredLayoutSize(Container parent)Calculates the preferred size dimensions for the specified container, given the components it contains.DimensionComponent. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionContainer. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionList. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionList. preferredSize(int rows)Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int).DimensionTextArea. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionTextArea. preferredSize(int rows, int columns)Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int, int).DimensionTextField. preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().DimensionTextField. preferredSize(int columns)Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int).DimensionComponent. size()Deprecated.As of JDK version 1.1, replaced bygetSize().Methods in java.awt with parameters of type Dimension Modifier and Type Method Description DimensionComponent. getSize(Dimension rv)Stores the width/height of this component into "return value" rv and return rv.voidComponent. resize(Dimension d)Deprecated.As of JDK version 1.1, replaced bysetSize(Dimension).voidComponent. setMaximumSize(Dimension maximumSize)Sets the maximum size of this component to a constant value.voidComponent. setMinimumSize(Dimension minimumSize)Sets the minimum size of this component to a constant value.voidWindow. setMinimumSize(Dimension minimumSize)Sets the minimum size of this window to a constant value.voidComponent. setPreferredSize(Dimension preferredSize)Sets the preferred size of this component to a constant value.voidComponent.AccessibleAWTComponent. setSize(Dimension d)Resizes this object so that it has width and height.voidComponent. setSize(Dimension d)Resizes this component so that it has widthd.widthand heightd.height.voidDimension. setSize(Dimension d)Sets the size of thisDimensionobject to the specified size.voidList.AccessibleAWTList.AccessibleAWTListChild. setSize(Dimension d)Resizes this object so that it has width and height.voidMenuComponent.AccessibleAWTMenuComponent. setSize(Dimension d)Resizes this object.voidRectangle. setSize(Dimension d)Sets the size of thisRectangleto match the specifiedDimension.voidWindow. setSize(Dimension d)Resizes this component so that it has widthd.widthand heightd.height.Constructors in java.awt with parameters of type Dimension Constructor Description Dimension(Dimension d)Creates an instance ofDimensionwhose width and height are the same as for the specified dimension.Rectangle(Dimension d)Constructs a newRectanglewhose top left corner is (0, 0) and whose width and height are specified by theDimensionargument.Rectangle(Point p, Dimension d) -
Uses of Dimension in javax.accessibility
Methods in javax.accessibility that return Dimension Modifier and Type Method Description DimensionAccessibleComponent. getSize()Returns the size of this object in the form of aDimensionobject.Methods in javax.accessibility with parameters of type Dimension Modifier and Type Method Description voidAccessibleComponent. setSize(Dimension d)Resizes this object so that it has width and height. -
Uses of Dimension in javax.imageio
Fields in javax.imageio declared as Dimension Modifier and Type Field Description protected Dimension[]ImageWriteParam. preferredTileSizesAn array of preferred tile size range pairs.protected DimensionImageReadParam. sourceRenderSizeThe desired rendering width and height of the source, ifcanSetSourceRenderSizeistrue, ornull.Methods in javax.imageio that return Dimension Modifier and Type Method Description Dimension[]ImageWriter. getPreferredThumbnailSizes(ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata)Returns an array ofDimensions indicating the legal size ranges for thumbnail images as they will be encoded in the output file or stream.Dimension[]ImageWriteParam. getPreferredTileSizes()Returns an array ofDimensions indicating the legal size ranges for tiles as they will be encoded in the output file or stream.DimensionImageReadParam. getSourceRenderSize()Returns the width and height of the source image as it will be rendered during decoding, if they have been set via thesetSourceRenderSizemethod.Methods in javax.imageio with parameters of type Dimension Modifier and Type Method Description voidImageReadParam. 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 Modifier and Type Field Description protected DimensionJTable. preferredViewportSizeUsed by theScrollableinterface to determine the initial visible area.Methods in javax.swing that return Dimension Modifier and Type Method Description DimensionUIDefaults. getDimension(Object key)If the value ofkeyis aDimensionreturn it, otherwise returnnull.DimensionUIDefaults. getDimension(Object key, Locale l)If the value ofkeyfor the givenLocaleis aDimensionreturn it, otherwise returnnull.static DimensionUIManager. getDimension(Object key)Returns a dimension from the defaults.static DimensionUIManager. getDimension(Object key, Locale l)Returns a dimension from the defaults that is appropriate for the given locale.DimensionRepaintManager. getDoubleBufferMaximumSize()Returns the maximum double buffer size.DimensionJViewport. getExtentSize()Returns the size of the visible part of the view in view coordinates.DimensionJTable. getIntercellSpacing()Returns the horizontal and vertical space between cells.DimensionJComponent. getMaximumSize()If the maximum size has been set to a non-nullvalue just returns it.DimensionJScrollBar. getMaximumSize()The scrollbar is flexible along it's scrolling axis and rigid along the other axis.DimensionJToolBar.Separator. getMaximumSize()Returns the maximum size for the separator.DimensionJComponent. getMinimumSize()If the minimum size has been set to a non-nullvalue just returns it.DimensionJScrollBar. getMinimumSize()The scrollbar is flexible along it's scrolling axis and rigid along the other axis.DimensionJToolBar.Separator. getMinimumSize()Returns the minimum size for the separator.DimensionJLayer. getPreferredScrollableViewportSize()Returns the preferred size of the viewport for a view component.DimensionJList. getPreferredScrollableViewportSize()Computes the size of viewport needed to displayvisibleRowCountrows.DimensionJTable. getPreferredScrollableViewportSize()Returns the preferred size of the viewport for this table.DimensionJTextArea. getPreferredScrollableViewportSize()Returns the preferred size of the viewport if this component is embedded in a JScrollPane.DimensionJTree. getPreferredScrollableViewportSize()Returns the preferred display size of aJTree.DimensionScrollable. getPreferredScrollableViewportSize()Returns the preferred size of the viewport for a view component.DimensionJComponent. getPreferredSize()If thepreferredSizehas been set to a non-nullvalue just returns it.DimensionJEditorPane. getPreferredSize()Returns the preferred size for theJEditorPane.DimensionJTextArea. getPreferredSize()Returns the preferred size of the TextArea.DimensionJTextField. getPreferredSize()Returns the preferred sizeDimensionsneeded for thisTextField.DimensionJToolBar.Separator. getPreferredSize()Returns the preferred size for the separator.DimensionJToolBar.Separator. getSeparatorSize()Returns the size of the separatorDimensionJComponent. getSize(Dimension rv)Stores the width/height of this component into "return value"rvand returnsrv.DimensionJViewport. getViewSize()If the view's size hasn't been explicitly set, return the preferred size, otherwise return the view's current size.DimensionBoxLayout. maximumLayoutSize(Container target)Returns the maximum dimensions the target container can use to lay out the components it contains.DimensionGroupLayout. maximumLayoutSize(Container parent)Returns the maximum size for the specified container.DimensionJRootPane.RootLayout. maximumLayoutSize(Container target)Returns the maximum amount of space the layout can use.DimensionOverlayLayout. maximumLayoutSize(Container target)Returns the maximum dimensions needed to lay out the components contained in the specified target container.DimensionBoxLayout. minimumLayoutSize(Container target)Returns the minimum dimensions needed to lay out the components contained in the specified target container.DimensionGroupLayout. minimumLayoutSize(Container parent)Returns the minimum size for the specified container.DimensionJRootPane.RootLayout. minimumLayoutSize(Container parent)Returns the minimum amount of space the layout needs.DimensionJSpinner.DefaultEditor. minimumLayoutSize(Container parent)Returns the minimum size of first (and only) child plus the size of the parents insets.DimensionOverlayLayout. minimumLayoutSize(Container target)Returns the minimum dimensions needed to lay out the components contained in the specified target container.DimensionScrollPaneLayout. minimumLayoutSize(Container parent)The minimum size of aScrollPaneis 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.DimensionViewportLayout. minimumLayoutSize(Container parent)Returns the minimum dimensions needed to layout the components contained in the specified target container.DimensionBoxLayout. preferredLayoutSize(Container target)Returns the preferred dimensions for this layout, given the components in the specified target container.DimensionGroupLayout. preferredLayoutSize(Container parent)Returns the preferred size for the specified container.DimensionJRootPane.RootLayout. preferredLayoutSize(Container parent)Returns the amount of space the layout would like to have.DimensionJSpinner.DefaultEditor. preferredLayoutSize(Container parent)Returns the preferred size of first (and only) child plus the size of the parents insets.DimensionOverlayLayout. preferredLayoutSize(Container target)Returns the preferred dimensions for this layout given the components in the specified target container.DimensionScrollPaneLayout. preferredLayoutSize(Container parent)The preferred size of aScrollPaneis 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.DimensionViewportLayout. preferredLayoutSize(Container parent)Returns the preferred dimensions for this layout given the components in the specified target container.DimensionJViewport. toViewCoordinates(Dimension size)Converts a size in pixel coordinates to view coordinates.Methods in javax.swing with parameters of type Dimension Modifier and Type Method Description voidJToolBar. addSeparator(Dimension size)Appends a separator of a specified size to the end of the tool bar.voidBox.Filler. changeShape(Dimension min, Dimension pref, Dimension max)Change the size requests for this shape.protected booleanJViewport. 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 containsoldLocin the upper left hand corner and we're scrolling tonewLoc.static ComponentBox. createRigidArea(Dimension d)Creates an invisible component that's always the specified size.DimensionJComponent. getSize(Dimension rv)Stores the width/height of this component into "return value"rvand returnsrv.voidRepaintManager. setDoubleBufferMaximumSize(Dimension d)Set the maximum double buffer size.voidJViewport. setExtentSize(Dimension newExtent)Sets the size of the visible part of the view using view coordinates.voidJTable. setIntercellSpacing(Dimension intercellSpacing)Sets therowMarginand thecolumnMargin-- the height and width of the space between cells -- tointercellSpacing.voidJComponent. setMaximumSize(Dimension maximumSize)Sets the maximum size of this component to a constant value.voidJComponent. setMinimumSize(Dimension minimumSize)Sets the minimum size of this component to a constant value.voidJPopupMenu. setPopupSize(Dimension d)Sets the size of the Popup window using aDimensionobject.voidJTable. setPreferredScrollableViewportSize(Dimension size)Sets the preferred size of the viewport for this table.voidJComponent. setPreferredSize(Dimension preferredSize)Sets the preferred size of this component.voidJToolBar.Separator. setSeparatorSize(Dimension size)Sets the size of the separator.voidJViewport. setViewSize(Dimension newSize)Sets the size of the view.DimensionJViewport. toViewCoordinates(Dimension size)Converts a size in pixel coordinates to view coordinates. -
Uses of Dimension in javax.swing.border
Methods in javax.swing.border that return Dimension Modifier and Type Method Description DimensionTitledBorder. getMinimumSize(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
Subclasses of Dimension in javax.swing.plaf Modifier and Type Class Description classDimensionUIResourceA subclass ofDimensionthat implementsUIResource.Methods in javax.swing.plaf that return Dimension Modifier and Type Method Description DimensionComponentUI. getMaximumSize(JComponent c)Returns the specified component's maximum size appropriate for the look and feel.DimensionLayerUI. getMaximumSize(JComponent c)If theJLayer's view component is notnull, this returns the result of the view'sgetMaximumSize()method.DimensionComponentUI. getMinimumSize(JComponent c)Returns the specified component's minimum size appropriate for the look and feel.DimensionLayerUI. getMinimumSize(JComponent c)If theJLayer's view component is notnull, this returns the result of the view'sgetMinimalSize()method.DimensionComponentUI. getPreferredSize(JComponent c)Returns the specified component's preferred size appropriate for the look and feel.DimensionLayerUI. getPreferredSize(JComponent c)If theJLayer's view component is notnull, this returns the result of the view'sgetPreferredSize()method. -
Uses of Dimension in javax.swing.plaf.basic
Fields in javax.swing.plaf.basic declared as Dimension Modifier and Type Field Description protected DimensionBasicComboBoxUI. cachedMinimumSizeThe cached minimum preferred size.protected DimensionBasicScrollBarUI. maximumThumbSizeMaximum thumb sizeprotected DimensionBasicOptionPaneUI. minimumSizeThe size ofJOptionPane.protected DimensionBasicScrollBarUI. minimumThumbSizeMinimum thumb sizeprotected DimensionBasicTreeUI. preferredMinSizeMinimum preferred size.protected DimensionBasicTreeUI. preferredSizeSize needed to completely display all the nodes.Methods in javax.swing.plaf.basic that return Dimension Modifier and Type Method Description protected DimensionBasicTabbedPaneUI.TabbedPaneLayout. calculateSize(boolean minimum)Returns the calculated size.protected DimensionBasicComboBoxUI. getDefaultSize()Return the default size of an empty display area of the combo box using the current renderer and font.protected DimensionBasicComboBoxUI. getDisplaySize()Returns the calculated size of the display area.DimensionBasicArrowButton. getMaximumSize()Returns the maximum size of theBasicArrowButton.DimensionBasicDesktopIconUI. getMaximumSize(JComponent c)Desktop icons can not be resized.DimensionBasicInternalFrameUI. getMaximumSize(JComponent x)Returns the maximum size.DimensionBasicLabelUI. getMaximumSize(JComponent c)DimensionBasicScrollBarUI. getMaximumSize(JComponent c)DimensionBasicScrollPaneUI. getMaximumSize(JComponent c)DimensionBasicSliderUI. getMaximumSize(JComponent c)Returns the maximum size.DimensionBasicSplitPaneUI. getMaximumSize(JComponent jc)Returns the maximum size for the passed in component, This is passed off to the current layout manager.DimensionBasicTableHeaderUI. getMaximumSize(JComponent c)Return the maximum size of the header.DimensionBasicTableUI. getMaximumSize(JComponent c)Return the maximum size of the table.DimensionBasicTextUI. getMaximumSize(JComponent c)Gets the maximum size for the editor component.DimensionBasicTreeUI. getMaximumSize(JComponent c)Returns the maximum size for this component, which will be the preferred size if the instance is currently in a JTree, or 0, 0.protected DimensionBasicScrollBarUI. getMaximumThumbSize()Returns the largest acceptable size for the thumb.DimensionBasicSliderUI. getMinimumHorizontalSize()Returns the minimum horizontal size.DimensionBasicOptionPaneUI. getMinimumOptionPaneSize()Returns the minimum size the option pane should be.DimensionBasicArrowButton. getMinimumSize()Returns the minimum size of theBasicArrowButton.DimensionBasicComboBoxUI. getMinimumSize(JComponent c)The minimum size is the size of the display area plus insets plus the button.DimensionBasicInternalFrameUI. getMinimumSize(JComponent x)Returns the minimum size.DimensionBasicLabelUI. getMinimumSize(JComponent c)DimensionBasicProgressBarUI. getMinimumSize(JComponent c)The Minimum size for this component is 10.DimensionBasicSliderUI. getMinimumSize(JComponent c)Returns the minimum size.DimensionBasicSplitPaneDivider. getMinimumSize()Returns dividerSize x dividerSizeDimensionBasicSplitPaneUI. getMinimumSize(JComponent jc)Returns the minimum size for the passed in component, This is passed off to the current layout manager.DimensionBasicTableHeaderUI. getMinimumSize(JComponent c)Return the minimum size of the header.DimensionBasicTableUI. getMinimumSize(JComponent c)Return the minimum size of the table.DimensionBasicTextAreaUI. getMinimumSize(JComponent c)The method is overridden to take into account caret width.DimensionBasicTextUI. getMinimumSize(JComponent c)Gets the minimum size for the editor component.DimensionBasicTreeUI. getMinimumSize(JComponent c)Returns the minimum size for this component.protected DimensionBasicScrollBarUI. getMinimumThumbSize()Returns the smallest acceptable size for the thumb.DimensionBasicSliderUI. getMinimumVerticalSize()Returns the minimum vertical size.static DimensionBasicGraphicsUtils. getPreferredButtonSize(AbstractButton b, int textIconGap)Returns the preferred size of the button.DimensionBasicSliderUI. getPreferredHorizontalSize()Returns the preferred horizontal size.protected DimensionBasicProgressBarUI. getPreferredInnerHorizontal()Returns preferred size of the horizontalJProgressBar.protected DimensionBasicProgressBarUI. getPreferredInnerVertical()Returns preferred size of the verticalJProgressBar.protected DimensionBasicMenuItemUI. getPreferredMenuItemSize(JComponent c, Icon checkIcon, Icon arrowIcon, int defaultTextIconGap)Returns the preferred size of a menu item.DimensionBasicTreeUI. getPreferredMinSize()Returns the minimum preferred size.DimensionBasicArrowButton. getPreferredSize()Returns the preferred size of theBasicArrowButton.DimensionBasicInternalFrameUI. getPreferredSize(JComponent x)Returns the preferred size.DimensionBasicListUI. getPreferredSize(JComponent c)The preferredSize of the list depends upon the layout orientation.DimensionBasicOptionPaneUI. getPreferredSize(JComponent c)Ifcis theJOptionPanethe receiver is contained in, the preferred size that is returned is the maximum of the preferred size of theLayoutManagerfor theJOptionPane, andgetMinimumOptionPaneSize.DimensionBasicRadioButtonUI. getPreferredSize(JComponent c)The preferred size of the radio buttonDimensionBasicScrollBarUI. getPreferredSize(JComponent c)A vertical scrollbar's preferred width is the maximum of preferred widths of the (nonnull) increment/decrement buttons, and the minimum width of the thumb.DimensionBasicSliderUI. getPreferredSize(JComponent c)Returns the preferred size.DimensionBasicSplitPaneDivider. getPreferredSize()Returns dividerSize x dividerSizeDimensionBasicSplitPaneUI. getPreferredSize(JComponent jc)Returns the preferred size for the passed in component, This is passed off to the current layout manager.DimensionBasicTableHeaderUI. getPreferredSize(JComponent c)Return the preferred size of the header.DimensionBasicTableUI. getPreferredSize(JComponent c)Return the preferred size of the table.DimensionBasicTextAreaUI. getPreferredSize(JComponent c)The method is overridden to take into account caret width.DimensionBasicTextUI. getPreferredSize(JComponent c)Gets the preferred size for the editor component.DimensionBasicTreeUI. getPreferredSize(JComponent c)Returns the preferred size to properly display the tree, this is a cover method forgetPreferredSize(c, true).DimensionBasicTreeUI. getPreferredSize(JComponent c, boolean checkConsistency)Returns the preferred size to represent the tree in c.DimensionBasicSliderUI. getPreferredVerticalSize()Returns the preferred vertical size.protected DimensionBasicComboBoxUI. getSizeForComponent(Component comp)Returns the size a component would have if used as a cell renderer.protected DimensionBasicSliderUI. getThumbSize()Returns the thumb size.DimensionBasicSplitPaneUI.BasicHorizontalLayoutManager. maximumLayoutSize(Container target)Returns the maximum layout size, which is Integer.MAX_VALUE in both directions.DimensionBasicSplitPaneUI.BasicHorizontalLayoutManager. minimumLayoutSize(Container container)Returns the minimum size needed to contain the children.DimensionBasicSplitPaneUI.BasicHorizontalLayoutManager. preferredLayoutSize(Container container)Returns the preferred size needed to contain the children.Methods in javax.swing.plaf.basic with parameters of type Dimension Modifier and Type Method Description protected intBasicSplitPaneUI.BasicHorizontalLayoutManager. getAvailableSize(Dimension containerSize, Insets insets)Returns the available width based on the container size andInsets.protected voidBasicRadioButtonUI. paintFocus(Graphics g, Rectangle textRect, Dimension size)Paints focused radio button.protected voidBasicSplitPaneUI.BasicHorizontalLayoutManager. setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)Sets the width of the componentcto besize, placing its x location atlocation, y to theinsets.topand height to thecontainerSize.heightless the top and bottom insets.voidBasicTreeUI. setPreferredMinSize(Dimension newSize)Sets the preferred minimum size. -
Uses of Dimension in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal that return Dimension Modifier and Type Method Description DimensionMetalFileChooserUI. getMaximumSize(JComponent c)Returns the maximum size of theJFileChooser.DimensionMetalFileChooserUI. getMinimumSize(JComponent c)Returns the minimum size of theJFileChooser.DimensionMetalFileChooserUI. getPreferredSize(JComponent c)Returns the preferred size of the specifiedJFileChooser. -
Uses of Dimension in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return Dimension Modifier and Type Method Description DimensionMultiButtonUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiColorChooserUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiComboBoxUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiDesktopIconUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiDesktopPaneUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiFileChooserUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiInternalFrameUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiLabelUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiListUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiMenuBarUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiMenuItemUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiOptionPaneUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiPanelUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiPopupMenuUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiProgressBarUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiRootPaneUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiScrollBarUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiScrollPaneUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiSeparatorUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiSliderUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiSpinnerUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiSplitPaneUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiTabbedPaneUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiTableHeaderUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiTableUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiTextUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiToolBarUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiToolTipUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiTreeUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiViewportUI. getMaximumSize(JComponent a)Invokes thegetMaximumSizemethod on each UI handled by this object.DimensionMultiButtonUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiColorChooserUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiComboBoxUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiDesktopIconUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiDesktopPaneUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiFileChooserUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiInternalFrameUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiLabelUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiListUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiMenuBarUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiMenuItemUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiOptionPaneUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiPanelUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiPopupMenuUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiProgressBarUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiRootPaneUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiScrollBarUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiScrollPaneUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiSeparatorUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiSliderUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiSpinnerUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiSplitPaneUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiTabbedPaneUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiTableHeaderUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiTableUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiTextUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiToolBarUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiToolTipUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiTreeUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiViewportUI. getMinimumSize(JComponent a)Invokes thegetMinimumSizemethod on each UI handled by this object.DimensionMultiButtonUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiColorChooserUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiComboBoxUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiDesktopIconUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiDesktopPaneUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiFileChooserUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiInternalFrameUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiLabelUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiListUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiMenuBarUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiMenuItemUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiOptionPaneUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiPanelUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiPopupMenuUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiProgressBarUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiRootPaneUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiScrollBarUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiScrollPaneUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiSeparatorUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiSliderUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiSpinnerUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiSplitPaneUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiTabbedPaneUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiTableHeaderUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiTableUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiTextUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiToolBarUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiToolTipUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiTreeUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object.DimensionMultiViewportUI. getPreferredSize(JComponent a)Invokes thegetPreferredSizemethod on each UI handled by this object. -
Uses of Dimension in javax.swing.plaf.nimbus
Constructors in javax.swing.plaf.nimbus with parameters of type Dimension Constructor Description PaintContext(Insets insets, Dimension canvasSize, boolean inverted)Creates a new PaintContext which does not attempt to cache or scale any cached images.PaintContext(Insets insets, Dimension canvasSize, boolean inverted, AbstractRegionPainter.PaintContext.CacheMode cacheMode, double maxH, double maxV)Creates a new PaintContext. -
Uses of Dimension in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return Dimension Modifier and Type Method Description protected DimensionSynthComboBoxUI. getDefaultSize()Returns the default size of an empty display area of the combo box using the current renderer and font.DimensionSynthGraphicsUtils. getMaximumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the maximum size needed to properly render an icon and text.DimensionSynthGraphicsUtils. getMinimumSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the minimum size needed to properly render an icon and text.DimensionSynthGraphicsUtils. getPreferredSize(SynthContext ss, Font font, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, int iconTextGap, int mnemonicIndex)Returns the preferred size needed to properly render an icon and text.DimensionSynthScrollBarUI. getPreferredSize(JComponent c)A vertical scrollbar's preferred width is the maximum of preferred widths of the (nonnull) increment/decrement buttons, and the minimum width of the thumb. -
Uses of Dimension in javax.swing.table
Methods in javax.swing.table that return Dimension Modifier and Type Method Description DimensionJTableHeader. getPreferredSize()Returns the preferred size of the table header. -
Uses of Dimension in javax.swing.text
Methods in javax.swing.text that return Dimension Modifier and Type Method Description DimensionJTextComponent. getPreferredScrollableViewportSize()Returns the preferred size of the viewport for a view component. -
Uses of Dimension in javax.swing.tree
Methods in javax.swing.tree that return Dimension Modifier and Type Method Description DimensionDefaultTreeCellEditor.DefaultTextField. getPreferredSize()OverridesJTextField.getPreferredSizeto return the preferred size based on current font, if set, or else use renderer's font.DimensionDefaultTreeCellEditor.EditorContainer. getPreferredSize()Returns the preferred size for theContainer.DimensionDefaultTreeCellRenderer. getPreferredSize()OverridesJComponent.getPreferredSizeto return slightly wider preferred size value.