Uses of Class
java.awt.Rectangle
Packages that use Rectangle
Package
Description
Provides a collection of interfaces and classes that compose the Java Accessibility
Utilities.
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides interfaces and classes for dealing with different types of events
fired by AWT components.
Provides classes and interface relating to fonts.
Provides the Java 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides classes and interfaces for the input method framework.
Provides interfaces that enable the development of input methods that can be
used with any Java runtime environment.
Provides classes for creating and modifying images.
Contains classes related to developing beans -- components based on
the JavaBeans architecture.
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.
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 the class
HTMLEditorKit and supporting classes for creating
HTML text editors.Provides classes and interfaces for dealing with
javax.swing.JTree.-
Uses of Rectangle in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return RectangleModifier and TypeMethodDescriptionTranslator.getBounds()Returns the current bounds of this object.Methods in com.sun.java.accessibility.util with parameters of type Rectangle -
Uses of Rectangle in java.awt
Modifier and TypeMethodDescriptionComponent.bounds()Deprecated.Polygon.getBoundingBox()Deprecated.As of JDK version 1.1, replaced bygetBounds().Component.AccessibleAWTComponent.getBounds()Gets the bounds of this object in the form of a Rectangle object.Component.getBounds()Gets the bounds of this component in the form of aRectangleobject.Stores the bounds of this component into "return value" rv and return rv.abstract RectangleGraphicsConfiguration.getBounds()Returns the bounds of theGraphicsConfigurationin the device coordinates.List.AccessibleAWTList.AccessibleAWTListChild.getBounds()Gets the bounds of this object in the form of a Rectangle object.MenuComponent.AccessibleAWTMenuComponent.getBounds()Gets the bounds of this object in the form of aRectangleobject.Polygon.getBounds()Gets the bounding box of thisPolygon.Rectangle.getBounds()Gets the boundingRectangleof thisRectangle.Shape.getBounds()Returns an integerRectanglethat completely encloses theShape.SplashScreen.getBounds()Returns the bounds of the splash screen window as aRectangle.TextComponent.AccessibleAWTTextComponent.getCharacterBounds(int i) Determines the bounding box of the character at the given index into the string.abstract RectangleGraphics.getClipBounds()Returns the bounding rectangle of the current clipping area.Graphics.getClipBounds(Rectangle r) Returns the bounding rectangle of the current clipping area.Graphics.getClipRect()Deprecated.As of JDK version 1.1, replaced bygetClipBounds().Frame.getMaximizedBounds()Gets maximized bounds for this frame.GraphicsEnvironment.getMaximumWindowBounds()Returns the maximum bounds for centered Windows.Rectangle.intersection(Rectangle r) Computes the intersection of thisRectanglewith the specifiedRectangle.Computes the union of thisRectanglewith the specifiedRectangle.Modifier and TypeMethodDescriptionvoidAdds aRectangleto thisRectangle.protected voidGridBagLayout.adjustForGravity(GridBagConstraints constraints, Rectangle r) Adjusts the x, y, width, and height fields to the correct values depending on the constraint geometry and pads.protected voidGridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r) Adjusts the x, y, width, and height fields to the correct values depending on the constraint geometry and pads.booleanChecks whether or not thisRectangleentirely contains the specifiedRectangle.Color.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a solid color field pattern.GradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a linear color gradient pattern.LinearGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) Creates and returns aPaintContextused to generate a linear color gradient pattern.Paint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate the color pattern.RadialGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) Creates and returns aPaintContextused to generate a circular radial color gradient pattern.TexturePaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a tiled image pattern.Robot.createMultiResolutionScreenCapture(Rectangle screenRect) Creates an image containing pixels read from the screen.Robot.createScreenCapture(Rectangle screenRect) Creates an image containing pixels read from the screen.Stores the bounds of this component into "return value" rv and return rv.Graphics.getClipBounds(Rectangle r) Returns the bounding rectangle of the current clipping area.abstract booleanChecks whether or not the specifiedShapeintersects the specifiedRectangle, which is in device space.Rectangle.intersection(Rectangle r) Computes the intersection of thisRectanglewith the specifiedRectangle.booleanRectangle.intersects(Rectangle r) Determines whether or not thisRectangleand the specifiedRectangleintersect.voidSets the bounds of this object in the form of aRectangleobject.voidMoves and resizes this component to conform to the new bounding rectangler.voidSets the bounds of this object in the form of a Rectangle object.voidSets the bounds of this object in the form of aRectangleobject.voidSets the boundingRectangleof thisRectangleto match the specifiedRectangle.voidMoves and resizes this component to conform to the new bounding rectangler.voidFrame.setMaximizedBounds(Rectangle bounds) Sets the maximized bounds for this frame.Computes the union of thisRectanglewith the specifiedRectangle. -
Uses of Rectangle in java.awt.event
Methods in java.awt.event that return RectangleModifier and TypeMethodDescriptionPaintEvent.getUpdateRect()Returns the rectangle representing the area which needs to be repainted in response to this event.Methods in java.awt.event with parameters of type RectangleModifier and TypeMethodDescriptionvoidPaintEvent.setUpdateRect(Rectangle updateRect) Sets the rectangle representing the area which needs to be repainted in response to this event.Constructors in java.awt.event with parameters of type RectangleModifierConstructorDescriptionPaintEvent(Component source, int id, Rectangle updateRect) Constructs aPaintEventobject with the specified source component and type. -
Uses of Rectangle in java.awt.font
Methods in java.awt.font that return RectangleModifier and TypeMethodDescriptionGlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y) Returns the pixel bounds of the glyph at index when thisGlyphVectoris rendered in aGraphicswith the givenFontRenderContextat the given location.GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y) Returns the pixel bounds of thisGlyphVectorwhen rendered in a graphics with the givenFontRenderContextat the given location.TextLayout.getPixelBounds(FontRenderContext frc, float x, float y) Returns the pixel bounds of thisTextLayoutwhen rendered in a graphics with the givenFontRenderContextat the given location. -
Uses of Rectangle in java.awt.geom
Methods in java.awt.geom that return RectangleModifier and TypeMethodDescriptionArea.getBounds()Returns a boundingRectanglethat completely encloses thisArea.CubicCurve2D.getBounds()Returns an integerRectanglethat completely encloses theShape.Line2D.getBounds()Returns an integerRectanglethat completely encloses theShape.final RectanglePath2D.getBounds()Returns an integerRectanglethat completely encloses theShape.QuadCurve2D.getBounds()Returns an integerRectanglethat completely encloses theShape.RectangularShape.getBounds()Returns an integerRectanglethat completely encloses theShape. -
Uses of Rectangle in java.awt.im
Methods in java.awt.im that return RectangleModifier and TypeMethodDescriptionInputMethodRequests.getTextLocation(TextHitInfo offset) Gets the location of a specified offset in the current composed text, or of the selection in committed text. -
Uses of Rectangle in java.awt.im.spi
Methods in java.awt.im.spi with parameters of type RectangleModifier and TypeMethodDescriptionvoidInputMethod.notifyClientWindowChange(Rectangle bounds) Notifies this input method of changes in the client window location or state. -
Uses of Rectangle in java.awt.image
Methods in java.awt.image that return RectangleModifier and TypeMethodDescriptionRaster.getBounds()Returns the bounding Rectangle of this Raster.Methods in java.awt.image with parameters of type RectangleModifier and TypeMethodDescriptionRaster.createCompatibleWritableRaster(Rectangle rect) Create a compatible WritableRaster with location (minX, minY) and size (width, height) specified by rect, a new SampleModel, and a new initialized DataBuffer.Computes and returns an arbitrary region of theBufferedImage.Computes and returns an arbitrary region of the RenderedImage.Constructors in java.awt.image with parameters of type RectangleModifierConstructorDescriptionprotectedRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent) Constructs a Raster with the given SampleModel, DataBuffer, and parent.protectedWritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent) Constructs a WritableRaster with the given SampleModel, DataBuffer, and parent. -
Uses of Rectangle in java.beans
Methods in java.beans with parameters of type RectangleModifier and TypeMethodDescriptionvoidPropertyEditor.paintValue(Graphics gfx, Rectangle box) Paint a representation of the value into a given area of screen real estate.voidPropertyEditorSupport.paintValue(Graphics gfx, Rectangle box) Paint a representation of the value into a given area of screen real estate. -
Uses of Rectangle in javax.accessibility
Methods in javax.accessibility that return RectangleModifier and TypeMethodDescriptionAccessibleComponent.getBounds()Gets the bounds of this object in the form of aRectangleobject.AccessibleText.getCharacterBounds(int i) Determines the bounding box of the character at the given index into the string.AccessibleExtendedText.getTextBounds(int startIndex, int endIndex) Returns the bounding rectangle of the text between two indices.Methods in javax.accessibility with parameters of type Rectangle -
Uses of Rectangle in javax.imageio
Fields in javax.imageio declared as RectangleModifier and TypeFieldDescriptionprotected RectangleIIOParam.sourceRegionThe source region, onnullif none is set.Methods in javax.imageio that return RectangleModifier and TypeMethodDescriptionIIOParam.getSourceRegion()Returns the source region to be used.protected static RectangleImageReader.getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight) A utility method that may be used by readers to compute the region of the source image that should be read, taking into account any source region and subsampling offset settings in the suppliedImageReadParam.Methods in javax.imageio with parameters of type RectangleModifier and TypeMethodDescriptionprotected static voidImageReader.computeRegions(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion) Computes the source region of interest and the destination region of interest, taking the width and height of the source image, an optional destination image, and an optionalImageReadParaminto account.voidImageWriter.prepareReplacePixels(int imageIndex, Rectangle region) Prepares the writer to handle a series of calls to thereplacePixelsmethods.voidIIOParam.setSourceRegion(Rectangle sourceRegion) Sets the source region of interest. -
Uses of Rectangle in javax.swing
Methods in javax.swing that return RectangleModifier and TypeMethodDescriptionstatic RectangleSwingUtilities.calculateInnerArea(JComponent c, Rectangle r) Stores the position and size of the inner painting area of the specified component inrand returnsr.static Rectangle[]SwingUtilities.computeDifference(Rectangle rectA, Rectangle rectB) Convenience returning an array of rect representing the regions withinrectAthat do not overlap withrectB.static RectangleSwingUtilities.computeIntersection(int x, int y, int width, int height, Rectangle dest) Convenience to calculate the intersection of two rectangles without allocating a new rectangle.static RectangleSwingUtilities.computeUnion(int x, int y, int width, int height, Rectangle dest) Convenience method that calculates the union of two rectangles without allocating a new rectangle.static RectangleSwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination) Convert the rectangleaRectangleinsourcecoordinate system todestinationcoordinate system.Stores the bounds of this component into "return value"rvand returnsrv.JList.AccessibleJList.AccessibleJListChild.getBounds()JTable.AccessibleJTable.AccessibleJTableCell.getBounds()JTree.AccessibleJTree.AccessibleJTreeNode.getBounds()JTabbedPane.getBoundsAt(int index) Returns the tab bounds atindex.protected RectangleDefaultDesktopManager.getBoundsForIconOf(JInternalFrame f) TheiconifyFrame()code calls this to determine the proper bounds for the desktopIcon.JList.getCellBounds(int index0, int index1) Returns the bounding rectangle, in the list's coordinate system, for the range of cells specified by the two indices.JTable.getCellRect(int row, int column, boolean includeSpacing) Returns a rectangle for the cell that lies at the intersection ofrowandcolumn.AbstractButton.AccessibleAbstractButton.getCharacterBounds(int i) Determine the bounding box of the character at the given index into the string.JLabel.AccessibleJLabel.getCharacterBounds(int i) Returns the bounding box of the character at the given index in the string.JSpinner.AccessibleJSpinner.getCharacterBounds(int i) Determines the bounding box of the character at the given index into the string.ProgressMonitor.AccessibleProgressMonitor.getCharacterBounds(int i) Determines the bounding box of the character at the given index into the string.DebugGraphics.getClipBounds()OverridesGraphics.getClipBounds.RepaintManager.getDirtyRegion(JComponent aComponent) Return the current dirty region for a component.static RectangleSwingUtilities.getLocalBounds(Component aComponent) Return the rectangle (0,0,bounds.width,bounds.height) for the componentaComponentJInternalFrame.getNormalBounds()If theJInternalFrameis not in maximized state, returnsgetBounds(); otherwise, returns the bounds that theJInternalFramewould be restored to.JTree.getPathBounds(TreePath path) Returns theRectanglethat the specified node will be drawn into.protected RectangleDefaultDesktopManager.getPreviousBounds(JInternalFrame f) Gets the normal bounds of the component prior to the component being maximized.JTree.getRowBounds(int row) Returns theRectanglethat the node at the specified row is drawn in.JScrollPane.getViewportBorderBounds()Returns the bounds of the viewport's border.ScrollPaneLayout.getViewportBorderBounds(JScrollPane scrollpane) Deprecated.As of JDK version Swing1.1 replaced byJScrollPane.getViewportBorderBounds().JViewport.getViewRect()Returns a rectangle whose origin isgetViewPositionand size isgetExtentSize.JComponent.getVisibleRect()Returns theComponent's "visible rectangle" - the intersection of this component's visible rectangle,new Rectangle(0, 0, getWidth(), getHeight()), and all of its ancestors' visible rectangles.Methods in javax.swing with parameters of type RectangleModifier and TypeMethodDescriptionstatic RectangleSwingUtilities.calculateInnerArea(JComponent c, Rectangle r) Stores the position and size of the inner painting area of the specified component inrand returnsr.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 Rectangle[]SwingUtilities.computeDifference(Rectangle rectA, Rectangle rectB) Convenience returning an array of rect representing the regions withinrectAthat do not overlap withrectB.static RectangleSwingUtilities.computeIntersection(int x, int y, int width, int height, Rectangle dest) Convenience to calculate the intersection of two rectangles without allocating a new rectangle.static RectangleSwingUtilities.computeUnion(int x, int y, int width, int height, Rectangle dest) Convenience method that calculates the union of two rectangles without allocating a new rectangle.voidJComponent.computeVisibleRect(Rectangle visibleRect) Returns theComponent's "visible rect rectangle" - the intersection of the visible rectangles for this component and all of its ancestors.static RectangleSwingUtilities.convertRectangle(Component source, Rectangle aRectangle, Component destination) Convert the rectangleaRectangleinsourcecoordinate system todestinationcoordinate system.Stores the bounds of this component into "return value"rvand returnsrv.intJLayer.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) Returns a scroll increment, which is required for components that display logical rows or columns in order to completely expose one block of rows or columns, depending on the value of orientation.intJList.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) Returns the distance to scroll to expose the next or previous block.intJTable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) ReturnsvisibleRect.heightorvisibleRect.width, depending on this table's orientation.intJTree.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) Returns the amount for a block increment, which is the height or width ofvisibleRect, based onorientation.intScrollable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation.intJLayer.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Returns a scroll increment, which is required for components that display logical rows or columns in order to completely expose one new row or column, depending on the value of orientation.intJList.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Returns the distance to scroll to expose the next or previous row (for vertical scrolling) or column (for horizontal scrolling).intJTable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Returns the scroll increment (in pixels) that completely exposes one new row or column (depending on the orientation).intJTextArea.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation.intJTree.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Returns the amount to increment when scrolling.intScrollable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation.static final booleanSwingUtilities.isRectangleContainingRectangle(Rectangle a, Rectangle b) Returntrueifacontainsbstatic StringSwingUtilities.layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.static StringSwingUtilities.layoutCompoundLabel(JComponent c, FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap) Compute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string.voidCellRendererPane.paintComponent(Graphics g, Component c, Container p, Rectangle r) Calls this.paintComponent(g, c, p, r.x, r.y, r.width, r.height) whereris the inputRectangleparameter.static voidSwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r) Paints a component to the specifiedGraphics.voidJComponent.paintImmediately(Rectangle r) Paints the specified region now.voidOverridden for performance reasons.voidAdds the specified region to the dirty region list if the component is showing.voidJComponent.scrollRectToVisible(Rectangle aRect) Forwards thescrollRectToVisible()message to theJComponent's parent.voidJTextField.scrollRectToVisible(Rectangle r) Scrolls the field left or right.voidJViewport.scrollRectToVisible(Rectangle contentRect) Scrolls the view so thatRectanglewithin the view becomes visible.voidvoidvoidvoidJInternalFrame.setNormalBounds(Rectangle r) Sets the normal bounds for this internal frame, the bounds that this internal frame would be restored to from its maximized state.protected voidDefaultDesktopManager.setPreviousBounds(JInternalFrame f, Rectangle r) Stores the bounds of the component just before a maximize call. -
Uses of Rectangle in javax.swing.border
Methods in javax.swing.border that return RectangleModifier and TypeMethodDescriptionAbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height) This convenience method calls the static method.static RectangleAbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height) Returns a rectangle using the arguments minus the insets of the border. -
Uses of Rectangle in javax.swing.plaf
Methods in javax.swing.plaf that return RectangleModifier and TypeMethodDescriptionabstract RectangleListUI.getCellBounds(JList<?> list, int index1, int index2) Returns the bounding rectangle, in the given list's coordinate system, for the range of cells specified by the two indices.abstract RectangleTreeUI.getPathBounds(JTree tree, TreePath path) Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.abstract RectangleTabbedPaneUI.getTabBounds(JTabbedPane pane, int index) Returns the rectangle for the tab bounds.abstract RectangleTextUI.modelToView(JTextComponent t, int pos) Deprecated.abstract RectangleTextUI.modelToView(JTextComponent t, int pos, Position.Bias bias) Deprecated. -
Uses of Rectangle in javax.swing.plaf.basic
Subclasses of Rectangle in javax.swing.plaf.basicModifier and TypeClassDescriptionstatic classDefault implementation of the interfaceCaret.Fields in javax.swing.plaf.basic declared as RectangleModifier and TypeFieldDescriptionprotected RectangleBasicProgressBarUI.boxRectUsed to hold the location and size of the bouncing box (returned by getBox) to be painted.protected RectangleBasicTabbedPaneUI.calcRectA rectangle used for general layout calculations in order to avoid constructing many new Rectangles on the fly.protected RectangleBasicSliderUI.contentRectContent rectangleprotected RectangleBasicSliderUI.focusRectFocus rectangleprotected RectangleBasicSliderUI.labelRectLabel rectangleprotected Rectangle[]BasicTabbedPaneUI.rectsTab rectsprotected RectangleBasicScrollBarUI.thumbRectThumb rectangleprotected RectangleBasicSliderUI.thumbRectThumb rectangleprotected RectangleBasicSliderUI.tickRectTick rectangleprotected RectangleBasicScrollBarUI.trackRectTrack rectangleprotected RectangleBasicSliderUI.trackRectTrack rectangleMethods in javax.swing.plaf.basic that return RectangleModifier and TypeMethodDescriptionprotected RectangleBasicComboPopup.computePopupBounds(int px, int py, int pw, int ph) Calculate the placement and size of the popup portion of the combo box based on the combo box location and the enclosing screen bounds.protected RectangleStores the position and size of the bouncing box that would be painted for the current animation index inrand returnsr.BasicListUI.getCellBounds(JList<?> list, int index1, int index2) Returns the bounding rectangle, in the given list's coordinate system, for the range of cells specified by the two indices.protected RectangleBasicTreeUI.getDropLineRect(JTree.DropLocation loc) Returns a unbounding box for the drop line.BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size) Responsible for getting the size of a particular node.BasicTreeUI.getPathBounds(JTree tree, TreePath path) Returns the Rectangle enclosing the label portion that the last item in path will be drawn into.protected RectangleBasicTabbedPaneUI.getTabBounds(int tabIndex, Rectangle dest) Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component.BasicTabbedPaneUI.getTabBounds(JTabbedPane pane, int i) Returns the bounds of the specified tab index.protected RectangleBasicScrollBarUI.getThumbBounds()Return the current size/location of the thumb.protected RectangleBasicScrollBarUI.getTrackBounds()Returns the current bounds of the track, i.e. the space in between the increment and decrement buttons, less the insets.protected RectangleBasicTextUI.getVisibleEditorRect()Gets the allocation to give the root View.BasicTextUI.modelToView(JTextComponent tc, int pos) Deprecated.BasicTextUI.modelToView(JTextComponent tc, int pos, Position.Bias bias) Deprecated.protected RectangleBasicComboBoxUI.rectangleForCurrentValue()Returns the area that is reserved for drawing the currently selected item.Methods in javax.swing.plaf.basic with parameters of type RectangleModifier and TypeMethodDescriptionprotected RectangleStores the position and size of the bouncing box that would be painted for the current animation index inrand returnsr.BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size) Responsible for getting the size of a particular node.protected RectangleBasicTabbedPaneUI.getTabBounds(int tabIndex, Rectangle dest) Returns the bounds of the specified tab in the coordinate space of the JTabbedPane component.protected StringBasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR) Forwards the call to SwingUtilities.layoutCompoundLabel().protected voidBasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) Lays out a label.protected voidBasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex) Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use theCellRendererPaneto paint it.voidBasicComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) Paints the currently selected item.voidBasicComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) Paints the background of the currently selected item.protected voidBasicTreeUI.paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) Paints the expand (toggle) part of a row.protected voidBasicButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) Paints a focused button.protected voidBasicRadioButtonUI.paintFocus(Graphics g, Rectangle textRect, Dimension size) Paints focused radio button.protected voidBasicTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) Paints the focus indicator.protected voidBasicTreeUI.paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) Paints the horizontal part of the leg.protected voidBasicButtonUI.paintIcon(Graphics g, JComponent c, Rectangle iconRect) Paints an icon of the current button.protected voidBasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) Paints an icon.protected voidBasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) Paints an icon in the specified location.protected voidBasicSliderUI.paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) Paints major tick for horizontal slider.protected voidBasicSliderUI.paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) Paints major tick for vertical slider.protected voidBasicSliderUI.paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x) Paints minor tick for horizontal slider.protected voidBasicSliderUI.paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y) Paints minor tick for vertical slider.protected voidBasicTreeUI.paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf) Paints the renderer part of a row.protected voidBasicTabbedPaneUI.paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect) Paints a tab.protected voidBasicButtonUI.paintText(Graphics g, AbstractButton b, Rectangle textRect, String text) Method which renders the text of the current button.protected voidBasicButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text) Method which renders the text of the current button.protected voidRenders the text of the current menu item.protected voidBasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) Paints text.protected voidBasicScrollBarUI.paintThumb(Graphics g, JComponent c, Rectangle thumbBounds) Paints the thumb.protected voidBasicScrollBarUI.paintTrack(Graphics g, JComponent c, Rectangle trackBounds) Paints the track.protected voidBasicTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path) Paints the vertical part of the leg. -
Uses of Rectangle in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type RectangleModifier and TypeMethodDescriptionvoidMetalComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) If necessary paints the currently selected item.voidMetalComboBoxUI.paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus) If necessary paints the background of the currently selected item.protected voidMetalToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) Paints the appropriate icon of the buttonbin the spaceiconRect. -
Uses of Rectangle in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return RectangleModifier and TypeMethodDescriptionMultiListUI.getCellBounds(JList<?> a, int b, int c) Invokes thegetCellBoundsmethod on each UI handled by this object.MultiTreeUI.getPathBounds(JTree a, TreePath b) Invokes thegetPathBoundsmethod on each UI handled by this object.MultiTabbedPaneUI.getTabBounds(JTabbedPane a, int b) Invokes thegetTabBoundsmethod on each UI handled by this object.MultiTextUI.modelToView(JTextComponent a, int b) Deprecated.MultiTextUI.modelToView(JTextComponent a, int b, Position.Bias c) Deprecated. -
Uses of Rectangle in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth with parameters of type RectangleModifier and TypeMethodDescriptionSynthGraphicsUtils.layoutText(SynthContext ss, FontMetrics fm, String text, Icon icon, int hAlign, int vAlign, int hTextPosition, int vTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int iconTextGap) Lays out text and an icon returning, by reference, the location to place the icon and text.protected voidSynthToolBarUI.paintContent(SynthContext context, Graphics g, Rectangle bounds) Paints the toolbar content.voidSynthComboBoxUI.paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus) Paints the currently selected item.voidSynthGraphicsUtils.paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex) Paints text at the specified location.protected voidSynthScrollBarUI.paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) Paints the scrollbar thumb.protected voidSynthSliderUI.paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds) Paints the slider thumb.protected voidSynthScrollBarUI.paintTrack(SynthContext context, Graphics g, Rectangle trackBounds) Paints the scrollbar track.protected voidSynthSliderUI.paintTrack(SynthContext context, Graphics g, Rectangle trackBounds) Paints the slider track. -
Uses of Rectangle in javax.swing.table
Methods in javax.swing.table that return RectangleModifier and TypeMethodDescriptionJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBounds()JTableHeader.getHeaderRect(int column) Returns the rectangle containing the header tile atcolumn.Methods in javax.swing.table with parameters of type Rectangle -
Uses of Rectangle in javax.swing.text
Subclasses of Rectangle in javax.swing.textFields in javax.swing.text declared as RectangleModifier and TypeFieldDescriptionprotected RectangleAsyncBoxView.ChildLocator.childAllocA shape to use for the child allocation to avoid creating a lot of garbage.protected RectangleAsyncBoxView.ChildLocator.lastAllocThe last seen allocation (for repainting when changes are flushed upward).Methods in javax.swing.text that return RectangleModifier and TypeMethodDescriptionJTextComponent.AccessibleJTextComponent.getCharacterBounds(int i) Determines the bounding box of the character at the given index into the string.protected RectangleCompositeView.getInsideAllocation(Shape a) Translates the immutable allocation given to the view to a mutable allocation that represents the interior allocation (i.e. the bounds of the given allocation with the top, left, bottom, and right insets removed.JTextComponent.AccessibleJTextComponent.getTextBounds(int startIndex, int endIndex) Returns theRectangleenclosing the text between two indices.protected RectanglePlainView.lineToRect(Shape a, int line) Determine the rectangle that represents the given line.JTextComponent.modelToView(int pos) Deprecated.replaced byJTextComponent.modelToView2D(int)Methods in javax.swing.text with parameters of type RectangleModifier and TypeMethodDescriptionprotected voidDefaultCaret.adjustVisibility(Rectangle nloc) Scrolls the associated view (if necessary) to make the caret visible.voidFlowView.FlowStrategy.changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) Gives notification from the document that attributes were changed in a location that this view is responsible for.protected voidBoxView.childAllocation(int index, Rectangle alloc) Allocates a region for a child view.protected abstract voidCompositeView.childAllocation(int index, Rectangle a) Returns the allocation for a given child.protected voidDamages the area surrounding the caret to cause it to be repainted in a new location.intJTextComponent.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction) Components that display logical rows or columns should compute the scroll increment that will completely expose one block of rows or columns, depending on the value of orientation.intJTextComponent.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation.protected ViewBoxView.getViewAtPoint(int x, int y, Rectangle alloc) Fetches the child view at the given coordinates.protected abstract ViewCompositeView.getViewAtPoint(int x, int y, Rectangle alloc) Fetches the child view at the given coordinates.protected ViewCompositeView.getViewAtPosition(int pos, Rectangle a) Fetches the child view that represents the given position in the model.protected ViewTableView.getViewAtPosition(int pos, Rectangle a) Fetches the child view that represents the given position in the model.protected ViewTableView.TableRow.getViewAtPosition(int pos, Rectangle a) Fetches the child view that represents the given position in the model.voidFlowView.FlowStrategy.insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) Gives notification that something was inserted into the document in a location that the given flow view is responsible for.protected booleanDetermines if a point falls after an allocated region.protected abstract booleanTests whether a point lies after the rectangle range.protected booleanDetermines if a point falls before an allocated region.protected abstract booleanTests whether a point lies before the rectangle range.protected voidBoxView.paintChild(Graphics g, Rectangle alloc, int index) Paints a child.voidFlowView.FlowStrategy.removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc) Gives notification that something was removed from the document in a location that the given flow view is responsible for. -
Uses of Rectangle in javax.swing.text.html
Methods in javax.swing.text.html with parameters of type RectangleModifier and TypeMethodDescriptionprotected voidListView.paintChild(Graphics g, Rectangle alloc, int index) Paints one of the children; called by paint(). -
Uses of Rectangle in javax.swing.tree
Methods in javax.swing.tree that return RectangleModifier and TypeMethodDescriptionabstract RectangleReturns a rectangle giving the bounds needed to draw path.Returns a rectangle giving the bounds needed to draw path.Returns theRectangleenclosing the label portion into which the item identified bypathwill be drawn.protected RectangleAbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn) Returns, by reference inplaceIn, the size needed to representvalue.abstract RectangleAbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) Returns, by reference in bounds, the size and x origin to place value at.Methods in javax.swing.tree with parameters of type RectangleModifier and TypeMethodDescriptionabstract RectangleReturns a rectangle giving the bounds needed to draw path.Returns a rectangle giving the bounds needed to draw path.Returns theRectangleenclosing the label portion into which the item identified bypathwill be drawn.protected RectangleAbstractLayoutCache.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn) Returns, by reference inplaceIn, the size needed to representvalue.abstract RectangleAbstractLayoutCache.NodeDimensions.getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds) Returns, by reference in bounds, the size and x origin to place value at.intAbstractLayoutCache.getPreferredWidth(Rectangle bounds) Returns the preferred width for the passed in region.intVariableHeightLayoutCache.getPreferredWidth(Rectangle bounds) Returns the preferred width and height for the region invisibleRegion.voidOverridden for performance reasons.
getBounds().