Uses of Class
java.awt.Dimension
Packages that use Dimension
Package
Description
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
Provides the classes necessary to create an applet and the classes an applet
uses to communicate with its applet context.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Defines a contract between user-interface components and an assistive
technology that provides access to those components.
The main package of the Java Image I/O API.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
Provides user interface objects built according to the Basic look and feel.
Provides user interface objects built according to the Java look and feel
(once codenamed Metal), which is the default look and feel.
Provides user interface objects that combine two or more look and feels.
Provides user interface objects built according to the cross-platform Nimbus
look and feel.
Synth is a skinnable look and feel in which all painting is delegated.
Provides classes and interfaces for dealing with
javax.swing.JTable.Provides classes and interfaces that deal with editable and noneditable text
components.
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 DimensionMethods in com.sun.java.accessibility.util with parameters of type Dimension -
Uses of Dimension in java.applet
Methods in java.applet with parameters of type Dimension -
Uses of Dimension in java.awt
Modifier and TypeMethodDescriptionToolkit.getBestCursorSize(int preferredWidth, int preferredHeight) Returns the supported cursor dimension which is closest to the desired sizes.Component.getMaximumSize()Gets the maximum size of this component.Container.getMaximumSize()Returns the maximum size of this container.Component.getMinimumSize()Gets the minimum size of this component.Container.getMinimumSize()Returns the minimum size of this container.List.getMinimumSize()Determines the minimum size of this scrolling list.List.getMinimumSize(int rows) Gets the minimum dimensions for a list with the specified number of rows.TextArea.getMinimumSize()Determines the minimum size of this text area.TextArea.getMinimumSize(int rows, int columns) Determines the minimum size of a text area with the specified number of rows and columns.TextField.getMinimumSize()Gets the minimum dimensions for this text field.TextField.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 parent 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.Component.getPreferredSize()Gets the preferred size of this component.Container.getPreferredSize()Returns the preferred size of this container.List.getPreferredSize()Gets the preferred size of this scrolling list.List.getPreferredSize(int rows) Gets the preferred dimensions for a list with the specified number of rows.TextArea.getPreferredSize()Determines the preferred size of this text area.TextArea.getPreferredSize(int rows, int columns) Determines the preferred size of a text area with the specified number of rows and columns.TextField.getPreferredSize()Gets the preferred size of this text field.TextField.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.Component.AccessibleAWTComponent.getSize()Returns the size of this object in the form of aDimensionobject.Component.getSize()Returns the size of this component in the form of aDimensionobject.Stores the width/height of this component into "return value" rv and return rv.Dimension.getSize()Gets the size of thisDimensionobject.List.AccessibleAWTList.AccessibleAWTListChild.getSize()Returns the size of this object in the form of a Dimension object.MenuComponent.AccessibleAWTMenuComponent.getSize()Returns the size of this object in the form of aDimensionobject.Rectangle.getSize()Gets the size of thisRectangle, represented by the returnedDimension.SplashScreen.getSize()Returns the size of the splash screen window as aDimension.TrayIcon.getSize()Returns the size, in pixels, of the space that the tray icon occupies in the system tray.SystemTray.getTrayIconSize()Returns the size, in pixels, of the space that a tray icon will occupy in the system tray.ScrollPane.getViewportSize()Returns the current size of the scroll pane's view port.BorderLayout.maximumLayoutSize(Container target) Returns the maximum dimensions for this layout given the components in the specified target container.CardLayout.maximumLayoutSize(Container target) Returns the maximum dimensions for this layout given the components in the specified target container.GridBagLayout.maximumLayoutSize(Container target) Returns the maximum dimensions for this layout given the components in the specified target container.LayoutManager2.maximumLayoutSize(Container target) Calculates the maximum size dimensions for the specified container, given the components it contains.BorderLayout.minimumLayoutSize(Container target) Determines the minimum size of thetargetcontainer using this layout manager.CardLayout.minimumLayoutSize(Container parent) Calculates the minimum size for the specified panel.FlowLayout.minimumLayoutSize(Container target) Returns the minimum dimensions needed to layout the visible components contained in the specified target container.GridBagLayout.minimumLayoutSize(Container parent) Determines the minimum size of theparentcontainer using this grid bag layout.GridLayout.minimumLayoutSize(Container parent) Determines the minimum size of the container argument using this grid layout.LayoutManager.minimumLayoutSize(Container parent) Calculates the minimum size dimensions for the specified container, given the components it contains.Component.minimumSize()Deprecated.Container.minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().List.minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().List.minimumSize(int rows) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int).TextArea.minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().TextArea.minimumSize(int rows, int columns) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int, int).TextField.minimumSize()Deprecated.As of JDK version 1.1, replaced bygetMinimumSize().TextField.minimumSize(int columns) Deprecated.As of JDK version 1.1, replaced bygetMinimumSize(int).BorderLayout.preferredLayoutSize(Container target) Determines the preferred size of thetargetcontainer using this layout manager, based on the components in the container.CardLayout.preferredLayoutSize(Container parent) Determines the preferred size of the container argument using this card layout.FlowLayout.preferredLayoutSize(Container target) Returns the preferred dimensions for this layout given the visible components in the specified target container.GridBagLayout.preferredLayoutSize(Container parent) Determines the preferred size of theparentcontainer using this grid bag layout.GridLayout.preferredLayoutSize(Container parent) Determines the preferred size of the container argument using this grid layout.LayoutManager.preferredLayoutSize(Container parent) Calculates the preferred size dimensions for the specified container, given the components it contains.Component.preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().Container.preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().List.preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().List.preferredSize(int rows) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int).TextArea.preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().TextArea.preferredSize(int rows, int columns) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int, int).TextField.preferredSize()Deprecated.As of JDK version 1.1, replaced bygetPreferredSize().TextField.preferredSize(int columns) Deprecated.As of JDK version 1.1, replaced bygetPreferredSize(int).Component.size()Deprecated.As of JDK version 1.1, replaced bygetSize().Modifier and TypeMethodDescriptionStores the width/height of this component into "return value" rv and return rv.voidDeprecated.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.voidResizes this object so that it has width and height.voidResizes this component so that it has widthd.widthand heightd.height.voidSets the size of thisDimensionobject to the specified size.voidResizes this object so that it has width and height.voidResizes this object.voidSets the size of thisRectangleto match the specifiedDimension.voidResizes this component so that it has widthd.widthand heightd.height.ModifierConstructorDescriptionCreates an instance ofDimensionwhose width and height are the same as for the specified dimension.Constructs a newRectanglewhose top left corner is (0, 0) and whose width and height are specified by theDimensionargument. -
Uses of Dimension in javax.accessibility
Methods in javax.accessibility that return DimensionModifier and TypeMethodDescriptionAccessibleComponent.getSize()Returns the size of this object in the form of aDimensionobject.Methods in javax.accessibility with parameters of type Dimension -
Uses of Dimension in javax.imageio
Fields in javax.imageio declared as DimensionModifier and TypeFieldDescriptionprotected 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 DimensionModifier and TypeMethodDescriptionImageWriter.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.ImageWriteParam.getPreferredTileSizes()Returns an array ofDimensions indicating the legal size ranges for tiles as they will be encoded in the output file or stream.ImageReadParam.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 DimensionModifier and TypeMethodDescriptionvoidImageReadParam.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 DimensionModifier and TypeFieldDescriptionprotected DimensionJTable.preferredViewportSizeUsed by theScrollableinterface to determine the initial visible area.Methods in javax.swing that return DimensionModifier and TypeMethodDescriptionUIDefaults.getDimension(Object key) If the value ofkeyis aDimensionreturn it, otherwise returnnull.UIDefaults.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.RepaintManager.getDoubleBufferMaximumSize()Returns the maximum double buffer size.JViewport.getExtentSize()Returns the size of the visible part of the view in view coordinates.JTable.getIntercellSpacing()Returns the horizontal and vertical space between cells.JComponent.getMaximumSize()If the maximum size has been set to a non-nullvalue just returns it.JScrollBar.getMaximumSize()The scrollbar is flexible along it's scrolling axis and rigid along the other axis.JToolBar.Separator.getMaximumSize()Returns the maximum size for the separator.JComponent.getMinimumSize()If the minimum size has been set to a non-nullvalue just returns it.JScrollBar.getMinimumSize()The scrollbar is flexible along it's scrolling axis and rigid along the other axis.JToolBar.Separator.getMinimumSize()Returns the minimum size for the separator.JLayer.getPreferredScrollableViewportSize()Returns the preferred size of the viewport for a view component.Computes the size of viewport needed to displayvisibleRowCountrows.JTable.getPreferredScrollableViewportSize()Returns the preferred size of the viewport for this table.JTextArea.getPreferredScrollableViewportSize()Returns the preferred size of the viewport if this component is embedded in a JScrollPane.Returns the preferred display size of aJTree.Scrollable.getPreferredScrollableViewportSize()Returns the preferred size of the viewport for a view component.JComponent.getPreferredSize()If thepreferredSizehas been set to a non-nullvalue just returns it.JEditorPane.getPreferredSize()Returns the preferred size for theJEditorPane.JTextArea.getPreferredSize()Returns the preferred size of the TextArea.JTextField.getPreferredSize()Returns the preferred sizeDimensionsneeded for thisTextField.JToolBar.Separator.getPreferredSize()Returns the preferred size for the separator.JToolBar.Separator.getSeparatorSize()Returns the size of the separatorStores the width/height of this component into "return value"rvand returnsrv.JList.AccessibleJList.AccessibleJListChild.getSize()JTable.AccessibleJTable.AccessibleJTableCell.getSize()JTree.AccessibleJTree.AccessibleJTreeNode.getSize()JViewport.getViewSize()If the view's size hasn't been explicitly set, return the preferred size, otherwise return the view's current size.BoxLayout.maximumLayoutSize(Container target) Returns the maximum dimensions the target container can use to lay out the components it contains.GroupLayout.maximumLayoutSize(Container parent) Returns the maximum size for the specified container.JRootPane.RootLayout.maximumLayoutSize(Container target) Returns the maximum amount of space the layout can use.OverlayLayout.maximumLayoutSize(Container target) Returns the maximum dimensions needed to lay out the components contained in the specified target container.SpringLayout.maximumLayoutSize(Container parent) BoxLayout.minimumLayoutSize(Container target) Returns the minimum dimensions needed to lay out the components contained in the specified target container.GroupLayout.minimumLayoutSize(Container parent) Returns the minimum size for the specified container.JRootPane.RootLayout.minimumLayoutSize(Container parent) Returns the minimum amount of space the layout needs.JSpinner.DefaultEditor.minimumLayoutSize(Container parent) Returns the minimum size of first (and only) child plus the size of the parents insets.OverlayLayout.minimumLayoutSize(Container target) Returns the minimum dimensions needed to lay out the components contained in the specified target container.ScrollPaneLayout.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.SpringLayout.minimumLayoutSize(Container parent) ViewportLayout.minimumLayoutSize(Container parent) Returns the minimum dimensions needed to layout the components contained in the specified target container.BoxLayout.preferredLayoutSize(Container target) Returns the preferred dimensions for this layout, given the components in the specified target container.GroupLayout.preferredLayoutSize(Container parent) Returns the preferred size for the specified container.JRootPane.RootLayout.preferredLayoutSize(Container parent) Returns the amount of space the layout would like to have.JSpinner.DefaultEditor.preferredLayoutSize(Container parent) Returns the preferred size of first (and only) child plus the size of the parents insets.OverlayLayout.preferredLayoutSize(Container target) Returns the preferred dimensions for this layout given the components in the specified target container.ScrollPaneLayout.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.SpringLayout.preferredLayoutSize(Container parent) ViewportLayout.preferredLayoutSize(Container parent) Returns the preferred dimensions for this layout given the components in the specified target container.JViewport.toViewCoordinates(Dimension size) Converts a size in pixel coordinates to view coordinates.Methods in javax.swing with parameters of type DimensionModifier and TypeMethodDescriptionvoidJToolBar.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.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.voidvoidvoidvoidJViewport.setViewSize(Dimension newSize) Sets the size of the view.JViewport.toViewCoordinates(Dimension size) Converts a size in pixel coordinates to view coordinates.Constructors in javax.swing with parameters of type Dimension -
Uses of Dimension in javax.swing.border
Methods in javax.swing.border that return DimensionModifier and TypeMethodDescriptionTitledBorder.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.plafModifier and TypeClassDescriptionclassA subclass ofDimensionthat implementsUIResource.Methods in javax.swing.plaf that return DimensionModifier and TypeMethodDescriptionComponentUI.getMaximumSize(JComponent c) Returns the specified component's maximum size appropriate for the look and feel.LayerUI.getMaximumSize(JComponent c) If theJLayer's view component is notnull, this returns the result of the view'sgetMaximumSize()method.ComponentUI.getMinimumSize(JComponent c) Returns the specified component's minimum size appropriate for the look and feel.LayerUI.getMinimumSize(JComponent c) If theJLayer's view component is notnull, this returns the result of the view'sgetMinimalSize()method.ComponentUI.getPreferredSize(JComponent c) Returns the specified component's preferred size appropriate for the look and feel.LayerUI.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 DimensionModifier and TypeFieldDescriptionprotected 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 DimensionModifier and TypeMethodDescriptionprotected 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.BasicArrowButton.getMaximumSize()Returns the maximum size of theBasicArrowButton.BasicDesktopIconUI.getMaximumSize(JComponent c) Desktop icons can not be resized.BasicInternalFrameUI.getMaximumSize(JComponent x) Returns the maximum size.BasicLabelUI.getMaximumSize(JComponent c) BasicScrollBarUI.getMaximumSize(JComponent c) BasicScrollPaneUI.getMaximumSize(JComponent c) BasicSliderUI.getMaximumSize(JComponent c) Returns the maximum size.BasicSplitPaneUI.getMaximumSize(JComponent jc) Returns the maximum size for the passed in component, This is passed off to the current layout manager.BasicTableHeaderUI.getMaximumSize(JComponent c) Return the maximum size of the header.BasicTableUI.getMaximumSize(JComponent c) Return the maximum size of the table.BasicTextUI.getMaximumSize(JComponent c) Gets the maximum size for the editor component.BasicTreeUI.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.BasicSliderUI.getMinimumHorizontalSize()Returns the minimum horizontal size.BasicOptionPaneUI.getMinimumOptionPaneSize()Returns the minimum size the option pane should be.BasicArrowButton.getMinimumSize()Returns the minimum size of theBasicArrowButton.BasicComboBoxUI.getMinimumSize(JComponent c) The minimum size is the size of the display area plus insets plus the button.BasicInternalFrameUI.getMinimumSize(JComponent x) Returns the minimum size.BasicLabelUI.getMinimumSize(JComponent c) BasicProgressBarUI.getMinimumSize(JComponent c) The Minimum size for this component is 10.BasicSliderUI.getMinimumSize(JComponent c) Returns the minimum size.BasicSplitPaneDivider.getMinimumSize()Returns the minimum size of the divider.BasicSplitPaneUI.getMinimumSize(JComponent jc) Returns the minimum size for the passed in component, This is passed off to the current layout manager.BasicTableHeaderUI.getMinimumSize(JComponent c) Return the minimum size of the header.BasicTableUI.getMinimumSize(JComponent c) Return the minimum size of the table.BasicTextAreaUI.getMinimumSize(JComponent c) The method is overridden to take into account caret width.BasicTextUI.getMinimumSize(JComponent c) Gets the minimum size for the editor component.BasicTreeUI.getMinimumSize(JComponent c) Returns the minimum size for this component.protected DimensionBasicScrollBarUI.getMinimumThumbSize()Returns the smallest acceptable size for the thumb.BasicSliderUI.getMinimumVerticalSize()Returns the minimum vertical size.static DimensionBasicGraphicsUtils.getPreferredButtonSize(AbstractButton b, int textIconGap) Returns the preferred size of the button.BasicSliderUI.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.BasicTreeUI.getPreferredMinSize()Returns the minimum preferred size.BasicArrowButton.getPreferredSize()Returns the preferred size of theBasicArrowButton.BasicInternalFrameUI.getPreferredSize(JComponent x) Returns the preferred size.BasicListUI.getPreferredSize(JComponent c) The preferredSize of the list depends upon the layout orientation.BasicOptionPaneUI.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.BasicRadioButtonUI.getPreferredSize(JComponent c) The preferred size of the radio buttonBasicScrollBarUI.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.BasicSliderUI.getPreferredSize(JComponent c) Returns the preferred size.BasicSplitPaneDivider.getPreferredSize()Returns the preferred size of the divider.BasicSplitPaneUI.getPreferredSize(JComponent jc) Returns the preferred size for the passed in component, This is passed off to the current layout manager.BasicTableHeaderUI.getPreferredSize(JComponent c) Return the preferred size of the header.BasicTableUI.getPreferredSize(JComponent c) Return the preferred size of the table.BasicTextAreaUI.getPreferredSize(JComponent c) The method is overridden to take into account caret width.BasicTextUI.getPreferredSize(JComponent c) Gets the preferred size for the editor component.BasicTreeUI.getPreferredSize(JComponent c) Returns the preferred size to properly display the tree, this is a cover method forgetPreferredSize(c, true).BasicTreeUI.getPreferredSize(JComponent c, boolean checkConsistency) Returns the preferred size to represent the tree in c.BasicSliderUI.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.BasicSplitPaneUI.BasicHorizontalLayoutManager.maximumLayoutSize(Container target) Returns the maximum layout size, which is Integer.MAX_VALUE in both directions.BasicComboBoxUI.ComboBoxLayoutManager.minimumLayoutSize(Container parent) BasicInternalFrameTitlePane.TitlePaneLayout.minimumLayoutSize(Container c) BasicInternalFrameUI.InternalFrameLayout.minimumLayoutSize(Container c) Calculates the minimum size dimensions for the specified container, given the components it contains.BasicOptionPaneUI.ButtonAreaLayout.minimumLayoutSize(Container c) BasicScrollBarUI.minimumLayoutSize(Container scrollbarContainer) BasicSplitPaneDivider.DividerLayout.minimumLayoutSize(Container c) BasicSplitPaneUI.BasicHorizontalLayoutManager.minimumLayoutSize(Container container) Returns the minimum size needed to contain the children.BasicTabbedPaneUI.TabbedPaneLayout.minimumLayoutSize(Container parent) BasicComboBoxUI.ComboBoxLayoutManager.preferredLayoutSize(Container parent) BasicInternalFrameTitlePane.TitlePaneLayout.preferredLayoutSize(Container c) BasicInternalFrameUI.InternalFrameLayout.preferredLayoutSize(Container c) Calculates the preferred size dimensions for the specified container, given the components it contains.BasicOptionPaneUI.ButtonAreaLayout.preferredLayoutSize(Container c) BasicScrollBarUI.preferredLayoutSize(Container scrollbarContainer) BasicSplitPaneDivider.DividerLayout.preferredLayoutSize(Container c) BasicSplitPaneUI.BasicHorizontalLayoutManager.preferredLayoutSize(Container container) Returns the preferred size needed to contain the children.BasicTabbedPaneUI.TabbedPaneLayout.preferredLayoutSize(Container parent) Methods in javax.swing.plaf.basic with parameters of type DimensionModifier and TypeMethodDescriptionprotected 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 DimensionModifier and TypeMethodDescriptionMetalFileChooserUI.getMaximumSize(JComponent c) Returns the maximum size of theJFileChooser.MetalFileChooserUI.getMinimumSize(JComponent c) Returns the minimum size of theJFileChooser.MetalFileChooserUI.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 DimensionModifier and TypeMethodDescriptionMultiButtonUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiColorChooserUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiComboBoxUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiDesktopIconUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiDesktopPaneUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiFileChooserUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiInternalFrameUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiLabelUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiListUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiMenuBarUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiMenuItemUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiOptionPaneUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiPanelUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiPopupMenuUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiProgressBarUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiRootPaneUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiScrollBarUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiScrollPaneUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiSeparatorUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiSliderUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiSpinnerUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiSplitPaneUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiTabbedPaneUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiTableHeaderUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiTableUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiTextUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiToolBarUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiToolTipUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiTreeUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiViewportUI.getMaximumSize(JComponent a) Invokes thegetMaximumSizemethod on each UI handled by this object.MultiButtonUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiColorChooserUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiComboBoxUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiDesktopIconUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiDesktopPaneUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiFileChooserUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiInternalFrameUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiLabelUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiListUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiMenuBarUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiMenuItemUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiOptionPaneUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiPanelUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiPopupMenuUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiProgressBarUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiRootPaneUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiScrollBarUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiScrollPaneUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiSeparatorUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiSliderUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiSpinnerUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiSplitPaneUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiTabbedPaneUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiTableHeaderUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiTableUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiTextUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiToolBarUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiToolTipUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiTreeUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiViewportUI.getMinimumSize(JComponent a) Invokes thegetMinimumSizemethod on each UI handled by this object.MultiButtonUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiColorChooserUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiComboBoxUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiDesktopIconUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiDesktopPaneUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiFileChooserUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiInternalFrameUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiLabelUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiListUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiMenuBarUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiMenuItemUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiOptionPaneUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiPanelUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiPopupMenuUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiProgressBarUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiRootPaneUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiScrollBarUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiScrollPaneUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiSeparatorUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiSliderUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiSpinnerUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiSplitPaneUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiTabbedPaneUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiTableHeaderUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiTableUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiTextUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiToolBarUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiToolTipUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiTreeUI.getPreferredSize(JComponent a) Invokes thegetPreferredSizemethod on each UI handled by this object.MultiViewportUI.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 DimensionModifierConstructorDescriptionPaintContext(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 DimensionModifier and TypeMethodDescriptionprotected DimensionSynthComboBoxUI.getDefaultSize()Returns the default size of an empty display area of the combo box using the current renderer and font.SynthGraphicsUtils.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.SynthGraphicsUtils.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.SynthGraphicsUtils.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.SynthScrollBarUI.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 DimensionModifier and TypeMethodDescriptionJTableHeader.getPreferredSize()Returns the preferred size of the table header.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getSize()Methods in javax.swing.table with parameters of type Dimension -
Uses of Dimension in javax.swing.text
Methods in javax.swing.text that return DimensionModifier and TypeMethodDescriptionJTextComponent.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 DimensionModifier and TypeMethodDescriptionDefaultTreeCellEditor.DefaultTextField.getPreferredSize()OverridesJTextField.getPreferredSizeto return the preferred size based on current font, if set, or else use renderer's font.DefaultTreeCellEditor.EditorContainer.getPreferredSize()Returns the preferred size for theContainer.DefaultTreeCellRenderer.getPreferredSize()OverridesJComponent.getPreferredSizeto return slightly wider preferred size value.
getMinimumSize().