|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Rectangle | |
java.awt | Contains all of the classes for creating user interfaces and for painting graphics and images. |
java.awt.event | Provides interfaces and classes for dealing with different types of events fired by AWT components. |
java.awt.geom | Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry. |
java.awt.im | Provides classes and an interface for the input method framework. |
java.awt.image | Provides classes for creating and modifying images. |
java.beans | Contains classes related to Java Beans development. |
javax.accessibility | Defines a contract between user-interface components and an assistive technology that provides access to those components. |
javax.swing | Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. |
javax.swing.border | Provides classes and interface for drawing specialized borders around a Swing component. |
javax.swing.plaf | Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. |
javax.swing.plaf.basic | Provides user interface objects built according to the Basic look-and-feel. |
javax.swing.plaf.metal | Provides user interface objects built according to the ``metal'' look-and-feel. |
javax.swing.plaf.multi | The multiplexing look and feel allows users to combine auxiliary look and feels with the default look and feel. |
javax.swing.table | Provides classes and interfaces for dealing with java.awt.swing.JTable. |
javax.swing.text | Provides classes and interfaces that deal with editable and noneditable text components. |
javax.swing.text.html | Provides the class HTMLEditorKit and supporting classes
for creating HTML text editors. |
javax.swing.tree | Provides classes and interfaces for dealing with java.awt.swing.JTree. |
Uses of Rectangle in java.awt |
Fields in java.awt declared as Rectangle | |
protected Rectangle |
Polygon.bounds
Bounds of the polygon. |
Methods in java.awt that return Rectangle | |
Rectangle |
Component.getBounds()
Gets the bounds of this component in the form of a Rectangle object. |
Rectangle |
Component.bounds()
Deprecated. As of JDK version 1.1, replaced by getBounds() . |
Rectangle |
Component.getBounds(Rectangle rv)
Store the bounds of this component into "return value" rv and return rv. |
abstract Rectangle |
Graphics.getClipBounds()
Returns the bounding rectangle of the current clipping area. |
Rectangle |
Graphics.getClipRect()
Deprecated. As of JDK version 1.1, replaced by getClipBounds() . |
Rectangle |
Graphics.getClipBounds(Rectangle r)
Returns the bounding rectangle of the current clipping area. |
Rectangle |
Shape.getBounds()
Returns an integer Rectangle that completely encloses the
Shape . |
Rectangle |
Polygon.getBounds()
Gets the bounding box of this Polygon . |
Rectangle |
Polygon.getBoundingBox()
Deprecated. As of JDK version 1.1, replaced by getBounds() . |
Rectangle |
Rectangle.getBounds()
Gets the bounding Rectangle of this Rectangle . |
Rectangle |
Rectangle.intersection(Rectangle r)
Computes the intersection of this Rectangle with the
specified Rectangle . |
Rectangle |
Rectangle.union(Rectangle r)
Computes the union of this Rectangle with the
specified Rectangle . |
Methods in java.awt with parameters of type Rectangle | |
void |
Component.setBounds(Rectangle r)
Moves and resizes this component to conform to the new bounding rectangle r . |
Rectangle |
Component.getBounds(Rectangle rv)
Store the bounds of this component into "return value" rv and return rv. |
PaintContext |
TexturePaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a context used to generate the color pattern. |
Rectangle |
Graphics.getClipBounds(Rectangle r)
Returns the bounding rectangle of the current clipping area. |
PaintContext |
GradientPaint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a context used to generate the color pattern. |
PaintContext |
Color.createContext(ColorModel cm,
Rectangle r,
Rectangle2D r2d,
AffineTransform xform,
RenderingHints hints)
Create and return a PaintContext used to generate a solid color pattern. |
PaintContext |
SystemColor.createContext(ColorModel cm,
Rectangle r,
Rectangle2D r2d,
AffineTransform xform,
RenderingHints hints)
Create and return a PaintContext used to generate a solid color pattern. |
PaintContext |
Paint.createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Creates and returns a PaintContext used to
generate the color pattern. |
abstract boolean |
Graphics2D.hit(Rectangle rect,
Shape s,
boolean onStroke)
Checks whether or not the specified Shape intersects
the specified Rectangle , which is in device
space. |
void |
Rectangle.setBounds(Rectangle r)
Sets the bounding Rectangle of this Rectangle
to match the specified Rectangle . |
boolean |
Rectangle.contains(Rectangle r)
Checks whether or not this Rectangle entirely contains
the specified Rectangle . |
boolean |
Rectangle.intersects(Rectangle r)
Determines whether or not this Rectangle and the specified
Rectangle intersect. |
Rectangle |
Rectangle.intersection(Rectangle r)
Computes the intersection of this Rectangle with the
specified Rectangle . |
Rectangle |
Rectangle.union(Rectangle r)
Computes the union of this Rectangle with the
specified Rectangle . |
void |
Rectangle.add(Rectangle r)
Adds a Rectangle to this Rectangle . |
protected void |
GridBagLayout.AdjustForGravity(GridBagConstraints constraints,
Rectangle r)
|
Constructors in java.awt with parameters of type Rectangle | |
Rectangle.Rectangle(Rectangle r)
Constructs a new Rectangle , initialized to match
the values of the specificed Rectangle . |
Uses of Rectangle in java.awt.event |
Methods in java.awt.event that return Rectangle | |
Rectangle |
PaintEvent.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 Rectangle | |
void |
PaintEvent.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 Rectangle | |
PaintEvent.PaintEvent(Component source,
int id,
Rectangle updateRect)
Constructs a PaintEvent object with the specified source component and type. |
Uses of Rectangle in java.awt.geom |
Methods in java.awt.geom that return Rectangle | |
Rectangle |
RectangularShape.getBounds()
Returns the bounding box of the Shape . |
Rectangle |
Line2D.getBounds()
Returns the bounding box of this Line2D . |
Rectangle |
CubicCurve2D.getBounds()
Returns the bounding box of the shape. |
Rectangle |
Area.getBounds()
Returns a bounding Rectangle that completely encloses
this Area . |
Rectangle |
GeneralPath.getBounds()
Return the bounding box of the path. |
Rectangle |
QuadCurve2D.getBounds()
Returns the bounding box of this QuadCurve2D . |
Uses of Rectangle in java.awt.im |
Methods in java.awt.im that return Rectangle | |
Rectangle |
InputMethodRequests.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.image |
Methods in java.awt.image that return Rectangle | |
Rectangle |
Raster.getBounds()
Returns the bounding Rectangle of this Raster. |
Methods in java.awt.image with parameters of type Rectangle | |
WritableRaster |
Raster.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. |
Raster |
BufferedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the BufferedImage . |
Raster |
RenderedImage.getData(Rectangle rect)
Computes and returns an arbitrary region of the RenderedImage. |
Constructors in java.awt.image with parameters of type Rectangle | |
Raster.Raster(SampleModel sampleModel,
DataBuffer dataBuffer,
Rectangle aRegion,
Point sampleModelTranslate,
Raster parent)
Constructs a Raster with the given SampleModel, DataBuffer, and parent. |
|
WritableRaster.WritableRaster(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 Rectangle | |
void |
PropertyEditorSupport.paintValue(Graphics gfx,
Rectangle box)
Paint a representation of the value into a given area of screen real estate. |
void |
PropertyEditor.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 Rectangle | |
Rectangle |
AccessibleText.getCharacterBounds(int i)
Determine the bounding box of the character at the given index into the string. |
Rectangle |
AccessibleComponent.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Methods in javax.accessibility with parameters of type Rectangle | |
void |
AccessibleComponent.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
Uses of Rectangle in javax.swing |
Methods in javax.swing that return Rectangle | |
Rectangle |
JComponent.getBounds(Rectangle rv)
Store the bounds of this component into "return value" rv and return rv. |
Rectangle |
JComponent.getVisibleRect()
Returns the Component's "visible rectangle" - the intersection of this components visible rectangle: |
Rectangle |
JComponent.AccessibleJComponent.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
JTree.getPathBounds(TreePath path)
Returns the Rectangle that the specified node will be drawn into. |
Rectangle |
JTree.getRowBounds(int row)
Returns the Rectangle that the node at the specified row is drawn in. |
Rectangle |
JTree.AccessibleJTree.AccessibleJTreeNode.getBounds()
|
protected Rectangle |
DefaultDesktopManager.getBoundsForIconOf(JInternalFrame f)
The iconifyFrame() code calls this to determine the proper bounds for the desktopIcon. |
protected Rectangle |
DefaultDesktopManager.getPreviousBounds(JInternalFrame f)
|
Rectangle |
DebugGraphics.getClipBounds()
Overrides Graphics.getClipBounds . |
Rectangle |
JApplet.AccessibleJApplet.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
RepaintManager.getDirtyRegion(JComponent aComponent)
Return the current dirty region for a component. |
Rectangle |
JViewport.getViewRect()
Return a rectangle whose origin is getViewPosition and size is getExtentSize(). |
Rectangle |
ScrollPaneLayout.getViewportBorderBounds(JScrollPane scrollpane)
Deprecated. As of JDK version Swing1.1 replaced by JScrollPane.getViewportBorderBounds() . |
static Rectangle |
SwingUtilities.getLocalBounds(Component aComponent)
Return the rectangle (0,0,bounds.width,bounds.height) for the component aComponent |
static Rectangle |
SwingUtilities.convertRectangle(Component source,
Rectangle aRectangle,
Component destination)
Convert the rectangle aRectangle in source coordinate system to
destination coordinate system. |
static Rectangle |
SwingUtilities.computeIntersection(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate an intersection of two rectangles without allocating a new rectangle Return dest. |
static Rectangle |
SwingUtilities.computeUnion(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate the union of two rectangles without allocating a new rectangle Return dest |
static Rectangle[] |
SwingUtilities.computeDifference(Rectangle rectA,
Rectangle rectB)
Convenience returning an array of rect representing the regions within rectA that do not overlap with rectB . |
Rectangle |
JScrollPane.getViewportBorderBounds()
Returns the bounds of the viewport border. |
Rectangle |
JWindow.AccessibleJWindow.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
Box.Filler.AccessibleBoxFiller.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
Box.AccessibleBox.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
JTabbedPane.getBoundsAt(int index)
Returns the tab bounds at index. |
Rectangle |
JDialog.AccessibleJDialog.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
CellRendererPane.AccessibleCellRendererPane.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
JTable.getCellRect(int row,
int column,
boolean includeSpacing)
Returns a rectangle locating the cell that lies at the intersection of row and column. |
Rectangle |
JTable.AccessibleJTable.AccessibleJTableCell.getBounds()
|
Rectangle |
JFrame.AccessibleJFrame.getBounds()
Gets the bounds of this object in the form of a Rectangle object. |
Rectangle |
JList.getCellBounds(int index1,
int index2)
Returns the bounds of the specified range of items in JList coordinates, null if index isn't valid. |
Rectangle |
JList.AccessibleJList.AccessibleJListChild.getBounds()
|
Methods in javax.swing with parameters of type Rectangle | |
void |
JComponent.scrollRectToVisible(Rectangle aRect)
Forwards the scrollRectToVisible() message to the JComponent's parent. |
Rectangle |
JComponent.getBounds(Rectangle rv)
Store the bounds of this component into "return value" rv and return rv. |
void |
JComponent.computeVisibleRect(Rectangle visibleRect)
Returns the Component's "visible rect rectangle" - the intersection of the visible rectangles for this component and all of its ancestors. |
void |
JComponent.repaint(Rectangle r)
Adds the specified region to the dirty region list if the component is showing. |
void |
JComponent.paintImmediately(Rectangle r)
Paint the specified region now. |
void |
JComponent.AccessibleJComponent.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
int |
JTree.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the amount to increment when scrolling. |
int |
JTree.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the amount for a block inrecment, which is the height or width of visibleRect , based on orientation . |
void |
JTree.AccessibleJTree.AccessibleJTreeNode.setBounds(Rectangle r)
|
protected void |
DefaultDesktopManager.setPreviousBounds(JInternalFrame f,
Rectangle r)
Stores the bounds of the component just before a maximize call. |
void |
JApplet.AccessibleJApplet.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
JTextField.scrollRectToVisible(Rectangle r)
Scrolls the field left or right. |
void |
JViewport.scrollRectToVisible(Rectangle contentRect)
Overridden to scroll the view so that Rectangle within the view becomes visible. |
protected boolean |
JViewport.computeBlit(int dx,
int dy,
Point blitFrom,
Point blitTo,
Dimension blitSize,
Rectangle blitPaint)
Computes the parameters for a blit where the backing store image currently contains oldLoc in the upper left hand corner and we're scrolling to newLoc. |
static boolean |
SwingUtilities.isRectangleContainingRectangle(Rectangle a,
Rectangle b)
Return true if a contains b |
static Rectangle |
SwingUtilities.convertRectangle(Component source,
Rectangle aRectangle,
Component destination)
Convert the rectangle aRectangle in source coordinate system to
destination coordinate system. |
static Rectangle |
SwingUtilities.computeIntersection(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate an intersection of two rectangles without allocating a new rectangle Return dest. |
static Rectangle |
SwingUtilities.computeUnion(int x,
int y,
int width,
int height,
Rectangle dest)
Convenience to calculate the union of two rectangles without allocating a new rectangle Return dest |
static Rectangle[] |
SwingUtilities.computeDifference(Rectangle rectA,
Rectangle rectB)
Convenience returning an array of rect representing the regions within rectA that do not overlap with rectB . |
static String |
SwingUtilities.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. |
static String |
SwingUtilities.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 void |
SwingUtilities.paintComponent(Graphics g,
Component c,
Container p,
Rectangle r)
Paint a component c on an abitrary graphics g in the specified rectangle, specifying a Rectangle object. |
void |
JWindow.AccessibleJWindow.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
int |
JTextArea.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. |
int |
Scrollable.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. |
int |
Scrollable.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. |
void |
Box.Filler.AccessibleBoxFiller.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
Box.AccessibleBox.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
JDialog.AccessibleJDialog.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
void |
CellRendererPane.paintComponent(Graphics g,
Component c,
Container p,
Rectangle r)
Calls this.paintComponent() with the rectangles x,y,width,height fields. |
void |
CellRendererPane.AccessibleCellRendererPane.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
int |
JTable.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the scroll increment that completely exposes one new row or column (depending on the orientation). |
int |
JTable.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns The visibleRect.height or visibleRect.width, depending on the table's orientation. |
void |
JTable.AccessibleJTable.AccessibleJTableCell.setBounds(Rectangle r)
|
void |
JFrame.AccessibleJFrame.setBounds(Rectangle r)
Sets the bounds of this object in the form of a Rectangle object. |
int |
JList.getScrollableUnitIncrement(Rectangle visibleRect,
int orientation,
int direction)
Horizontal scrolling: return the lists font size or 1 if the font is null. |
int |
JList.getScrollableBlockIncrement(Rectangle visibleRect,
int orientation,
int direction)
Returns the block increment amount. |
void |
JList.AccessibleJList.AccessibleJListChild.setBounds(Rectangle r)
|
Uses of Rectangle in javax.swing.border |
Methods in javax.swing.border that return Rectangle | |
Rectangle |
AbstractBorder.getInteriorRectangle(Component c,
int x,
int y,
int width,
int height)
This is a convience method that calls the static method. |
static Rectangle |
AbstractBorder.getInteriorRectangle(Component c,
Border b,
int x,
int y,
int width,
int height)
This method returns a rectangle using the arguements minus the insets of the border. |
Uses of Rectangle in javax.swing.plaf |
Methods in javax.swing.plaf that return Rectangle | |
abstract Rectangle |
TextUI.modelToView(JTextComponent t,
int pos)
Converts the given location in the model to a place in the view coordinate system. |
abstract Rectangle |
TextUI.modelToView(JTextComponent t,
int pos,
Position.Bias bias)
Converts the given location in the model to a place in the view coordinate system. |
abstract Rectangle |
ListUI.getCellBounds(JList list,
int index1,
int index2)
Returns the bounds of the specified item in JList coordinates, null if index isn't valid. |
abstract Rectangle |
TabbedPaneUI.getTabBounds(JTabbedPane pane,
int index)
|
abstract Rectangle |
TreeUI.getPathBounds(JTree tree,
TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. |
Uses of Rectangle in javax.swing.plaf.basic |
Subclasses of Rectangle in javax.swing.plaf.basic | |
static class |
BasicTextUI.BasicCaret
|
Fields in javax.swing.plaf.basic declared as Rectangle | |
protected Rectangle[] |
BasicTabbedPaneUI.rects
|
protected Rectangle |
BasicSliderUI.focusRect
|
protected Rectangle |
BasicSliderUI.contentRect
|
protected Rectangle |
BasicSliderUI.labelRect
|
protected Rectangle |
BasicSliderUI.tickRect
|
protected Rectangle |
BasicSliderUI.trackRect
|
protected Rectangle |
BasicSliderUI.thumbRect
|
protected Rectangle |
BasicScrollBarUI.thumbRect
|
protected Rectangle |
BasicScrollBarUI.trackRect
|
Methods in javax.swing.plaf.basic that return Rectangle | |
protected Rectangle |
BasicTextUI.getVisibleEditorRect()
Gets the allocation to give the root View. |
Rectangle |
BasicTextUI.modelToView(JTextComponent tc,
int pos)
Converts the given location in the model to a place in the view coordinate system. |
Rectangle |
BasicTextUI.modelToView(JTextComponent tc,
int pos,
Position.Bias bias)
Converts the given location in the model to a place in the view coordinate system. |
Rectangle |
BasicTabbedPaneUI.getTabBounds(JTabbedPane pane,
int i)
|
Rectangle |
BasicListUI.getCellBounds(JList list,
int index1,
int index2)
|
Rectangle |
BasicTreeUI.getPathBounds(JTree tree,
TreePath path)
Returns the Rectangle enclosing the label portion that the last item in path will be drawn into. |
Rectangle |
BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle size)
Responsible for getting the size of a particular node. |
protected Rectangle |
BasicScrollBarUI.getThumbBounds()
Return the current size/location of the thumb. |
protected Rectangle |
BasicScrollBarUI.getTrackBounds()
Return the current bounds of the track, i.e. |
protected Rectangle |
BasicComboPopup.computePopupBounds(int px,
int py,
int pw,
int ph)
|
protected Rectangle |
BasicComboBoxUI.rectangleForCurrentValue()
Returns the area that is reserved for drawing the currently selected item. |
Methods in javax.swing.plaf.basic with parameters of type Rectangle | |
protected void |
BasicTabbedPaneUI.paintTab(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect)
|
protected void |
BasicTabbedPaneUI.layoutLabel(int tabPlacement,
FontMetrics metrics,
int tabIndex,
String title,
Icon icon,
Rectangle tabRect,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
BasicTabbedPaneUI.paintIcon(Graphics g,
int tabPlacement,
int tabIndex,
Icon icon,
Rectangle iconRect,
boolean isSelected)
|
protected void |
BasicTabbedPaneUI.paintText(Graphics g,
int tabPlacement,
Font font,
FontMetrics metrics,
int tabIndex,
String title,
Rectangle textRect,
boolean isSelected)
|
protected void |
BasicTabbedPaneUI.paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
BasicListUI.paintCell(Graphics g,
int row,
Rectangle rowBounds,
ListCellRenderer cellRenderer,
ListModel dataModel,
ListSelectionModel selModel,
int leadIndex)
Paint one List cell: compute the relevant state, get the "rubber stamp" cell renderer component, and then use the CellRendererPane to paint it. |
protected void |
BasicSliderUI.paintMinorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
BasicSliderUI.paintMajorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
BasicSliderUI.paintMinorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
BasicSliderUI.paintMajorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
BasicButtonUI.paintIcon(Graphics g,
JComponent c,
Rectangle iconRect)
|
protected void |
BasicButtonUI.paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text)
|
protected void |
BasicButtonUI.paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
|
protected void |
BasicToggleButtonUI.paintIcon(Graphics g,
AbstractButton b,
Rectangle iconRect)
|
protected void |
BasicToggleButtonUI.paintText(Graphics g,
AbstractButton b,
Rectangle textRect,
String text)
|
protected void |
BasicToggleButtonUI.paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
|
protected void |
BasicRadioButtonUI.paintFocus(Graphics g,
Rectangle textRect,
Dimension size)
|
protected void |
BasicTreeUI.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 void |
BasicTreeUI.paintVerticalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path)
Paints the vertical part of the leg. |
protected void |
BasicTreeUI.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 void |
BasicTreeUI.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. |
Rectangle |
BasicTreeUI.NodeDimensionsHandler.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle size)
Responsible for getting the size of a particular node. |
protected void |
BasicScrollBarUI.paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
|
protected void |
BasicScrollBarUI.paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
|
protected String |
BasicLabelUI.layoutCL(JLabel label,
FontMetrics fontMetrics,
String text,
Icon icon,
Rectangle viewR,
Rectangle iconR,
Rectangle textR)
Forwards the call to SwingUtilities.layoutCompoundLabel(). |
void |
BasicComboBoxUI.paintCurrentValue(Graphics g,
Rectangle bounds,
boolean hasFocus)
Paints the currently selected item. |
void |
BasicComboBoxUI.paintCurrentValueBackground(Graphics g,
Rectangle bounds,
boolean hasFocus)
Paints the background of the currently selected item. |
Uses of Rectangle in javax.swing.plaf.metal |
Methods in javax.swing.plaf.metal with parameters of type Rectangle | |
protected void |
MetalTabbedPaneUI.paintFocusIndicator(Graphics g,
int tabPlacement,
Rectangle[] rects,
int tabIndex,
Rectangle iconRect,
Rectangle textRect,
boolean isSelected)
|
protected void |
MetalToggleButtonUI.paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text)
|
protected void |
MetalToggleButtonUI.paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
|
protected void |
MetalScrollBarUI.paintTrack(Graphics g,
JComponent c,
Rectangle trackBounds)
|
protected void |
MetalScrollBarUI.paintThumb(Graphics g,
JComponent c,
Rectangle thumbBounds)
|
protected void |
MetalRadioButtonUI.paintFocus(Graphics g,
Rectangle t,
Dimension d)
|
protected void |
MetalSliderUI.paintMinorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
MetalSliderUI.paintMajorTickForHorizSlider(Graphics g,
Rectangle tickBounds,
int x)
|
protected void |
MetalSliderUI.paintMinorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
MetalSliderUI.paintMajorTickForVertSlider(Graphics g,
Rectangle tickBounds,
int y)
|
protected void |
MetalButtonUI.paintFocus(Graphics g,
AbstractButton b,
Rectangle viewRect,
Rectangle textRect,
Rectangle iconRect)
|
protected void |
MetalButtonUI.paintText(Graphics g,
JComponent c,
Rectangle textRect,
String text)
|
protected void |
MetalTreeUI.paintVerticalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
TreePath path)
|
protected void |
MetalTreeUI.paintHorizontalPartOfLeg(Graphics g,
Rectangle clipBounds,
Insets insets,
Rectangle bounds,
TreePath path,
int row,
boolean isExpanded,
boolean hasBeenExpanded,
boolean isLeaf)
|
Uses of Rectangle in javax.swing.plaf.multi |
Methods in javax.swing.plaf.multi that return Rectangle | |
Rectangle |
MultiTabbedPaneUI.getTabBounds(JTabbedPane a,
int b)
Call getTabBounds on each UI handled by this MultiUI. |
Rectangle |
MultiTextUI.modelToView(JTextComponent a,
int b)
Call modelToView on each UI handled by this MultiUI. |
Rectangle |
MultiTextUI.modelToView(JTextComponent t,
int pos,
Position.Bias bias)
Converts the given location in the model to a place in the view coordinate system. |
Rectangle |
MultiListUI.getCellBounds(JList a,
int b,
int c)
Call getCellBounds on each UI handled by this MultiUI. |
Rectangle |
MultiTreeUI.getPathBounds(JTree a,
TreePath b)
Call getPathBounds on each UI handled by this MultiUI. |
Uses of Rectangle in javax.swing.table |
Methods in javax.swing.table that return Rectangle | |
Rectangle |
JTableHeader.getHeaderRect(int columnIndex)
Returns the rectangle containing the header tile at columnIndex. |
Rectangle |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBounds()
|
Methods in javax.swing.table with parameters of type Rectangle | |
void |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setBounds(Rectangle r)
|
Uses of Rectangle in javax.swing.text |
Subclasses of Rectangle in javax.swing.text | |
class |
DefaultCaret
A default implementation of Caret. |
Methods in javax.swing.text that return Rectangle | |
Rectangle |
JTextComponent.modelToView(int pos)
Converts the given location in the model to a place in the view coordinate system. |
Rectangle |
JTextComponent.AccessibleJTextComponent.getCharacterBounds(int i)
Determines the bounding box of the character at the given index into the string. |
protected Rectangle |
CompositeView.getInsideAllocation(Shape a)
Translates the immutable allocation given to the view to a mutable allocation that represents the interior allocation (i.e. |
Methods in javax.swing.text with parameters of type Rectangle | |
int |
JTextComponent.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. |
int |
JTextComponent.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. |
protected void |
DefaultCaret.damage(Rectangle r)
Damages the area surrounding the caret to cause it to be repainted in a new location. |
protected void |
DefaultCaret.adjustVisibility(Rectangle nloc)
Scrolls the associated view (if necessary) to make the caret visible. |
protected abstract boolean |
CompositeView.isBefore(int x,
int y,
Rectangle alloc)
Tests whether a point lies before the rectangle range. |
protected abstract boolean |
CompositeView.isAfter(int x,
int y,
Rectangle alloc)
Tests whether a point lies after the rectangle range. |
protected abstract View |
CompositeView.getViewAtPoint(int x,
int y,
Rectangle alloc)
Fetches the child view at the given point. |
protected abstract void |
CompositeView.childAllocation(int index,
Rectangle a)
Returns the allocation for a given child. |
protected View |
CompositeView.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
protected void |
BoxView.paintChild(Graphics g,
Rectangle alloc,
int index)
Paints a child. |
protected boolean |
BoxView.isBefore(int x,
int y,
Rectangle innerAlloc)
Determines if a point falls before an allocated region. |
protected boolean |
BoxView.isAfter(int x,
int y,
Rectangle innerAlloc)
Determines if a point falls after an allocated region. |
protected View |
BoxView.getViewAtPoint(int x,
int y,
Rectangle alloc)
Fetches the child view at the given point. |
protected void |
BoxView.childAllocation(int index,
Rectangle alloc)
Allocates a region for a child view. |
protected View |
TableView.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
protected View |
TableView.TableRow.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
protected View |
ParagraphView.getViewAtPosition(int pos,
Rectangle a)
Fetches the child view that represents the given position in the model. |
Uses of Rectangle in javax.swing.text.html |
Methods in javax.swing.text.html with parameters of type Rectangle | |
protected void |
ListView.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 Rectangle | |
abstract Rectangle |
AbstractLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
protected Rectangle |
AbstractLayoutCache.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle placeIn)
Returns, by reference in size, the size needed to reprensent value. |
abstract Rectangle |
AbstractLayoutCache.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. |
Rectangle |
FixedHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
Rectangle |
VariableHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns the Rectangle enclosing the label portion that the item identified by row will be drawn into. |
Methods in javax.swing.tree with parameters of type Rectangle | |
int |
AbstractLayoutCache.getPreferredWidth(Rectangle bounds)
Returns the preferred width for the passed in region. |
abstract Rectangle |
AbstractLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
protected Rectangle |
AbstractLayoutCache.getNodeDimensions(Object value,
int row,
int depth,
boolean expanded,
Rectangle placeIn)
Returns, by reference in size, the size needed to reprensent value. |
abstract Rectangle |
AbstractLayoutCache.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. |
Rectangle |
FixedHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns a rectangle giving the bounds needed to draw path. |
Rectangle |
VariableHeightLayoutCache.getBounds(TreePath path,
Rectangle placeIn)
Returns the Rectangle enclosing the label portion that the item identified by row will be drawn into. |
int |
VariableHeightLayoutCache.getPreferredWidth(Rectangle bounds)
Returns the preferred width and height for the region in visibleRegion . |
|
JavaTM 2 Platform Standard Edition |
|||||||||
PREV NEXT | FRAMES NO FRAMES |