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 方法 描述 RectangleTranslator. getBounds()返回此对象的当前边界。Methods in com.sun.java.accessibility.util with parameters of type Rectangle Modifier and Type 方法 描述 voidTranslator. setBounds(Rectangle r)设置此对象的当前边界。 -
Uses of Rectangle in java.awt
Fields in java.awt declared as Rectangle Modifier and Type Field 描述 protected RectanglePolygon. bounds这个边界Polygon。Methods in java.awt that return Rectangle Modifier and Type 方法 描述 RectangleComponent. bounds()已过时。从JDK 1.1版开始,替换为getBounds()。RectanglePolygon. getBoundingBox()已过时。从JDK 1.1版开始,替换为getBounds()。RectangleComponent.AccessibleAWTComponent. getBounds()以Rectangle对象的形式获取此对象的边界。RectangleComponent. getBounds()以Rectangle对象的形式获取此组件的边界。RectangleComponent. getBounds(Rectangle rv)将此组件的边界存储到“返回值” rv并返回 rv 。abstract RectangleGraphicsConfiguration. getBounds()返回设备坐标中的GraphicsConfiguration的边界。RectangleList.AccessibleAWTList.AccessibleAWTListChild. getBounds()以Rectangle对象的形式获取此对象的边界。RectangleMenuComponent.AccessibleAWTMenuComponent. getBounds()以Rectangle对象的形式获取此对象的边界。RectanglePolygon. getBounds()获取这个Polygon的边框。RectangleRectangle. getBounds()获取边界Rectangle如此Rectangle。RectangleShape. getBounds()返回一个整数Rectangle完全包围Shape。RectangleSplashScreen. getBounds()返回启动屏幕窗口的边界为270466139404048 。RectangleTextComponent.AccessibleAWTTextComponent. getCharacterBounds(int i)将给定索引处的字符的边框确定为字符串。abstract RectangleGraphics. getClipBounds()返回当前裁剪区域的边界矩形。RectangleGraphics. getClipBounds(Rectangle r)返回当前裁剪区域的边界矩形。RectangleGraphics. getClipRect()已过时。从JDK 1.1版开始,由getClipBounds()替代。RectangleFrame. getMaximizedBounds()获得此框架的最大化边界。RectangleGraphicsEnvironment. getMaximumWindowBounds()返回居中Windows的最大边界。RectangleRectangle. intersection(Rectangle r)计算Rectangle与指定的Rectangle。RectangleRectangle. union(Rectangle r)计算Rectangle与指定的Rectangle。Methods in java.awt with parameters of type Rectangle Modifier and Type 方法 描述 voidRectangle. add(Rectangle r)添加一个Rectangle这个Rectangle。protected voidGridBagLayout. adjustForGravity(GridBagConstraints constraints, Rectangle r)根据约束几何和焊盘,将x,y,width和height字段调整为正确的值。protected voidGridBagLayout. AdjustForGravity(GridBagConstraints constraints, Rectangle r)根据约束几何和焊盘,将x,y,width和height字段调整为正确的值。booleanRectangle. contains(Rectangle r)检查这个Rectangle是否完全包含指定的Rectangle。PaintContextColor. createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)创建并返回一个用于生成纯色字段模式的PaintContext。PaintContextGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)创建并返回一个PaintContext,用于生成线性颜色渐变模式。PaintContextLinearGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)创建并返回一个用于生成线性颜色渐变模式的PaintContext。PaintContextPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)创建并返回一个用于生成颜色模式的PaintContext。PaintContextRadialGradientPaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints)创建并返回一个用于生成圆形径向颜色渐变图案的PaintContext。PaintContextTexturePaint. createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)创建并返回一个用于生成平铺图像模式的PaintContext。MultiResolutionImageRobot. createMultiResolutionScreenCapture(Rectangle screenRect)创建包含从屏幕读取的像素的图像。BufferedImageRobot. createScreenCapture(Rectangle screenRect)创建包含从屏幕读取的像素的图像。RectangleComponent. getBounds(Rectangle rv)将此组件的边界存储到“返回值” rv并返回 rv 。RectangleGraphics. getClipBounds(Rectangle r)返回当前裁剪区域的边界矩形。abstract booleanGraphics2D. hit(Rectangle rect, Shape s, boolean onStroke)检查指定的Shape是否与设备空间中指定的Shape相交。RectangleRectangle. intersection(Rectangle r)计算Rectangle与指定的Rectangle。booleanRectangle. intersects(Rectangle r)确定此Rectangle和指定的Rectangle相交。voidComponent.AccessibleAWTComponent. setBounds(Rectangle r)以Rectangle对象的形式设置此对象的边界。voidComponent. setBounds(Rectangle r)移动并调整此组件的大小以符合新的边框矩形r。voidList.AccessibleAWTList.AccessibleAWTListChild. setBounds(Rectangle r)以Rectangle对象的形式设置此对象的边界。voidMenuComponent.AccessibleAWTMenuComponent. setBounds(Rectangle r)以Rectangle对象的形式设置此对象的边界。voidRectangle. setBounds(Rectangle r)设置此Rectangle的边界Rectangle以匹配指定的Rectangle。voidWindow. setBounds(Rectangle r)移动并调整此组件的大小以符合新的边框矩形r。voidFrame. setMaximizedBounds(Rectangle bounds)设置此框架的最大化边界。RectangleRectangle. 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 方法 描述 RectanglePaintEvent. getUpdateRect()返回表示需要重绘的区域的矩形,以响应此事件。Methods in java.awt.event with parameters of type Rectangle Modifier and Type 方法 描述 voidPaintEvent. 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 方法 描述 RectangleGlyphVector. getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)当这个返回index字形的像素边界GlyphVector在渲染Graphics给定FontRenderContext在给定位置。RectangleGlyphVector. getPixelBounds(FontRenderContext renderFRC, float x, float y)在给定位置的给定FontRenderContext的图形中渲染时,返回此GlyphVector的像素边界。RectangleTextLayout. 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 方法 描述 RectangleArea. getBounds()返回边界Rectangle完全包围此Area。RectangleCubicCurve2D. getBounds()返回一个整数Rectangle完全包围Shape。RectangleLine2D. getBounds()返回一个整数Rectangle完全包围Shape。RectanglePath2D. getBounds()返回一个整数Rectangle完全包围Shape。RectangleQuadCurve2D. getBounds()返回一个整数Rectangle完全包围Shape。RectangleRectangularShape. getBounds()返回一个整数Rectangle完全包围Shape。 -
Uses of Rectangle in java.awt.im
Methods in java.awt.im that return Rectangle Modifier and Type 方法 描述 RectangleInputMethodRequests. 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 方法 描述 voidInputMethod. notifyClientWindowChange(Rectangle bounds)通知客户端窗口位置或状态的这种输入方式的更改。 -
Uses of Rectangle in java.awt.image
Methods in java.awt.image that return Rectangle Modifier and Type 方法 描述 RectangleRaster. getBounds()返回此栅格的边界矩形。Methods in java.awt.image with parameters of type Rectangle Modifier and Type 方法 描述 WritableRasterRaster. createCompatibleWritableRaster(Rectangle rect)创建一个兼容的WritableRaster,它具有由rect指定的位置(minX,minY)和size(width,height),一个新的SampleModel和一个新的初始化的DataBuffer。RasterBufferedImage. getData(Rectangle rect)计算并返回BufferedImage的任意区域。RasterRenderedImage. 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 方法 描述 voidPropertyEditor. paintValue(Graphics gfx, Rectangle box)将值的表示绘制到屏幕不动产的给定区域。voidPropertyEditorSupport. paintValue(Graphics gfx, Rectangle box)将值的表示绘制到屏幕不动产的给定区域。 -
Uses of Rectangle in javax.accessibility
Methods in javax.accessibility that return Rectangle Modifier and Type 方法 描述 RectangleAccessibleComponent. getBounds()以Rectangle对象的形式获取此对象的边界。RectangleAccessibleText. getCharacterBounds(int i)将给定索引处的字符的边框确定为字符串。RectangleAccessibleExtendedText. getTextBounds(int startIndex, int endIndex)返回两个索引之间文本的边界矩形。Methods in javax.accessibility with parameters of type Rectangle Modifier and Type 方法 描述 voidAccessibleComponent. setBounds(Rectangle r)以Rectangle对象的形式设置此对象的边界。 -
Uses of Rectangle in javax.imageio
Fields in javax.imageio declared as Rectangle Modifier and Type Field 描述 protected RectangleIIOParam. sourceRegion源区域,如果没有设置,null。Methods in javax.imageio that return Rectangle Modifier and Type 方法 描述 RectangleIIOParam. getSourceRegion()返回要使用的源区域。protected static RectangleImageReader. getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight)读者可以使用一种实用方法来计算应该读取的源图像的区域,同时考虑到所提供的ImageReadParam中的任何源区域和子采样偏移设置。Methods in javax.imageio with parameters of type Rectangle Modifier and Type 方法 描述 protected static voidImageReader. computeRegions(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)计算感兴趣的源区域和目标区域,将源图像的宽度和高度,可选的目标图像和可选的ImageReadParam考虑在内。voidImageWriter. prepareReplacePixels(int imageIndex, Rectangle region)准备作者处理一系列对replacePixels方法的电话。voidIIOParam. setSourceRegion(Rectangle sourceRegion)设置感兴趣的源区域。 -
Uses of Rectangle in javax.swing
Methods in javax.swing that return Rectangle Modifier and Type 方法 描述 static RectangleSwingUtilities. calculateInnerArea(JComponent c, Rectangle r)存储r指定组件的r区域的位置和大小,并返回r。static Rectangle[]SwingUtilities. computeDifference(Rectangle rectA, Rectangle rectB)方便返回一组rectA,表示rectA内与rectB不重叠的rectB。static RectangleSwingUtilities. computeIntersection(int x, int y, int width, int height, Rectangle dest)方便计算两个矩形的交点,而不分配一个新的矩形。static RectangleSwingUtilities. computeUnion(int x, int y, int width, int height, Rectangle dest)计算两个矩形的并集而不分配新矩形的便捷方法。static RectangleSwingUtilities. convertRectangle(Component source, Rectangle aRectangle, Component destination)将source坐标系中的矩形aRectangle转换为destination坐标系。RectangleJComponent. getBounds(Rectangle rv)将此组件的边界存储为“返回值”rv并返回rv。RectangleJList.AccessibleJList.AccessibleJListChild. getBounds()RectangleJTable.AccessibleJTable.AccessibleJTableCell. getBounds()RectangleJTree.AccessibleJTree.AccessibleJTreeNode. getBounds()RectangleJTabbedPane. getBoundsAt(int index)在index返回标签边界。protected RectangleDefaultDesktopManager. getBoundsForIconOf(JInternalFrame f)iconifyFrame()代码调用这个来确定desktopIcon的正确边界。RectangleJList. getCellBounds(int index0, int index1)返回列表坐标系中由两个索引指定的单元格范围的边界矩形。RectangleJTable. getCellRect(int row, int column, boolean includeSpacing)返回位于row和column交点处的单元格的矩形。RectangleAbstractButton.AccessibleAbstractButton. getCharacterBounds(int i)将给定索引处的字符的边框确定为字符串。RectangleJLabel.AccessibleJLabel. getCharacterBounds(int i)返回字符串中给定索引处字符的边界框。RectangleJSpinner.AccessibleJSpinner. getCharacterBounds(int i)将给定索引处的字符的边框确定为字符串。RectangleProgressMonitor.AccessibleProgressMonitor. getCharacterBounds(int i)将给定索引处的字符的边框确定为字符串。RectangleDebugGraphics. getClipBounds()覆盖Graphics.getClipBounds。RectangleRepaintManager. getDirtyRegion(JComponent aComponent)返回组件当前的脏区域。static RectangleSwingUtilities. getLocalBounds(Component aComponent)返回组件aComponent的矩形(0,0,bounds.width,bounds.height)RectangleJInternalFrame. getNormalBounds()如果JInternalFrame未处于最大化状态,则返回getBounds(); 否则,返回JInternalFrame将被还原的范围。RectangleJTree. getPathBounds(TreePath path)返回指定节点将被绘制的Rectangle。protected RectangleDefaultDesktopManager. getPreviousBounds(JInternalFrame f)在组件最大化之前获取组件的正常范围。RectangleJTree. getRowBounds(int row)返回指定行中的节点被绘制的Rectangle。RectangleJScrollPane. getViewportBorderBounds()返回视口边框的边界。RectangleScrollPaneLayout. getViewportBorderBounds(JScrollPane scrollpane)已过时。截至JDK版本的Swing1.1由JScrollPane.getViewportBorderBounds()替换。RectangleJViewport. getViewRect()返回原点为getViewPosition,大小为getExtentSize。RectangleJComponent. getVisibleRect()返回Component的“可见矩形” - 该组件的可见矩形,new Rectangle(0, 0, getWidth(), getHeight())及其所有祖先的可见矩形的交集。Methods in javax.swing with parameters of type Rectangle Modifier and Type 方法 描述 static RectangleSwingUtilities. calculateInnerArea(JComponent c, Rectangle r)存储r指定组件的r区域的位置和大小,并返回r。protected booleanJViewport. 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 RectangleSwingUtilities. computeIntersection(int x, int y, int width, int height, Rectangle dest)方便计算两个矩形的交点,而不分配一个新的矩形。static RectangleSwingUtilities. computeUnion(int x, int y, int width, int height, Rectangle dest)计算两个矩形的并集而不分配新矩形的便捷方法。voidJComponent. computeVisibleRect(Rectangle visibleRect)返回Component的“可见矩形矩形” - 该组件的可见矩形与其所有祖先的交集。static RectangleSwingUtilities. convertRectangle(Component source, Rectangle aRectangle, Component destination)将source坐标系中的矩形aRectangle转换为destination坐标系。RectangleJComponent. getBounds(Rectangle rv)将此组件的边界存储为“返回值”rv并返回rv。intJLayer. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)返回滚动增量,这是显示逻辑行或列的组件所必需的,以便根据方向的值完全暴露一个行或列的块。intJList. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)返回要滚动以显示下一个或上一个块的距离。intJTable. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)返回visibleRect.height或visibleRect.width,具体取决于该表的方向。intJTree. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)返回块增量,这是高度或宽度的量visibleRect,基于orientation。intScrollable. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)显示逻辑行或列的组件应计算将根据取向值完全暴露一行行或列的滚动增量。intJLayer. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)返回滚动增量,这是显示逻辑行或列的组件所必需的,以便根据方向的值完全暴露一个新行或列。intJList. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)返回滚动的距离以显示下一行或上一行(垂直滚动)或列(用于水平滚动)。intJTable. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)返回完全暴露一个新行或列的滚动增量(以像素为单位)(取决于方向)。intJTextArea. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)显示逻辑行或列的组件应计算将根据取向值完全暴露一个新行或列的滚动增量。intJTree. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)返回滚动时增加的量。intScrollable. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)显示逻辑行或列的组件应计算将根据取向值完全暴露一个新行或列的滚动增量。static booleanSwingUtilities. isRectangleContainingRectangle(Rectangle a, Rectangle b)返回true如果@ {代码}包含bstatic StringSwingUtilities. layoutCompoundLabel(FontMetrics fm, String text, Icon icon, int verticalAlignment, int horizontalAlignment, int verticalTextPosition, int horizontalTextPosition, Rectangle viewR, Rectangle iconR, Rectangle textR, int textIconGap)计算并返回图标原点的位置,文本基线的原点位置以及复合标签字符串的可能剪切版本。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)计算并返回图标原点的位置,文本基线的原点位置以及复合标签字符串的可能剪切版本。voidCellRendererPane. paintComponent(Graphics g, Component c, Container p, Rectangle r)调用this.paintComponent()与矩形x,y,width,height字段。static voidSwingUtilities. paintComponent(Graphics g, Component c, Container p, Rectangle r)绘制一个组件到指定的Graphics。voidJComponent. paintImmediately(Rectangle r)现在涂漆指定区域。voidDefaultListCellRenderer. repaint(Rectangle r)由于性能原因而被覆盖。voidJComponent. repaint(Rectangle r)如果组件显示,则将指定的区域添加到脏区列表。voidJComponent. scrollRectToVisible(Rectangle aRect)向JComponent的父母转发scrollRectToVisible()消息。voidJTextField. scrollRectToVisible(Rectangle r)向左或向右滚动字段。voidJViewport. scrollRectToVisible(Rectangle contentRect)滚动视图,使视图内的Rectangle变得可见。voidJList.AccessibleJList.AccessibleJListChild. setBounds(Rectangle r)voidJTable.AccessibleJTable.AccessibleJTableCell. setBounds(Rectangle r)voidJTree.AccessibleJTree.AccessibleJTreeNode. setBounds(Rectangle r)voidJInternalFrame. setNormalBounds(Rectangle r)设置此内部框架的正常范围,该内部框架将从其最大化状态恢复到的边界。protected voidDefaultDesktopManager. setPreviousBounds(JInternalFrame f, Rectangle r)在最大化调用之前存储组件的边界。 -
Uses of Rectangle in javax.swing.border
Methods in javax.swing.border that return Rectangle Modifier and Type 方法 描述 RectangleAbstractBorder. getInteriorRectangle(Component c, int x, int y, int width, int height)这种方便方法调用静态方法。static RectangleAbstractBorder. 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 RectangleListUI. getCellBounds(JList<?> list, int index1, int index2)返回给定列表的坐标系中由两个索引指定的单元格范围的边界矩形。abstract RectangleTreeUI. getPathBounds(JTree tree, TreePath path)返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。abstract RectangleTabbedPaneUI. getTabBounds(JTabbedPane pane, int index)返回Tab边界的矩形。abstract RectangleTextUI. modelToView(JTextComponent t, int pos)abstract RectangleTextUI. 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 classBasicTextUI.BasicCaret接口默认实现Caret。Fields in javax.swing.plaf.basic declared as Rectangle Modifier and Type Field 描述 protected RectangleBasicProgressBarUI. boxRect用于保存弹出框(由getBox返回)的位置和大小以进行绘制。protected RectangleBasicTabbedPaneUI. calcRect用于一般布局计算的矩形,以避免构建许多新的矩形。protected RectangleBasicSliderUI. contentRect内容矩形protected RectangleBasicSliderUI. focusRect焦点矩形protected RectangleBasicSliderUI. labelRect标签矩形protected Rectangle[]BasicTabbedPaneUI. rects标签protected RectangleBasicScrollBarUI. thumbRect拇指矩形protected RectangleBasicSliderUI. thumbRect拇指矩形protected RectangleBasicSliderUI. tickRect勾选矩形protected RectangleBasicScrollBarUI. trackRect跟踪矩形protected RectangleBasicSliderUI. trackRect跟踪矩形Methods in javax.swing.plaf.basic that return Rectangle Modifier and Type 方法 描述 protected RectangleBasicComboPopup. computePopupBounds(int px, int py, int pw, int ph)基于组合框位置和封闭屏幕边界,计算组合框的弹出部分的位置和大小。protected RectangleBasicProgressBarUI. getBox(Rectangle r)存储将在r为当前动画索引绘制的弹跳框的位置和大小,并返回r。RectangleBasicListUI. getCellBounds(JList<?> list, int index1, int index2)返回给定列表的坐标系中由两个索引指定的单元格范围的边界矩形。protected RectangleBasicTreeUI. getDropLineRect(JTree.DropLocation loc)返回下拉线的无界框。RectangleBasicTreeUI.NodeDimensionsHandler. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)负责获取特定节点的大小。RectangleBasicTreeUI. getPathBounds(JTree tree, TreePath path)返回包围路径中最后一个项目将被绘制的标签部分的Rectangle。protected RectangleBasicTabbedPaneUI. getTabBounds(int tabIndex, Rectangle dest)返回JTabbedPane组件坐标空间中指定选项卡的边界。RectangleBasicTabbedPaneUI. getTabBounds(JTabbedPane pane, int i)返回指定选项卡索引的边界。protected RectangleBasicScrollBarUI. getThumbBounds()返回当前的大小/位置。protected RectangleBasicScrollBarUI. getTrackBounds()返回轨道的当前边界,即增量和减量按钮之间的空间,减去插值。protected RectangleBasicTextUI. getVisibleEditorRect()获取分配给根视图。RectangleBasicTextUI. modelToView(JTextComponent tc, int pos)RectangleBasicTextUI. modelToView(JTextComponent tc, int pos, Position.Bias bias)protected RectangleBasicComboBoxUI. rectangleForCurrentValue()返回保留用于绘制当前选定项目的区域。Methods in javax.swing.plaf.basic with parameters of type Rectangle Modifier and Type 方法 描述 protected RectangleBasicProgressBarUI. getBox(Rectangle r)存储将在r为当前动画索引绘制的弹跳框的位置和大小,并返回r。RectangleBasicTreeUI.NodeDimensionsHandler. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle size)负责获取特定节点的大小。protected RectangleBasicTabbedPaneUI. getTabBounds(int tabIndex, Rectangle dest)返回JTabbedPane组件坐标空间中指定选项卡的边界。protected StringBasicLabelUI. layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)转发给SwingUtilities.layoutCompoundLabel()的调用。protected voidBasicTabbedPaneUI. layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected)Laysout一个标签。protected voidBasicListUI. paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer<Object> cellRenderer, ListModel<Object> dataModel, ListSelectionModel selModel, int leadIndex)绘制一个列表单元格:计算相关状态,获取“橡皮图章”单元格渲染器组件,然后使用CellRendererPane进行绘制。voidBasicComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)绘制当前选定的项目。voidBasicComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)绘制当前所选项目的背景。protected voidBasicTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的展开(切换)部分。protected voidBasicButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)涂一个专注的按钮。protected voidBasicRadioButtonUI. paintFocus(Graphics g, Rectangle textRect, Dimension size)油漆聚焦单选按钮。protected voidBasicTabbedPaneUI. paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)绘制焦点指示器。protected voidBasicTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)涂抹腿部的水平部分。protected voidBasicButtonUI. paintIcon(Graphics g, JComponent c, Rectangle iconRect)绘制当前按钮的图标。protected voidBasicTabbedPaneUI. paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected)画一个图标。protected voidBasicToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)在指定位置绘制图标。protected voidBasicSliderUI. paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)绘制水平滑块的主要刻度。protected voidBasicSliderUI. paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)绘制垂直滑块的主要刻度。protected voidBasicSliderUI. paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)为水平滑块绘制小刻度。protected voidBasicSliderUI. paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)为垂直滑块绘制小刻度。protected voidBasicTreeUI. paintRow(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的渲染器部分。protected voidBasicTabbedPaneUI. paintTab(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect)画一个标签。protected voidBasicButtonUI. paintText(Graphics g, AbstractButton b, Rectangle textRect, String text)呈现当前按钮文本的方法。protected voidBasicButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)呈现当前按钮文本的方法。protected voidBasicMenuItemUI. paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)呈现当前菜单项的文本。protected voidBasicTabbedPaneUI. paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected)油漆文字。protected voidBasicScrollBarUI. paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)画拇指protected voidBasicScrollBarUI. paintTrack(Graphics g, JComponent c, Rectangle trackBounds)画轨道。protected voidBasicTreeUI. 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 方法 描述 voidMetalComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)如果需要,可以涂抹当前选择的项目。voidMetalComboBoxUI. paintCurrentValueBackground(Graphics g, Rectangle bounds, boolean hasFocus)如果需要,可以画出当前所选项目的背景。protected voidMetalButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)protected voidMetalRadioButtonUI. paintFocus(Graphics g, Rectangle t, Dimension d)protected voidMetalToggleButtonUI. paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect)protected voidMetalTabbedPaneUI. paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected)protected voidMetalTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)protected voidMetalToggleButtonUI. paintIcon(Graphics g, AbstractButton b, Rectangle iconRect)在空间iconRect绘制按钮b的相应图标。protected voidMetalSliderUI. paintMajorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)protected voidMetalSliderUI. paintMajorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)protected voidMetalSliderUI. paintMinorTickForHorizSlider(Graphics g, Rectangle tickBounds, int x)protected voidMetalSliderUI. paintMinorTickForVertSlider(Graphics g, Rectangle tickBounds, int y)protected voidMetalButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)protected voidMetalToggleButtonUI. paintText(Graphics g, JComponent c, Rectangle textRect, String text)protected voidMetalScrollBarUI. paintThumb(Graphics g, JComponent c, Rectangle thumbBounds)protected voidMetalScrollBarUI. paintTrack(Graphics g, JComponent c, Rectangle trackBounds)protected voidMetalTreeUI. 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 方法 描述 RectangleMultiListUI. getCellBounds(JList<?> a, int b, int c)在此对象处理的每个UI上调用getCellBounds方法。RectangleMultiTreeUI. getPathBounds(JTree a, TreePath b)在此对象处理的每个UI上调用getPathBounds方法。RectangleMultiTabbedPaneUI. getTabBounds(JTabbedPane a, int b)在此对象处理的每个UI上调用getTabBounds方法。RectangleMultiTextUI. modelToView(JTextComponent a, int b)RectangleMultiTextUI. 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 RectangleSynthProgressBarUI. getBox(Rectangle r)存储将在r为当前动画索引绘制的弹跳框的位置和大小,并返回r。Methods in javax.swing.plaf.synth with parameters of type Rectangle Modifier and Type 方法 描述 protected RectangleSynthProgressBarUI. getBox(Rectangle r)存储将在r为当前动画索引绘制的弹跳框的位置和大小,并返回r。StringSynthGraphicsUtils. 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 voidSynthToolBarUI. paintContent(SynthContext context, Graphics g, Rectangle bounds)绘制工具栏内容。voidSynthComboBoxUI. paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)绘制当前选定的项目。protected voidSynthTreeUI. paintExpandControl(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)绘制一行的展开(切换)部分。protected voidSynthTreeUI. paintHorizontalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, Rectangle bounds, TreePath path, int row, boolean isExpanded, boolean hasBeenExpanded, boolean isLeaf)涂抹腿部的水平部分。voidSynthGraphicsUtils. paintText(SynthContext ss, Graphics g, String text, Rectangle bounds, int mnemonicIndex)在指定位置绘制文本。protected voidSynthScrollBarUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)绘制滚动条拇指。protected voidSynthSliderUI. paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)绘制滑块拇指。protected voidSynthScrollBarUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)绘制滚动条轨道。protected voidSynthSliderUI. paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)绘制滑块轨道。protected voidSynthTreeUI. 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 方法 描述 RectangleJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry. getBounds()RectangleJTableHeader. getHeaderRect(int column)返回包含标题图块的矩形为column。Methods in javax.swing.table with parameters of type Rectangle Modifier and Type 方法 描述 voidDefaultTableCellRenderer. repaint(Rectangle r)由于性能原因而被覆盖。voidJTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry. setBounds(Rectangle r) -
Uses of Rectangle in javax.swing.text
Subclasses of Rectangle in javax.swing.text Modifier and Type Class 描述 classDefaultCaret默认的Caret实现。Fields in javax.swing.text declared as Rectangle Modifier and Type Field 描述 protected RectangleAsyncBoxView.ChildLocator. childAlloc用于子分配的形状,以避免产生大量的垃圾。protected RectangleAsyncBoxView.ChildLocator. lastAlloc最后看到的分配(当更改被刷新时重新绘制)。Methods in javax.swing.text that return Rectangle Modifier and Type 方法 描述 RectangleJTextComponent.AccessibleJTextComponent. getCharacterBounds(int i)将给定索引处的字符的边框确定为字符串。protected RectangleCompositeView. getInsideAllocation(Shape a)将给予视图的不可变分配转换为表示内部分配的可变分配(即,删除顶,左,底和右插入的给定分配的边界。RectangleJTextComponent.AccessibleJTextComponent. getTextBounds(int startIndex, int endIndex)返回Rectangle包含两个指标之间的文本。protected RectanglePlainView. lineToRect(Shape a, int line)确定表示给定行的矩形。RectangleJTextComponent. modelToView(int pos)Methods in javax.swing.text with parameters of type Rectangle Modifier and Type 方法 描述 protected voidDefaultCaret. adjustVisibility(Rectangle nloc)滚动关联视图(如有必要)使插入符可见。voidFlowView.FlowStrategy. changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)在该视图负责的位置向文档发出属性更改的通知。protected voidBoxView. childAllocation(int index, Rectangle alloc)为子视图分配一个区域。protected abstract voidCompositeView. childAllocation(int index, Rectangle a)返回给定子项的分配。protected voidDefaultCaret. damage(Rectangle r)损坏插入符号周围的区域,使其在新的位置重画。intJTextComponent. getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)显示逻辑行或列的组件应计算将根据取向值完全暴露一行行或列的滚动增量。intJTextComponent. getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)显示逻辑行或列的组件应计算将根据取向值完全暴露一个新行或列的滚动增量。protected ViewBoxView. getViewAtPoint(int x, int y, Rectangle alloc)在给定坐标处获取子视图。protected abstract ViewCompositeView. getViewAtPoint(int x, int y, Rectangle alloc)在给定坐标处获取子视图。protected ViewCompositeView. getViewAtPosition(int pos, Rectangle a)获取代表模型中给定位置的子视图。protected ViewTableView. getViewAtPosition(int pos, Rectangle a)获取代表模型中给定位置的子视图。protected ViewTableView.TableRow. getViewAtPosition(int pos, Rectangle a)获取代表模型中给定位置的子视图。voidFlowView.FlowStrategy. insertUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)在给定的流程视图负责的位置发出通知。protected booleanBoxView. isAfter(int x, int y, Rectangle innerAlloc)确定一个点是否落在分配的区域之后。protected abstract booleanCompositeView. isAfter(int x, int y, Rectangle alloc)测试一个点是否在矩形范围之后。protected booleanBoxView. isBefore(int x, int y, Rectangle innerAlloc)确定一个点是否落在分配的区域之前。protected abstract booleanCompositeView. isBefore(int x, int y, Rectangle alloc)测试点是否在矩形范围之前。protected voidBoxView. paintChild(Graphics g, Rectangle alloc, int index)涂一个孩子voidFlowView.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 voidListView. 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 RectangleAbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个给出绘制路径所需边界的矩形。RectangleFixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个给出绘制路径所需边界的矩形。RectangleVariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回包含Rectangle标识的项目的标签部分的path。protected RectangleAbstractLayoutCache. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn)通过参考,返回placeIn,表示value所需的大小。abstract RectangleAbstractLayoutCache.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 RectangleAbstractLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个给出绘制路径所需边界的矩形。RectangleFixedHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回一个给出绘制路径所需边界的矩形。RectangleVariableHeightLayoutCache. getBounds(TreePath path, Rectangle placeIn)返回包含Rectangle标识的项目的标签部分的path。protected RectangleAbstractLayoutCache. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn)通过参考,返回placeIn,代表value所需的大小。abstract RectangleAbstractLayoutCache.NodeDimensions. getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle bounds)通过边界的引用返回大小和x的起始位置。intAbstractLayoutCache. getPreferredWidth(Rectangle bounds)返回传入区域的首选宽度。intVariableHeightLayoutCache. getPreferredWidth(Rectangle bounds)返回visibleRegion区域的首选宽度和高度。voidDefaultTreeCellRenderer. repaint(Rectangle r)由于性能原因而被覆盖。
-