Uses of Class
java.awt.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
-
Uses of Dimension in java.applet
-
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 Dimension
GridBagLayout.getMinSize(Container parent, GridBagLayoutInfo info)
Figures out the minimum size of the master based on the information fromgetLayoutInfo
.protected Dimension
GridBagLayout.GetMinSize(Container parent, GridBagLayoutInfo info)
This method is obsolete and supplied for backwards compatibility only; new code should callgetMinSize
instead.abstract Dimension
PrintJob.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 Dimension
Toolkit.getScreenSize()
Gets the size of the screen.Component.AccessibleAWTComponent.getSize()
Returns the size of this object in the form of aDimension
object.Component.getSize()
Returns the size of this component in the form of aDimension
object.Stores the width/height of this component into "return value" rv and return rv.Dimension.getSize()
Gets the size of thisDimension
object.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 aDimension
object.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 thetarget
container 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 theparent
container 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 thetarget
container 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 theparent
container 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.void
Deprecated.As of JDK version 1.1, replaced bysetSize(Dimension)
.void
Component.setMaximumSize(Dimension maximumSize)
Sets the maximum size of this component to a constant value.void
Component.setMinimumSize(Dimension minimumSize)
Sets the minimum size of this component to a constant value.void
Window.setMinimumSize(Dimension minimumSize)
Sets the minimum size of this window to a constant value.void
Component.setPreferredSize(Dimension preferredSize)
Sets the preferred size of this component to a constant value.void
Resizes this object so that it has width and height.void
Resizes this component so that it has widthd.width
and heightd.height
.void
Sets the size of thisDimension
object to the specified size.void
Resizes this object so that it has width and height.void
Resizes this object.void
Sets the size of thisRectangle
to match the specifiedDimension
.void
Resizes this component so that it has widthd.width
and heightd.height
.ModifierConstructorDescriptionCreates an instance ofDimension
whose width and height are the same as for the specified dimension.Constructs a newRectangle
whose top left corner is (0, 0) and whose width and height are specified by theDimension
argument. -
Uses of Dimension in javax.accessibility
Modifier and TypeMethodDescriptionAccessibleComponent.getSize()
Returns the size of this object in the form of aDimension
object. -
Uses of Dimension in javax.imageio
Modifier and TypeFieldDescriptionprotected Dimension[]
ImageWriteParam.preferredTileSizes
An array of preferred tile size range pairs.protected Dimension
ImageReadParam.sourceRenderSize
The desired rendering width and height of the source, ifcanSetSourceRenderSize
istrue
, ornull
.Modifier and TypeMethodDescriptionImageWriter.getPreferredThumbnailSizes(ImageTypeSpecifier imageType, ImageWriteParam param, IIOMetadata streamMetadata, IIOMetadata imageMetadata)
Returns an array ofDimension
s indicating the legal size ranges for thumbnail images as they will be encoded in the output file or stream.ImageWriteParam.getPreferredTileSizes()
Returns an array ofDimension
s 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 thesetSourceRenderSize
method.Modifier and TypeMethodDescriptionvoid
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
Modifier and TypeFieldDescriptionprotected Dimension
JTable.preferredViewportSize
Used by theScrollable
interface to determine the initial visible area.Modifier and TypeMethodDescriptionUIDefaults.getDimension(Object key)
If the value ofkey
is aDimension
return it, otherwise returnnull
.UIDefaults.getDimension(Object key, Locale l)
If the value ofkey
for the givenLocale
is aDimension
return it, otherwise returnnull
.static Dimension
UIManager.getDimension(Object key)
Returns a dimension from the defaults.static Dimension
UIManager.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-null
value 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-null
value 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 displayvisibleRowCount
rows.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 thepreferredSize
has been set to a non-null
value 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 sizeDimensions
needed 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"rv
and 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 aScrollPane
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.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 aScrollPane
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.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.Modifier and TypeMethodDescriptionvoid
JToolBar.addSeparator(Dimension size)
Appends a separator of a specified size to the end of the tool bar.void
Box.Filler.changeShape(Dimension min, Dimension pref, Dimension max)
Change the size requests for this shape.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 containsoldLoc
in the upper left hand corner and we're scrolling tonewLoc
.static Component
Box.createRigidArea(Dimension d)
Creates an invisible component that's always the specified size.Stores the width/height of this component into "return value"rv
and returnsrv
.void
RepaintManager.setDoubleBufferMaximumSize(Dimension d)
Set the maximum double buffer size.void
JViewport.setExtentSize(Dimension newExtent)
Sets the size of the visible part of the view using view coordinates.void
JTable.setIntercellSpacing(Dimension intercellSpacing)
Sets therowMargin
and thecolumnMargin
-- the height and width of the space between cells -- tointercellSpacing
.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.void
JPopupMenu.setPopupSize(Dimension d)
Sets the size of the Popup window using aDimension
object.void
JTable.setPreferredScrollableViewportSize(Dimension size)
Sets the preferred size of the viewport for this table.void
JComponent.setPreferredSize(Dimension preferredSize)
Sets the preferred size of this component.void
JToolBar.Separator.setSeparatorSize(Dimension size)
Sets the size of the separator.void
void
void
void
JViewport.setViewSize(Dimension newSize)
Sets the size of the view.JViewport.toViewCoordinates(Dimension size)
Converts a size in pixel coordinates to view coordinates. -
Uses of Dimension in javax.swing.border
Modifier 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
Modifier and TypeClassDescriptionclass
A subclass ofDimension
that implementsUIResource
.Modifier 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
Modifier and TypeFieldDescriptionprotected Dimension
BasicComboBoxUI.cachedMinimumSize
The cached minimum preferred size.protected Dimension
BasicScrollBarUI.maximumThumbSize
Maximum thumb sizeprotected Dimension
BasicOptionPaneUI.minimumSize
The size ofJOptionPane
.protected Dimension
BasicScrollBarUI.minimumThumbSize
Minimum thumb sizeprotected Dimension
BasicTreeUI.preferredMinSize
Minimum preferred size.protected Dimension
BasicTreeUI.preferredSize
Size needed to completely display all the nodes.Modifier and TypeMethodDescriptionprotected Dimension
BasicTabbedPaneUI.TabbedPaneLayout.calculateSize(boolean minimum)
Returns the calculated size.protected Dimension
BasicComboBoxUI.getDefaultSize()
Return the default size of an empty display area of the combo box using the current renderer and font.protected Dimension
BasicComboBoxUI.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 Dimension
BasicScrollBarUI.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 dividerSize x dividerSizeBasicSplitPaneUI.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 Dimension
BasicScrollBarUI.getMinimumThumbSize()
Returns the smallest acceptable size for the thumb.BasicSliderUI.getMinimumVerticalSize()
Returns the minimum vertical size.static Dimension
BasicGraphicsUtils.getPreferredButtonSize(AbstractButton b, int textIconGap)
Returns the preferred size of the button.BasicSliderUI.getPreferredHorizontalSize()
Returns the preferred horizontal size.protected Dimension
BasicProgressBarUI.getPreferredInnerHorizontal()
Returns preferred size of the horizontalJProgressBar
.protected Dimension
BasicProgressBarUI.getPreferredInnerVertical()
Returns preferred size of the verticalJProgressBar
.protected Dimension
BasicMenuItemUI.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)
Ifc
is theJOptionPane
the receiver is contained in, the preferred size that is returned is the maximum of the preferred size of theLayoutManager
for 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 dividerSize x dividerSizeBasicSplitPaneUI.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 Dimension
BasicComboBoxUI.getSizeForComponent(Component comp)
Returns the size a component would have if used as a cell renderer.protected Dimension
BasicSliderUI.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)
Modifier and TypeMethodDescriptionprotected int
BasicSplitPaneUI.BasicHorizontalLayoutManager.getAvailableSize(Dimension containerSize, Insets insets)
Returns the available width based on the container size andInsets
.protected void
BasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size)
Paints focused radio button.protected void
BasicSplitPaneUI.BasicHorizontalLayoutManager.setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
Sets the width of the componentc
to besize
, placing its x location atlocation
, y to theinsets.top
and height to thecontainerSize.height
less the top and bottom insets.void
BasicTreeUI.setPreferredMinSize(Dimension newSize)
Sets the preferred minimum size. -
Uses of Dimension in javax.swing.plaf.metal
Modifier 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
Modifier and TypeMethodDescriptionMultiButtonUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiColorChooserUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiComboBoxUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiDesktopIconUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiDesktopPaneUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiFileChooserUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiInternalFrameUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiLabelUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiListUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiMenuBarUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiMenuItemUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiOptionPaneUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiPanelUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiPopupMenuUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiProgressBarUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiRootPaneUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiScrollBarUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiScrollPaneUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiSeparatorUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiSliderUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiSpinnerUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiSplitPaneUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiTabbedPaneUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiTableHeaderUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiTableUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiTextUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiToolBarUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiToolTipUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiTreeUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiViewportUI.getMaximumSize(JComponent a)
Invokes thegetMaximumSize
method on each UI handled by this object.MultiButtonUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiColorChooserUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiComboBoxUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiDesktopIconUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiDesktopPaneUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiFileChooserUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiInternalFrameUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiLabelUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiListUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiMenuBarUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiMenuItemUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiOptionPaneUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiPanelUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiPopupMenuUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiProgressBarUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiRootPaneUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiScrollBarUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiScrollPaneUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiSeparatorUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiSliderUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiSpinnerUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiSplitPaneUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiTabbedPaneUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiTableHeaderUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiTableUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiTextUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiToolBarUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiToolTipUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiTreeUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiViewportUI.getMinimumSize(JComponent a)
Invokes thegetMinimumSize
method on each UI handled by this object.MultiButtonUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiColorChooserUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiComboBoxUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiDesktopIconUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiDesktopPaneUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiFileChooserUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiInternalFrameUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiLabelUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiListUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiMenuBarUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiMenuItemUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiOptionPaneUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiPanelUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiPopupMenuUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiProgressBarUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiRootPaneUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiScrollBarUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiScrollPaneUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiSeparatorUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiSliderUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiSpinnerUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiSplitPaneUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiTabbedPaneUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiTableHeaderUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiTableUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiTextUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiToolBarUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiToolTipUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiTreeUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object.MultiViewportUI.getPreferredSize(JComponent a)
Invokes thegetPreferredSize
method on each UI handled by this object. -
Uses of Dimension in javax.swing.plaf.nimbus
ModifierConstructorDescriptionPaintContext(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
Modifier and TypeMethodDescriptionprotected Dimension
SynthComboBoxUI.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
Modifier and TypeMethodDescriptionJTableHeader.getPreferredSize()
Returns the preferred size of the table header.JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getSize()
-
Uses of Dimension in javax.swing.text
Modifier and TypeMethodDescriptionJTextComponent.getPreferredScrollableViewportSize()
Returns the preferred size of the viewport for a view component. -
Uses of Dimension in javax.swing.tree
Modifier and TypeMethodDescriptionDefaultTreeCellEditor.DefaultTextField.getPreferredSize()
OverridesJTextField.getPreferredSize
to 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.getPreferredSize
to return slightly wider preferred size value.
getMinimumSize()
.