软件包 | 描述 |
---|---|
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 |
包含的类发展豆相关--基于JavaBeans组件™架构。
|
javax.accessibility |
定义用户界面组件和提供对这些组件的访问的辅助技术之间的一个合同。
|
javax.imageio |
java的图像I/O API主要包。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.swing.border |
提供用于绘图的类和接口,以绘制一个摆动组件的专门边框。
|
javax.swing.plaf |
提供一个接口和抽象类的使用许多摆动为可插拔的外观和感觉的能力。
|
javax.swing.plaf.basic |
根据基本的外观和感觉提供内置的用户界面对象。
|
javax.swing.plaf.metal |
提供用户界面对象建立根据java的外观和感觉(一次代号为金属),它是默认的外观和感觉。
|
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 提供类和接口。
|
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
Polygon.bounds
这
Polygon 界限。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
Component.bounds()
过时的。
作为JDK 1.1版本,取而代之的
getBounds() 。
|
Rectangle |
Polygon.getBoundingBox()
过时的。
作为JDK 1.1版本,取而代之的
getBounds() 。
|
Rectangle |
List.AccessibleAWTList.AccessibleAWTListChild.getBounds()
以一个矩形对象的形式获取此对象的边界。
|
Rectangle |
SplashScreen.getBounds()
作为一个
Rectangle 返回初始屏幕窗口的边界。
|
Rectangle |
Shape.getBounds()
返回一个整数
Rectangle 完全封闭
Shape 。
|
Rectangle |
Rectangle.getBounds()
得到这
Rectangle 包围
Rectangle 。
|
Rectangle |
Polygon.getBounds()
得到这
Polygon 包围盒。
|
Rectangle |
MenuComponent.AccessibleAWTMenuComponent.getBounds()
在一个
Rectangle 对象的形式这一对象的边界。
|
abstract Rectangle |
GraphicsConfiguration.getBounds()
返回在设备的
GraphicsConfiguration 边界坐标。
|
Rectangle |
Component.getBounds()
在一个
Rectangle 对象的形式的这一部分的界限。
|
Rectangle |
Component.AccessibleAWTComponent.getBounds()
以一个矩形对象的形式获取此对象的边界。
|
Rectangle |
Component.getBounds(Rectangle rv)
商店这个组件的发展为“价值回归”
RV回
RV。
|
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()
返回中心窗口的最大范围。
|
Rectangle |
Rectangle.intersection(Rectangle r)
计算这
Rectangle 路口与指定的
Rectangle 。
|
Rectangle |
Rectangle.union(Rectangle r)
计算这
Rectangle 工会与指定的
Rectangle 。
|
Modifier and Type | Method and Description |
---|---|
void |
Rectangle.add(Rectangle r)
增加了一个
Rectangle 这
Rectangle 。
|
protected void |
GridBagLayout.adjustForGravity(GridBagConstraints constraints, Rectangle r)
调整X,Y,宽度,和高度场的正确值取决于约束几何和垫。
|
protected void |
GridBagLayout.AdjustForGravity(GridBagConstraints constraints, Rectangle r)
这种方法已经过时了,仅用于向后兼容提供新的代码应该叫
adjustForGravity 代替。
|
boolean |
Rectangle.contains(Rectangle r)
检查是否
Rectangle 完全包含指定的
Rectangle 。
|
PaintContext |
Paint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
创建并返回一个用来生成的彩色图案
PaintContext 。
|
PaintContext |
Color.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints)
创建并返回一个用来生成一个单色场模式
PaintContext 。
|
PaintContext |
LinearGradientPaint.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 。
|
PaintContext |
GradientPaint.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 。
|
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 相交的指定
Rectangle ,这是设备空间。
|
Rectangle |
Rectangle.intersection(Rectangle r)
计算这
Rectangle 路口与指定的
Rectangle 。
|
boolean |
Rectangle.intersects(Rectangle r)
确定是否这
Rectangle 和指定的
Rectangle 相交。
|
void |
List.AccessibleAWTList.AccessibleAWTListChild.setBounds(Rectangle r)
以一个矩形对象的形式设置此对象的边界。
|
void |
Window.setBounds(Rectangle r)
移动和调整该组件符合新的边框
r 。
|
void |
Rectangle.setBounds(Rectangle r)
设置要符合指定的
Rectangle 这
Rectangle 包围
Rectangle 。
|
void |
MenuComponent.AccessibleAWTMenuComponent.setBounds(Rectangle r)
在一个
Rectangle 对象的形式这一对象的边界集。
|
void |
Component.setBounds(Rectangle r)
移动和调整该组件符合新的边框
r 。
|
void |
Component.AccessibleAWTComponent.setBounds(Rectangle r)
在一个
Rectangle 对象的形式这一对象的边界集。
|
void |
Frame.setMaximizedBounds(Rectangle bounds)
设置此帧的最大限度。
|
Rectangle |
Rectangle.union(Rectangle r)
计算这
Rectangle 工会与指定的
Rectangle 。
|
Constructor and Description |
---|
Rectangle(Rectangle r)
构建了一种新的
Rectangle ,初始化为指定的值相匹配
Rectangle 。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
PaintEvent.getUpdateRect()
返回表示需要重新粉刷在回应这一事件的区域的矩形。
|
Modifier and Type | Method and Description |
---|---|
void |
PaintEvent.setUpdateRect(Rectangle updateRect)
设置需要重新粉刷在回应这一事件的区域的矩形。
|
Constructor and Description |
---|
PaintEvent(Component source, int id, Rectangle updateRect)
构建了一个具有指定源组件和
PaintEvent 对象类型。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
GlyphVector.getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)
返回的字形索引像素边界时
GlyphVector 是一个给定
FontRenderContext 在给定位置
Graphics 渲染。
|
Rectangle |
GlyphVector.getPixelBounds(FontRenderContext renderFRC, float x, float y)
返回该
GlyphVector 像素边界时,呈现在一个给定
FontRenderContext 在给定位置的图形。
|
Rectangle |
TextLayout.getPixelBounds(FontRenderContext frc, float x, float y)
返回该
TextLayout 像素边界时,呈现在一个给定
FontRenderContext 在给定位置的图形。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
Path2D.getBounds()
返回一个整数
Rectangle 完全封闭
Shape 。
|
Rectangle |
QuadCurve2D.getBounds()
返回一个整数
Rectangle 完全封闭
Shape 。
|
Rectangle |
Area.getBounds()
返回一个包围
Rectangle 完全包围这
Area 。
|
Rectangle |
Line2D.getBounds()
返回一个整数
Rectangle 完全封闭
Shape 。
|
Rectangle |
RectangularShape.getBounds()
返回一个整数
Rectangle 完全封闭
Shape 。
|
Rectangle |
CubicCurve2D.getBounds()
返回一个整数
Rectangle 完全封闭
Shape 。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
InputMethodRequests.getTextLocation(TextHitInfo offset)
获取当前组合文本中指定偏移量的位置,或提交的文本中的选择位置。
|
Modifier and Type | Method and Description |
---|---|
void |
InputMethod.notifyClientWindowChange(Rectangle bounds)
通知本输入法在客户端窗口的位置或状态的变化。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
Raster.getBounds()
返回此光栅的包围矩形。
|
Modifier and Type | Method and Description |
---|---|
WritableRaster |
Raster.createCompatibleWritableRaster(Rectangle rect)
创建一个定位兼容writableraster(丫头,miny)和尺寸(宽度,高度)指定的矩形,一个新的samplemodel,并创建一个新的DataBuffer。
|
Raster |
BufferedImage.getData(Rectangle rect)
计算并返回的
BufferedImage 任意区域。
|
Raster |
RenderedImage.getData(Rectangle rect)
计算并返回的renderedimage任意区域。
|
Constructor and Description |
---|
Raster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, Raster parent)
构建了一个栅格与给定的samplemodel,DataBuffer,和父母。
|
WritableRaster(SampleModel sampleModel, DataBuffer dataBuffer, Rectangle aRegion, Point sampleModelTranslate, WritableRaster parent)
构建了一个writableraster与给定的samplemodel,DataBuffer,和父母。
|
Modifier and Type | Method and Description |
---|---|
void |
PropertyEditor.paintValue(Graphics gfx, Rectangle box)
画一个代表性的价值进入一个给定的屏幕面积的屏幕房地产。
|
void |
PropertyEditorSupport.paintValue(Graphics gfx, Rectangle box)
画一个代表性的价值进入一个给定的屏幕面积的屏幕房地产。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
AccessibleComponent.getBounds()
以一个矩形对象的形式获取此对象的边界。
|
Rectangle |
AccessibleText.getCharacterBounds(int i)
确定在给定索引处的字符的边框框到字符串中。
|
Rectangle |
AccessibleExtendedText.getTextBounds(int startIndex, int endIndex)
返回两个索引之间的文本的包围矩形。
|
Modifier and Type | Method and Description |
---|---|
void |
AccessibleComponent.setBounds(Rectangle r)
以一个矩形对象的形式设置此对象的边界。
|
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
IIOParam.sourceRegion
源区,在
null 如果没有设置。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
IIOParam.getSourceRegion()
返回要使用的源区域。
|
protected static Rectangle |
ImageReader.getSourceRegion(ImageReadParam param, int srcWidth, int srcHeight)
一个实用的方法,可用于计算图像的源代码,读者应阅读区,考虑到任何源区和采样偏移设置在提供的
ImageReadParam 。
|
Modifier and Type | Method and Description |
---|---|
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)
设置感兴趣的源区域。
|
Modifier and Type | Method and Description |
---|---|
static Rectangle |
SwingUtilities.calculateInnerArea(JComponent c, Rectangle r)
商店的位置和大小的内画区指定的组件在
r 返回
r 。
|
static Rectangle[] |
SwingUtilities.computeDifference(Rectangle rectA, Rectangle rectB)
方便返回矩形代表区域内
rectA 不重叠
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)
将矩形
aRectangle 在
source 坐标系统的坐标系统
destination 。
|
Rectangle |
JList.AccessibleJList.AccessibleJListChild.getBounds() |
Rectangle |
JTree.AccessibleJTree.AccessibleJTreeNode.getBounds() |
Rectangle |
JTable.AccessibleJTable.AccessibleJTableCell.getBounds() |
Rectangle |
JComponent.getBounds(Rectangle rv)
商店这个组件的发展为“价值回归”
rv 返回
rv 。
|
Rectangle |
JTabbedPane.getBoundsAt(int index)
返回标签的界限在
index 。
|
protected Rectangle |
DefaultDesktopManager.getBoundsForIconOf(JInternalFrame f)
的iconifyframe()代码调用此确定为桌面图标在适当的范围内。
|
Rectangle |
JList.getCellBounds(int index0, int index1)
返回在列表的坐标系统中的边界矩形,用于由两个索引指定的单元格的范围。
|
Rectangle |
JTable.getCellRect(int row, int column, boolean includeSpacing)
返回一个处于
row 和
column 相交处的单元矩形。
|
Rectangle |
JSpinner.AccessibleJSpinner.getCharacterBounds(int i)
确定在给定索引处的字符的边框框到字符串中。
|
Rectangle |
ProgressMonitor.AccessibleProgressMonitor.getCharacterBounds(int i)
确定在给定索引处的字符的边框框到字符串中。
|
Rectangle |
JLabel.AccessibleJLabel.getCharacterBounds(int i)
返回字符串中给定索引处的字符的包围盒。
|
Rectangle |
AbstractButton.AccessibleAbstractButton.getCharacterBounds(int i)
确定在给定索引处的字符的包围盒到字符串中。
|
Rectangle |
DebugGraphics.getClipBounds()
覆盖
Graphics.getClipBounds 。
|
Rectangle |
RepaintManager.getDirtyRegion(JComponent aComponent)
返回一个组件的当前脏区域。
|
static Rectangle |
SwingUtilities.getLocalBounds(Component aComponent)
返回的矩形(0,0,界限。宽度范围。高度)的组件
aComponent
|
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()) ,和它的所有祖先的可见的矩形。
|
Modifier and Type | Method and Description |
---|---|
static Rectangle |
SwingUtilities.calculateInnerArea(JComponent c, Rectangle 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 不重叠
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)
将矩形
aRectangle 在
source 坐标系统的坐标系统
destination 。
|
Rectangle |
JComponent.getBounds(Rectangle rv)
商店这个组件的发展为“价值回归”
rv 返回
rv 。
|
int |
Scrollable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应该计算将完全暴露一个行或列的一个块的滚动增量,这取决于方向的值。
|
int |
JList.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回滚动的距离,以暴露下一个或前一个块。
|
int |
JTree.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回一个块增量的数量,这是高度或宽度
visibleRect ,基于
orientation 。
|
int |
JTable.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回
visibleRect.height 或
visibleRect.width ,根据此表的方向。
|
int |
JLayer.getScrollableBlockIncrement(Rectangle visibleRect, int orientation, int direction)
返回一个滚动增量,这是所需的组件显示逻辑行或列,以完全暴露一个行或列,这取决于方向的值。
|
int |
Scrollable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应该计算将完全暴露一个新的行或列的滚动增量,这取决于方向的值。
|
int |
JList.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
返回滚动的距离,以暴露下一个或上一行(垂直滚动)或列(用于水平滚动)。
|
int |
JTree.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
当滚动时返回增量的量。
|
int |
JTextArea.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
显示逻辑行或列的组件应该计算将完全暴露一个新的行或列的滚动增量,这取决于方向的值。
|
int |
JTable.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
返回完全公开的一个新的行或列(取决于方向)的滚动增量(像素)。
|
int |
JLayer.getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
返回一个滚动增量,这是所需的组件显示逻辑行或列,以完全暴露一个新的行或列,这取决于方向的值。
|
static boolean |
SwingUtilities.isRectangleContainingRectangle(Rectangle a, Rectangle b)
如果
a 包含
b 返回true
|
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)
电话本。paintcomponent()与矩形的X,Y,宽度,高度场。
|
static void |
SwingUtilities.paintComponent(Graphics g, Component c, Container p, Rectangle r)
描绘了一个组件来指定
Graphics 。
|
void |
JComponent.paintImmediately(Rectangle r)
绘制指定区域。
|
void |
JComponent.repaint(Rectangle r)
如果组件显示的是指定区域,则将指定的区域添加到脏区域列表中。
|
void |
DefaultListCellRenderer.repaint(Rectangle r)
出于性能原因,重写。
|
void |
JViewport.scrollRectToVisible(Rectangle contentRect)
滚动视图,在视图中
Rectangle 变得可见。
|
void |
JComponent.scrollRectToVisible(Rectangle aRect)
将
scrollRectToVisible() 消息到
JComponent 的母。
|
void |
JTextField.scrollRectToVisible(Rectangle r)
向左或向右滚动字段。
|
void |
JList.AccessibleJList.AccessibleJListChild.setBounds(Rectangle r) |
void |
JTree.AccessibleJTree.AccessibleJTreeNode.setBounds(Rectangle r) |
void |
JTable.AccessibleJTable.AccessibleJTableCell.setBounds(Rectangle r) |
void |
JInternalFrame.setNormalBounds(Rectangle r)
为这个内部框架设置了正常的界限,这个内部框架将恢复到其最大化状态的界限。
|
protected void |
DefaultDesktopManager.setPreviousBounds(JInternalFrame f, Rectangle r)
在最大化调用之前存储组件的边界。
|
Modifier and Type | Method and Description |
---|---|
static Rectangle |
AbstractBorder.getInteriorRectangle(Component c, Border b, int x, int y, int width, int height)
返回一个矩形使用参数减去边界的插图。
|
Rectangle |
AbstractBorder.getInteriorRectangle(Component c, int x, int y, int width, int height)
这种方便的方法调用静态方法。
|
Modifier and Type | Method and Description |
---|---|
abstract Rectangle |
ListUI.getCellBounds(JList list, int index1, int index2)
返回给定列表的坐标系统中的包围矩形,用于由两个索引指定的单元格的范围。
|
abstract Rectangle |
TreeUI.getPathBounds(JTree tree, TreePath path)
返回包含路径的最后一个项目将被绘制到的标签部分的矩形框。
|
abstract Rectangle |
TabbedPaneUI.getTabBounds(JTabbedPane pane, int index) |
abstract Rectangle |
TextUI.modelToView(JTextComponent t, int pos)
将模型中给定的位置转换为视图坐标系中的位置。
|
abstract Rectangle |
TextUI.modelToView(JTextComponent t, int pos, Position.Bias bias)
将模型中给定的位置转换为视图坐标系中的位置。
|
Modifier and Type | Class and Description |
---|---|
static class |
BasicTextUI.BasicCaret |
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
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)
返回包含路径的最后一个项目将被绘制到的标签部分的矩形框。
|
protected Rectangle |
BasicTabbedPaneUI.getTabBounds(int tabIndex, Rectangle dest)
返回通过组件的坐标空间的指定标签的范围。
|
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()
返回用于绘制当前选定项目的区域。
|
Modifier and Type | Method and Description |
---|---|
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)
返回通过组件的坐标空间的指定标签的范围。
|
protected String |
BasicLabelUI.layoutCL(JLabel label, FontMetrics fontMetrics, String text, Icon icon, Rectangle viewR, Rectangle iconR, Rectangle textR)
将调用转发给layoutcompoundlabel() swingutilities。
|
protected void |
BasicTabbedPaneUI.layoutLabel(int tabPlacement, FontMetrics metrics, int tabIndex, String title, Icon icon, Rectangle tabRect, Rectangle iconRect, Rectangle textRect, boolean isSelected) |
protected void |
BasicListUI.paintCell(Graphics g, int row, Rectangle rowBounds, ListCellRenderer cellRenderer, ListModel 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 |
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 |
BasicToggleButtonUI.paintIcon(Graphics g, AbstractButton b, Rectangle iconRect) |
protected void |
BasicTabbedPaneUI.paintIcon(Graphics g, int tabPlacement, int tabIndex, Icon icon, Rectangle iconRect, boolean isSelected) |
protected void |
BasicButtonUI.paintIcon(Graphics g, JComponent c, 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 |
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 |
BasicTabbedPaneUI.paintText(Graphics g, int tabPlacement, Font font, FontMetrics metrics, int tabIndex, String title, Rectangle textRect, boolean isSelected) |
protected void |
BasicButtonUI.paintText(Graphics g, JComponent c, Rectangle textRect, String text)
作为java 2平台V 1.4,该方法不使用或修改。
|
protected void |
BasicMenuItemUI.paintText(Graphics g, JMenuItem menuItem, Rectangle textRect, String text)
呈现当前菜单项的文本。
|
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)
油漆腿的垂直部分。
|
Modifier and Type | Method and Description |
---|---|
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 |
MetalToggleButtonUI.paintFocus(Graphics g, AbstractButton b, Rectangle viewRect, Rectangle textRect, Rectangle iconRect) |
protected void |
MetalRadioButtonUI.paintFocus(Graphics g, Rectangle t, Dimension d) |
protected void |
MetalTabbedPaneUI.paintFocusIndicator(Graphics g, int tabPlacement, Rectangle[] rects, int tabIndex, Rectangle iconRect, Rectangle textRect, boolean isSelected) |
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) |
Modifier and Type | Method and Description |
---|---|
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)
调用该对象的每个UI处理
modelToView 方法。
|
Rectangle |
MultiTextUI.modelToView(JTextComponent a, int b, Position.Bias c)
调用该对象的每个UI处理
modelToView 方法。
|
Modifier and Type | Method and Description |
---|---|
protected Rectangle |
SynthProgressBarUI.getBox(Rectangle r)
商店的位置和大小的弹跳框会画目前动画指数
r 返回
r 。
|
Modifier and Type | Method and Description |
---|---|
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 |
SynthSliderUI.paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)
油漆滑块拇指。
|
protected void |
SynthScrollBarUI.paintThumb(SynthContext context, Graphics g, Rectangle thumbBounds)
把滚动条的拇指。
|
protected void |
SynthSliderUI.paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)
绘制滑块轨道。
|
protected void |
SynthScrollBarUI.paintTrack(SynthContext context, Graphics g, Rectangle trackBounds)
把滚动条轨道。
|
protected void |
SynthTreeUI.paintVerticalPartOfLeg(Graphics g, Rectangle clipBounds, Insets insets, TreePath path)
油漆腿的垂直部分。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.getBounds() |
Rectangle |
JTableHeader.getHeaderRect(int column)
返回
column 含头瓦矩形。
|
Modifier and Type | Method and Description |
---|---|
void |
DefaultTableCellRenderer.repaint(Rectangle r)
出于性能原因,重写。
|
void |
JTableHeader.AccessibleJTableHeader.AccessibleJTableHeaderEntry.setBounds(Rectangle r) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultCaret
卡雷特的默认实现。
|
Modifier and Type | Field and Description |
---|---|
protected Rectangle |
AsyncBoxView.ChildLocator.childAlloc
一个形状用于子分配,避免产生大量的垃圾。
|
protected Rectangle |
AsyncBoxView.ChildLocator.lastAlloc
最后一次看到分配(重绘时更改刷新向上)。
|
Modifier and Type | Method and Description |
---|---|
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)
将模型中给定的位置转换为视图坐标系中的位置。
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultCaret.adjustVisibility(Rectangle nloc)
卷轴的关联视图(如果需要)使符号可见。
|
void |
FlowView.FlowStrategy.changedUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
从该视图负责的位置上更改属性的文档的通知。
|
protected abstract void |
CompositeView.childAllocation(int index, Rectangle a)
返回给定子的分配。
|
protected void |
BoxView.childAllocation(int index, Rectangle alloc)
分配子视图的区域。
|
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 abstract View |
CompositeView.getViewAtPoint(int x, int y, Rectangle alloc)
把孩子的观点在给定的坐标。
|
protected View |
BoxView.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 abstract boolean |
CompositeView.isAfter(int x, int y, Rectangle alloc)
测试一个点是否在矩形范围后。
|
protected boolean |
BoxView.isAfter(int x, int y, Rectangle innerAlloc)
确定一个点是否在分配的区域后下降。
|
protected abstract boolean |
CompositeView.isBefore(int x, int y, Rectangle alloc)
测试一个点是否位于矩形范围之前。
|
protected boolean |
BoxView.isBefore(int x, int y, Rectangle innerAlloc)
确定在分配区域之前是否有一个点。
|
protected void |
BoxView.paintChild(Graphics g, Rectangle alloc, int index)
画一个孩子。
|
void |
FlowView.FlowStrategy.removeUpdate(FlowView fv, DocumentEvent e, Rectangle alloc)
给出通知,在给定的流程视图负责的位置上从文档中删除了某个东西。
|
Modifier and Type | Method and Description |
---|---|
protected void |
ListView.paintChild(Graphics g, Rectangle alloc, int index)
描绘了一个孩子;被paint()。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
FixedHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
返回一个矩形,给出绘制路径所需的边界。
|
abstract Rectangle |
AbstractLayoutCache.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原产地的地方价值。
|
Modifier and Type | Method and Description |
---|---|
Rectangle |
FixedHeightLayoutCache.getBounds(TreePath path, Rectangle placeIn)
返回一个矩形,给出绘制路径所需的边界。
|
abstract Rectangle |
AbstractLayoutCache.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)
出于性能原因,重写。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.