Uses of Class
java.awt.Rectangle
-
Packages that use Rectangle 软件包 描述 com.sun.java.accessibility.util 提供组成Java辅助功能实用程序的接口和类的集合。java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.event 提供用于处理AWT组件触发的不同类型事件的接口和类。java.awt.font 提供与字体相关的类和界面。java.awt.geom 提供用于定义和执行与二维几何相关的对象的操作的Java 2D类。java.awt.im 提供输入法框架的类和接口。java.awt.im.spi 提供可以开发可以与任何Java运行时环境一起使用的输入法的接口。java.awt.image 提供创建和修改图像的类。java.beans 包含与开发 bean相关的类 - 基于JavaBeans架构的组件。javax.accessibility 定义用户界面组件与提供对这些组件的访问的辅助技术之间的合同。javax.imageio Java Image I / O API的主要包。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。javax.swing.border 提供用于绘制Swing组件周围特殊边框的类和接口。javax.swing.plaf 提供一个接口和许多抽象类,Swing用来提供其可插拔的外观和感觉功能。javax.swing.plaf.basic 提供根据“基本”外观构建的用户界面对象。javax.swing.plaf.metal 提供根据Java外观构建的用户界面对象(一旦代号为 Metal ),这是默认的外观和感觉。javax.swing.plaf.multi 提供组合两种或多种外观和感觉的用户界面对象。javax.swing.plaf.synth 合成是一种可以让所有绘画委托的外观和感觉。javax.swing.table 提供处理javax.swing.JTable
类和接口。javax.swing.text 提供处理可编辑和不可编辑文本组件的类和接口。javax.swing.text.html 提供类HTMLEditorKit
和支持类创建HTML文本编辑器。javax.swing.tree 提供处理javax.swing.JTree
类和接口。 -
-
Uses of Rectangle in com.sun.java.accessibility.util
Methods in com.sun.java.accessibility.util that return Rectangle Modifier and Type 方法 描述 Rectangle
Translator. getBounds()
返回此对象的当前边界。Methods in com.sun.java.accessibility.util with parameters of type Rectangle Modifier and Type 方法 描述 void
Translator. setBounds(Rectangle r)
设置此对象的当前边界。 -
Uses of Rectangle in java.awt
Fields in java.awt declared as Rectangle Modifier and Type Field 描述 protected Rectangle
Polygon. bounds
这个边界Polygon
。Methods in java.awt that return Rectangle Modifier and Type 方法 描述 Rectangle
Component. bounds()
已过时。从JDK 1.1版开始,替换为getBounds()
。Rectangle
Polygon. getBoundingBox()
已过时。从JDK 1.1版开始,替换为getBounds()
。Rectangle
Component.AccessibleAWTComponent. getBounds()
以Rectangle对象的形式获取此对象的边界。Rectangle
Component. getBounds()
以Rectangle
对象的形式获取此组件的边界。Rectangle
Component. getBounds(Rectangle rv)
将此组件的边界存储到“返回值” rv并返回 rv 。abstract Rectangle
GraphicsConfiguration. getBounds()
返回设备坐标中的GraphicsConfiguration
的边界。Rectangle
List.AccessibleAWTList.AccessibleAWTListChild. getBounds()
以Rectangle对象的形式获取此对象的边界。Rectangle
MenuComponent.AccessibleAWTMenuComponent. getBounds()
以Rectangle
对象的形式获取此对象的边界。Rectangle
Polygon. getBounds()
获取这个Polygon
的边框。Rectangle
Rectangle. getBounds()
获取边界Rectangle
如此Rectangle
。Rectangle
Shape. getBounds()
返回一个整数Rectangle
完全包围Shape
。Rectangle
SplashScreen. getBounds()
返回启动屏幕窗口的边界为270466139404048 。Rectangle
TextComponent.AccessibleAWTTextComponent. getCharacterBounds(int i)
将给定索引处的字符的边框确定为字符串。abstract Rectangle
Graphics. getClipBounds()
返回当前裁剪区域的边界矩形。Rectangle
Graphics. getClipBounds(Rectangle r)
返回当前裁剪区域的边界矩形。Rectangle
Graphics. getClipRect()
已过时。从JDK 1.1版开始,由getClipBounds()
替代。Rectangle
Frame. getMaximizedBounds()
获得此框架的最大化边界。Rectangle
GraphicsEnvironment. getMaximumWindowBounds()
返回居中Windows的最大边界。Rectangle
Rectangle. intersection(Rectangle r)
计算Rectangle
与指定的Rectangle
。Rectangle
Rectangle. union(Rectangle r)
计算Rectangle
与指定的Rectangle
。Methods in java.awt with parameters of type Rectangle Modifier and Type 方法 描述 void
Rectangle. add(Rectangle r)
添加一个Rectangle
这个Rectangle
。protected void
GridBagLayout. adjustForGravity(GridBagConstraints constraints, Rectangle r)
根据约束几何和焊盘,将x,y,width和height字段调整为正确的值。protected void
GridBagLayout. AdjustForGravity(GridBagConstraints constraints, Rectangle r)
根据约束几何和焊盘,将x,y,width和height字段调整为正确的值。boolean
Rectangle. contains(Rectangle r)
检查这个Rectangle
是否完全包含指定的Rectangle
。PaintContext
Color. createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
创建并返回一个用于生成纯色字段模式的PaintContext
。PaintContext
GradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
创建并返回一个PaintContext
,用于生成线性颜色渐变模式。PaintContext
LinearGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)
创建并返回一个用于生成线性颜色渐变模式的PaintContext
。PaintContext
Paint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
创建并返回一个用于生成颜色模式的PaintContext
。PaintContext
RadialGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)
创建并返回一个用于生成圆形径向颜色渐变图案的PaintContext
。PaintContext
TexturePaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
创建并返回一个用于生成平铺图像模式的PaintContext
。MultiResolutionImage
Robot. createMultiResolutionScreenCapture(Rectangle screenRect)
创建包含从屏幕读取的像素的图像。BufferedImage
Robot. createScreenCapture(Rectangle screenRect)
创建包含从屏幕读取的像素的图像。Rectangle
Component. getBounds(Rectangle rv)
将此组件的边界存储到“返回值” rv并返回 rv 。Rectangle
Graphics. getClipBounds(Rectangle r)
返回当前裁剪区域的边界矩形。abstract boolean
Graphics2D. hit(Rectangle rect, Shape s, boolean onStroke)
检查指定的Shape是否与设备空间中指定的Shape
相交。Rectangle
Rectangle. intersection(Rectangle r)
计算Rectangle
与指定的Rectangle
。boolean
Rectangle. intersects(Rectangle r)
确定此Rectangle
和指定的Rectangle
相交。void
Component.AccessibleAWTComponent. setBounds(Rectangle r)
以Rectangle
对象的形式设置此对象的边界。void
Component. setBounds(Rectangle r)
移动并调整此组件的大小以符合新的边框矩形r
。void
List.AccessibleAWTList.AccessibleAWTListChild. setBounds(Rectangle r)
以Rectangle对象的形式设置此对象的边界。void
MenuComponent.AccessibleAWTMenuComponent. setBounds(Rectangle r)
以Rectangle
对象的形式设置此对象的边界。void
Rectangle. setBounds(Rectangle r)
设置此Rectangle
的边界Rectangle
以匹配指定的Rectangle
。void
Window. setBounds(Rectangle r)
移动并调整此组件的大小以符合新的边框矩形r
。void
Frame. setMaximizedBounds(Rectangle bounds)
设置此框架的最大化边界。Rectangle
Rectangle. union(Rectangle r)
计算Rectangle
与指定的Rectangle
。Constructors in java.awt with parameters of type Rectangle Constructor 描述 Rectangle(Rectangle r)
构造新的Rectangle
,初始化以匹配指定的Rectangle
。 -
Uses of Rectangle in java.awt.event
Methods in java.awt.event that return Rectangle Modifier and Type 方法 描述 Rectangle
PaintEvent. getUpdateRect()
返回表示需要重绘的区域的矩形,以响应此事件。Methods in java.awt.event with parameters of type Rectangle Modifier and Type 方法 描述 void
PaintEvent. setUpdateRect(Rectangle updateRect)
设置表示需要重新绘制的区域的矩形以响应此事件。Constructors in java.awt.event with parameters of type Rectangle Constructor 描述 PaintEvent(Component source, int id, Rectangle updateRect)
使用指定的源组件和类型构造一个PaintEvent
对象。 -
Uses of Rectangle in java.awt.font
Methods in java.awt.font that return Rectangle Modifier and Type 方法 描述 Rectangle
GlyphVector. getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)
当这个返回index字形的像素边界GlyphVector
在渲染Graphics
给定FontRenderContext
在给定位置。Rectangle
GlyphVector. getPixelBounds(FontRenderContext renderFRC, float x, float y)
在给定位置的给定FontRenderContext
的图形中渲染时,返回此GlyphVector
的像素边界。Rectangle
TextLayout. getPixelBounds(FontRenderContext frc, float x, float y)
在给定位置的给定FontRenderContext
的图形中渲染时,返回TextLayout
的像素边界。 -
Uses of Rectangle in java.awt.geom
Methods in java.awt.geom that return Rectangle Modifier and Type 方法 描述 Rectangle
Area. getBounds()
返回边界Rectangle
完全包围此Area
。Rectangle
CubicCurve2D. getBounds()
返回一个整数Rectangle
完全包围Shape
。Rectangle
Line2D. getBounds()
返回一个整数Rectangle
完全包围Shape
。Rectangle
Path2D. getBounds()
返回一个整数Rectangle
完全包围Shape
。Rectangle
QuadCurve2D. getBounds()
返回一个整数Rectangle
完全包围Shape
。Rectangle
RectangularShape. getBounds()
返回一个整数Rectangle
完全包围Shape
。 -
Uses of Rectangle in java.awt.im
Methods in java.awt.im that return Rectangle Modifier and Type 方法 描述 Rectangle
InputMethodRequests. getTextLocation(TextHitInfo offset)
获取当前组合文本中指定偏移量的位置,或者在提交文本中获取选择的位置。 -
Uses of Rectangle in java.awt.im.spi
Methods in java.awt.im.spi with parameters of type Rectangle Modifier and Type 方法 描述 void
InputMethod. notifyClientWindowChange(Rectangle bounds)
通知客户端窗口位置或状态的这种输入方式的更改。 -
Uses of Rectangle in java.awt.image
Methods in java.awt.image that return Rectangle Modifier and Type 方法 描述 Rectangle
Raster. getBounds()
返回此栅格的边界矩形。Methods in java.awt.image with parameters of type Rectangle Modifier and Type 方法 描述 WritableRaster
Raster. createCompatibleWritableRaster(Rectangle rect)
创建一个兼容的WritableRaster,它具有由rect指定的位置(minX,minY)和size(width,height),一个新的SampleModel和一个新的初始化的DataBuffer。Raster
BufferedImage. getData(Rectangle rect)
计算并返回BufferedImage
的任意区域。Raster
RenderedImage. getData(Rectangle rect)
计算并返回RenderedImage的任意区域。Constructors in java.awt.image with parameters of type Rectangle Constructor 描述 Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
使用给定的SampleModel,DataBuffer和父构造栅格。WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
使用给定的SampleModel,DataBuffer和父构造一个WritableRaster。 -
Uses of Rectangle in java.beans
Methods in java.beans with parameters of type Rectangle Modifier and Type 方法 描述 void
PropertyEditor. paintValue(Graphics gfx, Rectangle box)
将值的表示绘制到屏幕不动产的给定区域。void
PropertyEditorSupport. paintValue(Graphics gfx, Rectangle box)
将值的表示绘制到屏幕不动产的给定区域。 -
Uses of Rectangle in javax.accessibility
Methods in javax.accessibility that return Rectangle Modifier and Type 方法 描述 Rectangle
AccessibleComponent. getBounds()
以Rectangle
对象的形式获取此对象的边界。Rectangle
AccessibleText. getCharacterBounds(int i)
将给定索引处的字符的边框确定为字符串。Rectangle
AccessibleExtendedText. getTextBounds(int startIndex, int endIndex)
返回两个索引之间文本的边界矩形。Methods in javax.accessibility with parameters of type Rectangle Modifier and Type 方法 描述 void
AccessibleComponent. setBounds(Rectangle r)
以Rectangle
对象的形式设置此对象的边界。 -
Uses of Rectangle in javax.imageio
Fields in javax.imageio declared as Rectangle Modifier and Type Field 描述 protected Rectangle
IIOParam. sourceRegion
源区域,如果没有设置,null
。Methods in javax.imageio that return Rectangle Modifier and Type 方法 描述 Rectangle
IIOParam. getSourceRegion()
返回要使用的源区域。protected static Rectangle
ImageReader. getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight)
读者可以使用一种实用方法来计算应该读取的源图像的区域,同时考虑到所提供的ImageReadParam
中的任何源区域和子采样偏移设置。Methods in javax.imageio with parameters of type Rectangle Modifier and Type 方法 描述 protected static void
ImageReader. computeRegions(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)
计算感兴趣的源区域和目标区域,将源图像的宽度和高度,可选的目标图像和可选的ImageReadParam
考虑在内。void
ImageWriter. prepareReplacePixels(int imageIndex, Rectangle region)
准备作者处理一系列对replacePixels
方法的电话。void
IIOParam. setSourceRegion(Rectangle sourceRegion)
设置感兴趣的源区域。 -
Uses of Rectangle in javax.swing
Methods in javax.swing that return Rectangle Modifier and Type 方法 描述 static Rectangle
SwingUtilities. calculateInnerArea(JComponent c, Rectangle r)
存储r
指定组件的r
区域的位置和大小,并返回r
。static Rectangle[]
SwingUtilities. computeDifference(Rectangle rectA, Rectangle rectB)
方便返回一组rectA
,表示rectA
内与rectB
不重叠的rectB
。static Rectangle
SwingUtilities. computeIntersection(int x, int y, int width, int height, Rectangle dest)
方便计算两个矩形的交点,而不分配一个新的矩形。static Rectangle
SwingUtilities. computeUnion(int x, int y, int width, int height, Rectangle dest)
计算两个矩形的并集而不分配新矩形的便捷方法。static Rectangle
SwingUtilities. convertRectangle(Component source, Rectangle aRectangle, Component destination)
将source
坐标系中的矩形aRectangle
转换为destination
坐标系。Rectangle
JComponent. getBounds(Rectangle rv)
将此组件的边界存储为“返回值”rv
并返回rv
。Rectangle
JList.AccessibleJList.AccessibleJListChild. getBounds()
Rectangle
JTable.AccessibleJTable.AccessibleJTableCell. getBounds()
Rectangle
JTree.AccessibleJTree.AccessibleJTreeNode. getBounds()
Rectangle
JTabbedPane. getBoundsAt(int index)
在index
返回标签边界。protected Rectangle
DefaultDesktopManager. getBoundsForIconOf(JInternalFrame f)
iconifyFrame()
代码调用这个来确定desktopIcon的正确边界。Rectangle
JList. getCellBounds(int index0, int index1)
返回列表坐标系中由两个索引指定的单元格范围的边界矩形。Rectangle
JTable. getCellRect(int row, int column, boolean includeSpacing)
返回位于row
和column
交点处的单元格的矩形。Rectangle
AbstractButton.AccessibleAbstractButton. getCharacterBounds(int i)
将给定索引处的字符的边框确定为字符串。Rectangle
JLabel.AccessibleJLabel. getCharacterBounds(int i)
返回字符串中给定索引处字符的边界框。Rectangle
JSpinner.AccessibleJSpinner. getCharacterBounds(int i)
将给定索引处的字符的边框确定为字符串。Rectangle
ProgressMonitor.AccessibleProgressMonitor. getCharacterBounds(int i)
将给定索引处的字符的边框确定为字符串。Rectangle
DebugGraphics. getClipBounds()
覆盖Graphics.getClipBounds
。Rectangle
RepaintManager. getDirtyRegion(JComponent aComponent)
返回组件当前的脏区域。static Rectangle
SwingUtilities. getLocalBounds(Component aComponent)
返回组件aComponent
的矩形(0,0,bounds.width,bounds.height)Rectangle
JInternalFrame. getNormalBounds()
如果JInternalFrame
未处于最大化状态,则返回getBounds()
; 否则,返回JInternalFrame
将被还原的范围。Rectangle
JTree. getPathBounds(TreePath path)
返回指定节点将被绘制的Rectangle
。protected Rectangle
DefaultDesktopManager. getPreviousBounds(JInternalFrame f)
在组件最大化之前获取组件的正常范围。Rectangle
JTree. getRowBounds(int row)
返回指定行中的节点被绘制的Rectangle
。Rectangle
JScrollPane. getViewportBorderBounds()
返回视口边框的边界。Rectangle
ScrollPaneLayout. getViewportBorderBounds(JScrollPane scrollpane)
已过时。截至JDK版本的Swing1.1由JScrollPane.getViewportBorderBounds()
替换。Rectangle
JViewport. getViewRect()
返回原点为getViewPosition
,大小为getExtentSize
。Rectangle
JComponent. getVisibleRect()
返回Component
的“可见矩形” - 该组件的可见矩形,new Rectangle(0, 0, getWidth(), getHeight())
及其所有祖先的可见矩形的交集。Methods in javax.swing with parameters of type Rectangle Modifier and Type 方法 描述 static Rectangle
SwingUtilities. calculateInnerArea(JComponent c, Rectangle r)
存储r
指定组件的r
区域的位置和大小,并返回r
。protected boolean
JViewport. computeBlit(int dx, int dy, Point blitFrom, Point blitTo, Dimension blitSize, Rectangle blitPaint)
计算一个blit的参数,其中后备存储图像当前包含在左上角的oldLoc
,并且我们滚动到newLoc
。static Rectangle[]
SwingUtilities. computeDifference(Rectangle rectA, Rectangle rectB)
方便返回一个rectA
数组,表示rectA
中与rectB
不重叠的rectB
。static Rectangle
SwingUtilities. computeIntersection(int x, int y, int width, int height, Rectangle dest)
方便计算两个矩形的交点,而不分配一个新的矩形。static Rectangle
SwingUtilities. computeUnion(int x, int y, int width, int height, Rectangle dest)
计算两个矩形的并集而不分配新矩形的便捷方法。void
JComponent. computeVisibleRect(Rectangle visibleRect)
返回Component
的“可见矩形矩形” - 该组件的可见矩形与其所有祖先的交集。static Rectangle
SwingUtilities. convertRectangle(Component source, Rectangle aRectangle, Component destination)
将source
坐标系中的矩形aRectangle
转换为destination
坐标系。Rectangle
JComponent. getBounds(Rectangle rv)
将此组件的边界存储为“返回值”rv
并返回rv
。int
JLayer. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回滚动增量,这是显示逻辑行或列的组件所必需的,以便根据方向的值完全暴露一个行或列的块。int
JList. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回要滚动以显示下一个或上一个块的距离。int
JTable. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回visibleRect.height
或visibleRect.width
,具体取决于该表的方向。int
JTree. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回块增量,这是高度或宽度的量visibleRect
,基于orientation
。int
Scrollable. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应计算将根据取向值完全暴露一行行或列的滚动增量。int
JLayer. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
返回滚动增量,这是显示逻辑行或列的组件所必需的,以便根据方向的值完全暴露一个新行或列。int
JList. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
返回滚动的距离以显示下一行或上一行(垂直滚动)或列(用于水平滚动)。int
JTable. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
返回完全暴露一个新行或列的滚动增量(以像素为单位)(取决于方向)。int
JTextArea. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应计算将根据取向值完全暴露一个新行或列的滚动增量。int
JTree. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
返回滚动时增加的量。int
Scrollable. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应计算将根据取向值完全暴露一个新行或列的滚动增量。static boolean
SwingUtilities. isRectangleContainingRectangle(Rectangle a, Rectangle b)
返回true
如果@ {代码}包含b
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)
计算并返回图标原点的位置,文本基线的原点位置以及复合标签字符串的可能剪切版本。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)
计算并返回图标原点的位置,文本基线的原点位置以及复合标签字符串的可能剪切版本。void
CellRendererPane. paintComponent(Graphics g, Component c, Container p, Rectangle r)
调用this.paintComponent()与矩形x,y,width,height字段。static void
SwingUtilities. paintComponent(Graphics g, Component c, Container p, Rectangle r)
绘制一个组件到指定的Graphics
。void
JComponent. paintImmediately(Rectangle r)
现在涂漆指定区域。void
DefaultListCellRenderer. repaint(Rectangle r)
由于性能原因而被覆盖。void
JComponent. repaint(Rectangle r)
如果组件显示,则将指定的区域添加到脏区列表。void
JComponent. scrollRectToVisible(Rectangle aRect)
向JComponent
的父母转发scrollRectToVisible()
消息。void
JTextField. scrollRectToVisible(Rectangle r)
向左或向右滚动字段。void
JViewport. scrollRectToVisible(Rectangle contentRect)
滚动视图,使视图内的Rectangle
变得可见。void
JList.AccessibleJList.AccessibleJListChild. setBounds(Rectangle r)
void
JTable.AccessibleJTable.AccessibleJTableCell. setBounds(Rectangle r)
void
JTree.AccessibleJTree.AccessibleJTreeNode. setBounds(Rectangle r)
void
JInternalFrame. setNormalBounds(Rectangle r)
设置此内部框架的正常范围,该内部框架将从其最大化状态恢复到的边界。protected void
DefaultDesktopManager. setPreviousBounds(JInternalFrame f, Rectangle r)
在最大化调用之前存储组件的边界。 -
Uses of Rectangle in javax.swing.border
Methods in javax.swing.border that return Rectangle Modifier and Type 方法 描述 Rectangle
AbstractBorder. getInteriorRectangle(Component c, int x, int y, int width, int height)
这种方便方法调用静态方法。static Rectangle
AbstractBorder. getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
使用参数减去边框的插入返回一个矩形。 -
Uses of Rectangle in javax.swing.plaf
Methods in javax.swing.plaf that return Rectangle Modifier and Type 方法 描述 abstract Rectangle
ListUI. getCellBounds(JList<?> list, int index1, int index2)
返回给定列表的坐标系中由两个索引指定的单元格范围的边界矩形。abstract Rectangle
TreeUI. getPathBounds(JTree tree, TreePath path)
返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。abstract Rectangle
TabbedPaneUI. getTabBounds(JTabbedPane pane, int index)
返回Tab边界的矩形。abstract Rectangle
TextUI. modelToView(JTextComponent t, int pos)
abstract Rectangle
TextUI. modelToView(JTextComponent t, int pos, Position.Bias bias)
-
Uses of Rectangle in javax.swing.plaf.basic
Subclasses of Rectangle in javax.swing.plaf.basic Modifier and Type Class 描述 static class
BasicTextUI.BasicCaret
接口默认实现Caret
。Fields in javax.swing.plaf.basic declared as Rectangle Modifier and Type Field 描述 protected Rectangle
BasicProgressBarUI. boxRect
用于保存弹出框(由getBox返回)的位置和大小以进行绘制。protected Rectangle
BasicTabbedPaneUI. calcRect
用于一般布局计算的矩形,以避免构建许多新的矩形。protected Rectangle
BasicSliderUI. contentRect
内容矩形protected Rectangle
BasicSliderUI. focusRect
焦点矩形protected Rectangle
BasicSliderUI. labelRect
标签矩形protected Rectangle[]
BasicTabbedPaneUI. rects
标签protected Rectangle
BasicScrollBarUI. thumbRect
拇指矩形protected Rectangle
BasicSliderUI. thumbRect
拇指矩形protected Rectangle
BasicSliderUI. tickRect
勾选矩形protected Rectangle
BasicScrollBarUI. trackRect
跟踪矩形protected Rectangle
BasicSliderUI. trackRect
跟踪矩形Methods in javax.swing.plaf.basic that return Rectangle Modifier and Type 方法 描述 protected Rectangle
BasicComboPopup. computePopupBounds(int px, int py, int pw, int ph)
基于组合框位置和封闭屏幕边界,计算组合框的弹出部分的位置和大小。protected Rectangle
BasicProgressBarUI. getBox(Rectangle r)
存储将在r
为当前动画索引绘制的弹跳框的位置和大小,并返回r
。Rectangle
BasicListUI. getCellBounds(JList<?> list, int index1, int index2)
返回给定列表的坐标系中由两个索引指定的单元格范围的边界矩形。protected Rectangle
BasicTreeUI. getDropLineRect(JTree.DropLocation loc)
返回下拉线的无界框。Rectangle
BasicTreeUI.NodeDimensionsHandler. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)
负责获取特定节点的大小。Rectangle
BasicTreeUI. getPathBounds(JTree tree, TreePath path)
返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。protected Rectangle
BasicTabbedPaneUI. getTabBounds(int tabIndex, Rectangle dest)
返回JTabbedPane组件坐标空间中指定选项卡的边界。Rectangle
BasicTabbedPaneUI. getTabBounds(JTabbedPane pane, int i)
返回指定选项卡索引的边界。protected Rectangle
BasicScrollBarUI. getThumbBounds()
返回当前的大小/位置。protected Rectangle
BasicScrollBarUI. getTrackBounds()
返回轨道的当前边界,即增量和减量按钮之间的空间,减去插值。protected Rectangle
BasicTextUI. getVisibleEditorRect()
获取分配给根视图。Rectangle
BasicTextUI. modelToView(JTextComponent tc, int pos)
Rectangle
BasicTextUI. modelToView(JTextComponent tc, int pos, Position.Bias bias)
protected Rectangle
BasicComboBoxUI. rectangleForCurrentValue()
返回保留用于绘制当前选定项目的区域。Methods in javax.swing.plaf.basic with parameters of type Rectangle Modifier and Type 方法 描述 protected Rectangle
BasicProgressBarUI. getBox(Rectangle r)
存储将在r
为当前动画索引绘制的弹跳框的位置和大小,并返回r
。Rectangle
BasicTreeUI.NodeDimensionsHandler. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)
负责获取特定节点的大小。protected Rectangle
BasicTabbedPaneUI. getTabBounds(int tabIndex, Rectangle dest)
返回JTabbedPane组件坐标空间中指定选项卡的边界。protected String
BasicLabelUI. layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
转发给SwingUtilities.layoutCompoundLabel()的调用。protected void
BasicTabbedPaneUI. layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)
Laysout一个标签。protected void
BasicListUI. paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex)
绘制一个列表单元格:计算相关状态,获取“橡皮图章”单元格渲染器组件,然后使用CellRendererPane
进行绘制。void
BasicComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
绘制当前选定的项目。void
BasicComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
绘制当前所选项目的背景。protected void
BasicTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
绘制一行的展开(切换)部分。protected void
BasicButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
涂一个专注的按钮。protected void
BasicRadioButtonUI. paintFocus(Graphics g, Rectangle textRect, Dimension size)
油漆聚焦单选按钮。protected void
BasicTabbedPaneUI. paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
绘制焦点指示器。protected void
BasicTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
涂抹腿部的水平部分。protected void
BasicButtonUI. paintIcon(Graphics g, JComponent c, Rectangle iconRect)
绘制当前按钮的图标。protected void
BasicTabbedPaneUI. paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)
画一个图标。protected void
BasicToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
在指定位置绘制图标。protected void
BasicSliderUI. paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
绘制水平滑块的主要刻度。protected void
BasicSliderUI. paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
绘制垂直滑块的主要刻度。protected void
BasicSliderUI. paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
为水平滑块绘制小刻度。protected void
BasicSliderUI. paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
为垂直滑块绘制小刻度。protected void
BasicTreeUI. paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
绘制一行的渲染器部分。protected void
BasicTabbedPaneUI. paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)
画一个标签。protected void
BasicButtonUI. paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)
呈现当前按钮文本的方法。protected void
BasicButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)
呈现当前按钮文本的方法。protected void
BasicMenuItemUI. paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
呈现当前菜单项的文本。protected void
BasicTabbedPaneUI. paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)
油漆文字。protected void
BasicScrollBarUI. paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
画拇指protected void
BasicScrollBarUI. paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
画轨道。protected void
BasicTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
涂上腿部的垂直部分。 -
Uses of Rectangle in javax.swing.plaf.metal
Methods in javax.swing.plaf.metal with parameters of type Rectangle Modifier and Type 方法 描述 void
MetalComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
如果需要,可以涂抹当前选择的项目。void
MetalComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)
如果需要,可以画出当前所选项目的背景。protected void
MetalButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
protected void
MetalRadioButtonUI. paintFocus(Graphics g, Rectangle t, Dimension d)
protected void
MetalToggleButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)
protected void
MetalTabbedPaneUI. paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)
protected void
MetalTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
protected void
MetalToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)
在空间iconRect
绘制按钮b
的相应图标。protected void
MetalSliderUI. paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void
MetalSliderUI. paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
protected void
MetalSliderUI. paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)
protected void
MetalSliderUI. paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)
protected void
MetalButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)
protected void
MetalToggleButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)
protected void
MetalScrollBarUI. paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)
protected void
MetalScrollBarUI. paintTrack(Graphics g, JComponent c, Rectangle trackBounds)
protected void
MetalTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
-
Uses of Rectangle in javax.swing.plaf.multi
Methods in javax.swing.plaf.multi that return Rectangle Modifier and Type 方法 描述 Rectangle
MultiListUI. getCellBounds(JList<?> a, int b, int c)
在此对象处理的每个UI上调用getCellBounds
方法。Rectangle
MultiTreeUI. getPathBounds(JTree a, TreePath b)
在此对象处理的每个UI上调用getPathBounds
方法。Rectangle
MultiTabbedPaneUI. getTabBounds(JTabbedPane a, int b)
在此对象处理的每个UI上调用getTabBounds
方法。Rectangle
MultiTextUI. modelToView(JTextComponent a, int b)
Rectangle
MultiTextUI. modelToView(JTextComponent a, int b, Position.Bias c)
-
Uses of Rectangle in javax.swing.plaf.synth
Methods in javax.swing.plaf.synth that return Rectangle Modifier and Type 方法 描述 protected Rectangle
SynthProgressBarUI. getBox(Rectangle r)
存储将在r
为当前动画索引绘制的弹跳框的位置和大小,并返回r
。Methods in javax.swing.plaf.synth with parameters of type Rectangle Modifier and Type 方法 描述 protected Rectangle
SynthProgressBarUI. getBox(Rectangle r)
存储将在r
为当前动画索引绘制的弹跳框的位置和大小,并返回r
。String
SynthGraphicsUtils. 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)
通过引用将文本和图标返回,放置图标和文本的位置。protected void
SynthToolBarUI. paintContent(SynthContext context, Graphics g, Rectangle bounds)
绘制工具栏内容。void
SynthComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)
绘制当前选定的项目。protected void
SynthTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
绘制一行的展开(切换)部分。protected void
SynthTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)
涂抹腿部的水平部分。void
SynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)
在指定位置绘制文本。protected void
SynthScrollBarUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)
绘制滚动条拇指。protected void
SynthSliderUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)
绘制滑块拇指。protected void
SynthScrollBarUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)
绘制滚动条轨道。protected void
SynthSliderUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)
绘制滑块轨道。protected void
SynthTreeUI. paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
涂上腿部的垂直部分。 -
Uses of Rectangle in javax.swing.table
Methods in javax.swing.table that return Rectangle Modifier and Type 方法 描述 Rectangle
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry. getBounds()
Rectangle
JTableHeader. getHeaderRect(int column)
返回包含标题图块的矩形为column
。Methods in javax.swing.table with parameters of type Rectangle Modifier and Type 方法 描述 void
DefaultTableCellRenderer. repaint(Rectangle r)
由于性能原因而被覆盖。void
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry. setBounds(Rectangle r)
-
Uses of Rectangle in javax.swing.text
Subclasses of Rectangle in javax.swing.text Modifier and Type Class 描述 class
DefaultCaret
默认的Caret实现。Fields in javax.swing.text declared as Rectangle Modifier and Type Field 描述 protected Rectangle
AsyncBoxView.ChildLocator. childAlloc
用于子分配的形状,以避免产生大量的垃圾。protected Rectangle
AsyncBoxView.ChildLocator. lastAlloc
最后看到的分配(当更改被刷新时重新绘制)。Methods in javax.swing.text that return Rectangle Modifier and Type 方法 描述 Rectangle
JTextComponent.AccessibleJTextComponent. getCharacterBounds(int i)
将给定索引处的字符的边框确定为字符串。protected Rectangle
CompositeView. getInsideAllocation(Shape a)
将给予视图的不可变分配转换为表示内部分配的可变分配(即,删除顶,左,底和右插入的给定分配的边界。Rectangle
JTextComponent.AccessibleJTextComponent. getTextBounds(int startIndex, int endIndex)
返回Rectangle
包含两个指标之间的文本。protected Rectangle
PlainView. lineToRect(Shape a, int line)
确定表示给定行的矩形。Rectangle
JTextComponent. modelToView(int pos)
Methods in javax.swing.text with parameters of type Rectangle Modifier and Type 方法 描述 protected void
DefaultCaret. adjustVisibility(Rectangle nloc)
滚动关联视图(如有必要)使插入符可见。void
FlowView.FlowStrategy. changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
在该视图负责的位置向文档发出属性更改的通知。protected void
BoxView. childAllocation(int index, Rectangle alloc)
为子视图分配一个区域。protected abstract void
CompositeView. childAllocation(int index, Rectangle a)
返回给定子项的分配。protected void
DefaultCaret. damage(Rectangle r)
损坏插入符号周围的区域,使其在新的位置重画。int
JTextComponent. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应计算将根据取向值完全暴露一行行或列的滚动增量。int
JTextComponent. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应计算将根据取向值完全暴露一个新行或列的滚动增量。protected View
BoxView. getViewAtPoint(int x, int y, Rectangle alloc)
在给定坐标处获取子视图。protected abstract View
CompositeView. getViewAtPoint(int x, int y, Rectangle alloc)
在给定坐标处获取子视图。protected View
CompositeView. getViewAtPosition(int pos, Rectangle a)
获取代表模型中给定位置的子视图。protected View
TableView. getViewAtPosition(int pos, Rectangle a)
获取代表模型中给定位置的子视图。protected View
TableView.TableRow. getViewAtPosition(int pos, Rectangle a)
获取代表模型中给定位置的子视图。void
FlowView.FlowStrategy. insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
在给定的流程视图负责的位置发出通知。protected boolean
BoxView. isAfter(int x, int y, Rectangle innerAlloc)
确定一个点是否落在分配的区域之后。protected abstract boolean
CompositeView. isAfter(int x, int y, Rectangle alloc)
测试一个点是否在矩形范围之后。protected boolean
BoxView. isBefore(int x, int y, Rectangle innerAlloc)
确定一个点是否落在分配的区域之前。protected abstract boolean
CompositeView. isBefore(int x, int y, Rectangle alloc)
测试点是否在矩形范围之前。protected void
BoxView. paintChild(Graphics g, Rectangle alloc, int index)
涂一个孩子void
FlowView.FlowStrategy. removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
在给定流程视图负责的位置发出文档中已删除某些内容的通知。 -
Uses of Rectangle in javax.swing.text.html
Methods in javax.swing.text.html with parameters of type Rectangle Modifier and Type 方法 描述 protected void
ListView. paintChild(Graphics g, Rectangle alloc, int index)
画一个孩子; 由paint()调用。 -
Uses of Rectangle in javax.swing.tree
Methods in javax.swing.tree that return Rectangle Modifier and Type 方法 描述 abstract Rectangle
AbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)
返回一个给出绘制路径所需边界的矩形。Rectangle
FixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)
返回一个给出绘制路径所需边界的矩形。Rectangle
VariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)
返回包含Rectangle
标识的项目的标签部分的path
。protected Rectangle
AbstractLayoutCache. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn)
通过参考,返回placeIn
,表示value
所需的大小。abstract Rectangle
AbstractLayoutCache.NodeDimensions. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
通过边界的引用返回大小和x的起始位置。Methods in javax.swing.tree with parameters of type Rectangle Modifier and Type 方法 描述 abstract Rectangle
AbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)
返回一个给出绘制路径所需边界的矩形。Rectangle
FixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)
返回一个给出绘制路径所需边界的矩形。Rectangle
VariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)
返回包含Rectangle
标识的项目的标签部分的path
。protected Rectangle
AbstractLayoutCache. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn)
通过参考,返回placeIn
,代表value
所需的大小。abstract Rectangle
AbstractLayoutCache.NodeDimensions. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)
通过边界的引用返回大小和x的起始位置。int
AbstractLayoutCache. getPreferredWidth(Rectangle bounds)
返回传入区域的首选宽度。int
VariableHeightLayoutCache. getPreferredWidth(Rectangle bounds)
返回visibleRegion
区域的首选宽度和高度。void
DefaultTreeCellRenderer. repaint(Rectangle r)
由于性能原因而被覆盖。
-