接口的使用
java.awt.Shape
使用 Shape 的包
包
描述
包含用于创建用户界面以及绘制图形和图像的所有类。
提供与字体相关的类和接口。
提供 Java 2D 类,用于定义和执行与二维几何相关的对象的操作。
提供用于生成与渲染无关的图像的类和接口。
提供一组“轻量级”(全 Java 语言)组件,尽可能在所有平台上以相同的方式工作。
提供根据基本外观构建的用户界面对象。
提供处理可编辑和不可编辑文本组件的类和接口。
提供用于创建 HTML 文本编辑器的类
HTMLEditorKit 和支持类。
-
Shape 在 java.awt 中的用法
修饰符和类型类描述classPolygon类封装了坐标空间内封闭的二维区域的描述。classRectangle指定坐标空间中的区域,该区域由Rectangle对象的左上角点(x,y)在坐标空间中、其宽度和高度围成。修饰符和类型方法描述BasicStroke.createStrokedShape(Shape s) 返回一个Shape,其内部定义了指定Shape的描边轮廓。Stroke.createStrokedShape(Shape p) 返回一个轮廓Shape,它包含当Shape根据实现Stroke接口的对象定义的规则被描边时应该绘制的区域。abstract ShapeGraphics.getClip()获取当前裁剪区域。Window.getShape()返回窗口的形状。修饰符和类型方法描述abstract void将当前Clip与指定Shape的内部相交,并将Clip设置为生成的交集。BasicStroke.createStrokedShape(Shape s) 返回一个Shape,其内部定义了指定Shape的描边轮廓。Stroke.createStrokedShape(Shape p) 返回一个轮廓Shape,它包含当Shape根据实现Stroke接口的对象定义的规则被描边时应该绘制的区域。abstract void使用当前Graphics2D上下文的设置描边Shape的轮廓。abstract void使用Graphics2D上下文的设置填充Shape的内部。abstract boolean检查指定的Shape是否与设备空间中指定的Rectangle相交。abstract void将当前剪辑区域设置为任意剪辑形状。voidComponent.setMixingCutoutShape(Shape shape) 为这个轻量级组件设置一个“mixing-cutout”形状。void设置窗口的形状。 -
Shape 在 java.awt.font 中的用法
java.awt.font 中返回 Shape 的方法修饰符和类型方法描述TextLayout.getBlackBoxBounds(int firstEndpoint, int secondEndpoint) 返回指定范围内字符的黑框边界。TextLayout.getCaretShape(TextHitInfo hit) 返回一个Shape表示此TextLayout的自然边界内指定命中处的插入符号。TextLayout.getCaretShape(TextHitInfo hit, Rectangle2D bounds) 返回一个Shape表示指定范围内指定命中处的插入符。Shape[]TextLayout.getCaretShapes(int offset) 返回对应于强插入符和弱插入符的两条路径。Shape[]TextLayout.getCaretShapes(int offset, Rectangle2D bounds) 返回对应于强插入符和弱插入符的两条路径。Shape[]TextLayout.getCaretShapes(int offset, Rectangle2D bounds, TextLayout.CaretPolicy policy) 返回对应于强插入符和弱插入符的两条路径。abstract ShapeGlyphVector.getGlyphLogicalBounds(int glyphIndex) 返回此GlyphVector中指定字形的逻辑边界。abstract ShapeGlyphVector.getGlyphOutline(int glyphIndex) 返回一个Shape,其内部对应于此GlyphVector中指定字形的视觉表示。GlyphVector.getGlyphOutline(int glyphIndex, float x, float y) 返回一个Shape,其内部对应于此GlyphVector中指定字形的视觉表示,偏移到 x,y。abstract ShapeGlyphVector.getGlyphVisualBounds(int glyphIndex) 返回GlyphVector中指定字形的视觉边界。TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint) 返回一个Shape包含指定范围内的逻辑选择,扩展到此TextLayout的自然边界。TextLayout.getLogicalHighlightShape(int firstEndpoint, int secondEndpoint, Rectangle2D bounds) 返回一个Shape包含指定范围内的逻辑选择,扩展到指定的bounds。abstract ShapeGlyphVector.getOutline()返回一个Shape,其内部对应于此GlyphVector的视觉表示。abstract ShapeGlyphVector.getOutline(float x, float y) 返回一个Shape,其内部对应于此GlyphVector在 x、y 处呈现时的视觉表示。GraphicAttribute.getOutline(AffineTransform tx) 返回代表此GraphicAttribute呈现的区域的Shape。ShapeGraphicAttribute.getOutline(AffineTransform tx) 返回代表此ShapeGraphicAttribute呈现的区域的Shape。TextLayout.getOutline(AffineTransform tx) 返回表示此TextLayout轮廓的Shape。TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint) 返回一个Shape包含指定范围内的视觉选择,扩展到边界。TextLayout.getVisualHighlightShape(TextHitInfo firstEndpoint, TextHitInfo secondEndpoint, Rectangle2D bounds) 返回包含指定范围内视觉选择的路径,扩展为bounds。java.awt.font 中的构造函数,参数类型为 Shape修饰符构造方法描述ShapeGraphicAttribute(Shape shape, int alignment, boolean stroke) 为指定的Shape构造一个ShapeGraphicAttribute。 -
Shape 在 java.awt.geom 中的用法
java.awt.geom 中实现 Shape 的类修饰符和类型类描述classArc2D是所有对象的抽象超类,这些对象存储由框架矩形、起始角度、角度范围(弧的长度)和闭合类型(OPEN、CHORD或PIE)定义的 2D 弧。static class此类定义了以double精度指定的弧。static class此类定义了以float精度指定的弧。classArea对象存储和操作二维空间封闭区域的独立于分辨率的描述。classCubicCurve2D类定义了(x,y)坐标空间中的三次参数化曲线段。static class用double坐标指定的三次参数化曲线段。static class用float坐标指定的三次参数化曲线段。classEllipse2D类描述了一个由框架矩形定义的椭圆。static classDouble类定义了一个以double精度指定的椭圆。static classFloat类定义了一个以float精度指定的椭圆。final classGeneralPath类表示由直线、二次和三次 (Bézier) 曲线构成的几何路径。class这个Line2D表示(x,y)坐标空间中的一条线段。static class用双坐标指定的线段。static class用浮点坐标指定的线段。classPath2D类提供了一个简单而灵活的形状,代表任意几何路径。static classDouble类定义了一个几何路径,其坐标存储在双精度浮点数中。static classFloat类定义了一个几何路径,其坐标存储在单精度浮点数中。classQuadCurve2D类定义了(x,y)坐标空间中的二次参数曲线段。static class用double坐标指定的二次参数曲线段。static class用float坐标指定的二次参数曲线段。classRectangle2D类描述了一个由位置(x,y)和维度(w x h)定义的矩形。static classDouble类定义了一个以双精度坐标指定的矩形。static classFloat类定义了一个以浮点坐标指定的矩形。classRectangularShape是许多Shape对象的基类,这些对象的几何形状由矩形框定义。classRoundRectangle2D类定义了一个圆角矩形,圆角由位置(x,y)、尺寸(w x h)以及用于圆角的圆弧的宽度和高度定义。static classDouble类定义了一个圆角矩形,所有圆角都在double坐标中指定。static classFloat类定义了一个圆角矩形,所有圆角都在float坐标中指定。java.awt.geom 中返回 Shape 的方法修饰符和类型方法描述AffineTransform.createTransformedShape(Shape pSrc) 返回一个新的Shape对象,该对象由指定的Shape的几何形状定义,之后它已被此转换转换。final ShapePath2D.createTransformedShape(AffineTransform at) 返回一个新的Shape表示这个Path2D的转换版本。java.awt.geom 中的方法,参数类型为 Shape修饰符和类型方法描述final void将指定的Shape对象的几何附加到路径,可能将新几何连接到具有线段的现有路径段。AffineTransform.createTransformedShape(Shape pSrc) 返回一个新的Shape对象,该对象由指定的Shape的几何形状定义,之后它已被此转换转换。java.awt.geom 中的构造函数,参数类型为 Shape修饰符构造方法描述Area类从指定的Shape对象创建区域几何。从任意Shape对象构造一个新的双精度Path2D对象。Double(Shape s, AffineTransform at) 从任意Shape对象构造一个新的单精度Path2D对象。Float(Shape s, AffineTransform at) GeneralPath(Shape s) 从任意Shape对象构造一个新的GeneralPath对象。 -
Shape 在 java.awt.image.renderable 中的用法
java.awt.image.renderable 中返回 Shape 的方法java.awt.image.renderable 中的方法,参数类型为 Shapejava.awt.image.renderable 中的构造函数,参数类型为 Shape修饰符构造方法描述RenderContext(AffineTransform usr2dev, Shape aoi) 构造具有给定变换和感兴趣区域的 RenderContext。RenderContext(AffineTransform usr2dev, Shape aoi, RenderingHints hints) 使用给定的转换构造一个 RenderContext。 -
Shape 在 javax.swing 中的用法
javax.swing 中返回 Shape 的方法javax.swing 中的方法,参数类型为 Shape -
Shape 在 javax.swing.plaf.basic 中的用法
javax.swing.plaf.basic 中实现 Shape 的类 -
Shape 在 javax.swing.text 中的用法
javax.swing.text 中实现 Shape 的类javax.swing.text 中返回 Shape 的方法修饰符和类型方法描述protected ShapeFieldView.adjustAllocation(Shape a) 将分配给视图的分配调整为适合文本字段的分配。protected ShapeAsyncBoxView.ChildLocator.getChildAllocation(int index) 获取用于子视图的分配。AsyncBoxView.ChildLocator.getChildAllocation(int index, Shape a) 获取用于子视图的分配。AsyncBoxView.getChildAllocation(int index, Shape a) 获取给定子视图的分配。BoxView.getChildAllocation(int index, Shape a) 获取给定子视图的分配。CompositeView.getChildAllocation(int index, Shape a) 获取给定子视图的分配以呈现到其中。View.getChildAllocation(int index, Shape a) 获取给定子视图的分配。AsyncBoxView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。BoxView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。ComponentView.modelToView(int pos, Shape a, Position.Bias b) 提供从模型坐标空间到视图坐标空间的映射。CompositeView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。CompositeView.modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。FieldView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。abstract ShapeGlyphView.GlyphPainter.modelToView(GlyphView v, int pos, Position.Bias bias, Shape a) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。GlyphView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。IconView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。PasswordView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。PlainView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。View.modelToView(int pos, Shape a) 已弃用。abstract ShapeView.modelToView(int pos, Shape a, Position.Bias b) 为给定字符提供从文档模型坐标空间到视图坐标空间的映射。View.modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) 为给定区域提供从文档模型坐标空间到视图坐标空间的映射。DefaultHighlighter.DefaultHighlightPainter.paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) 绘制高光的一部分。abstract ShapeLayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) 绘制高光的一部分。javax.swing.text 中的方法,参数类型为 Shape修饰符和类型方法描述protected ShapeFieldView.adjustAllocation(Shape a) 将分配给视图的分配调整为适合文本字段的分配。在给定长度的给定轴上打破此视图。voidFlowView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidGlyphView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidLabelView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidParagraphView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidPlainView.changedUpdate(DocumentEvent changes, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。voidWrappedPlainView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。protected voidPlainView.damageLineRange(int line0, int line1, Shape a, Component host) 重新绘制给定的线范围。protected voidBoxView.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f) 将给定的DocumentEvent转发给需要通知模型更改的子视图。protected voidView.forwardUpdate(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a, ViewFactory f) 将给定的DocumentEvent转发给需要通知模型更改的子视图。protected voidView.forwardUpdateToView(View v, DocumentEvent e, Shape a, ViewFactory f) 将DocumentEvent转发给给子视图。AsyncBoxView.ChildLocator.getChildAllocation(int index, Shape a) 获取用于子视图的分配。AsyncBoxView.getChildAllocation(int index, Shape a) 获取给定子视图的分配。BoxView.getChildAllocation(int index, Shape a) 获取给定子视图的分配。CompositeView.getChildAllocation(int index, Shape a) 获取给定子视图的分配以呈现到其中。View.getChildAllocation(int index, Shape a) 获取给定子视图的分配。protected intParagraphView.getClosestPositionTo(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet, int rowIndex, int x) 返回最接近x的模型位置。protected RectangleCompositeView.getInsideAllocation(Shape a) 将提供给视图的不可变分配转换为代表内部分配的可变分配(即给定分配的边界,删除了顶部、左侧、底部和右侧的insets。protected intCompositeView.getNextEastWestVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 返回光标的下一个视觉位置,向东或向西。protected intCompositeView.getNextNorthSouthVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 返回光标的下一个视觉位置,在北或南方向。protected intParagraphView.getNextNorthSouthVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 返回光标的下一个视觉位置,向东或向西。intAsyncBoxView.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 提供一种方法来确定下一个可能放置插入符号的可视化模型位置。intCompositeView.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 提供一种方法来确定下一个可能放置插入符号的可视化模型位置。intGlyphView.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 提供一种方法来确定下一个可能放置插入符号的可视化模型位置。intGlyphView.GlyphPainter.getNextVisualPositionFrom(GlyphView v, int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 提供一种方法来确定下一个可能放置插入符号的可视化模型位置。intView.getNextVisualPositionFrom(int pos, Position.Bias b, Shape a, int direction, Position.Bias[] biasRet) 提供一种方法来确定下一个可以放置插入符号的可视化表示的模型位置。View.getToolTipText(float x, float y, Shape allocation) 返回指定位置的工具提示文本。intView.getViewIndex(float x, float y, Shape allocation) 返回表示视图中给定位置的子视图索引。intAsyncBoxView.ChildLocator.getViewIndexAtPoint(float x, float y, Shape a) 在给定点获取子视图索引。voidFieldView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidFlowView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidGlyphView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidPlainView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidWrappedPlainView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。voidZoneView.insertUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。protected RectanglePlainView.lineToRect(Shape a, int line) 确定代表给定线的矩形。AsyncBoxView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。BoxView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。ComponentView.modelToView(int pos, Shape a, Position.Bias b) 提供从模型坐标空间到视图坐标空间的映射。CompositeView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。CompositeView.modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。FieldView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。abstract ShapeGlyphView.GlyphPainter.modelToView(GlyphView v, int pos, Position.Bias bias, Shape a) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。GlyphView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。IconView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。PasswordView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。PlainView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。View.modelToView(int pos, Shape a) 已弃用。abstract ShapeView.modelToView(int pos, Shape a, Position.Bias b) 为给定字符提供从文档模型坐标空间到视图坐标空间的映射。View.modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Shape a) 为给定区域提供从文档模型坐标空间到视图坐标空间的映射。void使用给定的分配和渲染表面渲染视图。void使用给定的渲染表面和该表面上的区域渲染BoxView。void真正的绘制行为自然发生在组件与其父容器(托管此视图的同一容器)的关联中。voidDefaultHighlighter.DefaultHighlightPainter.paint(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c) 画出高光。void使用给定的渲染表面和该表面上的区域进行渲染。abstract void绘制表示给定范围的字形。void呈现文本样式运行的一部分。voidHighlighter.HighlightPainter.paint(Graphics g, int p0, int p1, Shape bounds, JTextComponent c) 渲染高光。void绘制图标。void使用给定的渲染表面和该表面上的区域进行渲染。void使用给定的渲染表面和该表面上的区域进行渲染。abstract void使用给定的渲染表面和该表面上的区域进行渲染。void使用给定的渲染表面和该表面上的区域进行渲染。DefaultHighlighter.DefaultHighlightPainter.paintLayer(Graphics g, int offs0, int offs1, Shape bounds, JTextComponent c, View view) 绘制高光的一部分。abstract ShapeLayeredHighlighter.LayerPainter.paintLayer(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) 绘制高光的一部分。voidDefaultHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) 当叶视图(如 LabelView)正在呈现时,它们应该调用此方法。abstract voidLayeredHighlighter.paintLayeredHighlights(Graphics g, int p0, int p1, Shape viewBounds, JTextComponent editor, View view) 当叶视图(如 LabelView)正在呈现时,它们应该调用此方法。voidFieldView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidFlowView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidGlyphView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidPlainView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidWrappedPlainView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。voidZoneView.removeUpdate(DocumentEvent changes, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。protected voidAsyncBoxView.ChildLocator.setAllocation(Shape a) 将当前分配的形状复制到用于存储当前分配的 Rectangle 中。protected voidPlainView.updateDamage(DocumentEvent changes, Shape a, ViewFactory f) 重新绘制给定文档事件所涵盖的更改区域。protected voidAsyncBoxView.updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) 更新布局以响应从模型接收到的更改通知。protected voidView.updateLayout(DocumentEvent.ElementChange ec, DocumentEvent e, Shape a) 更新布局以响应从模型接收到的更改通知。intAsyncBoxView.viewToModel(float x, float y, Shape a, Position.Bias[] biasReturn) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intBoxView.viewToModel(float x, float y, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intComponentView.viewToModel(float x, float y, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intCompositeView.viewToModel(float x, float y, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intFieldView.viewToModel(float fx, float fy, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。abstract intGlyphView.GlyphPainter.viewToModel(GlyphView v, float x, float y, Shape a, Position.Bias[] biasReturn) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intGlyphView.viewToModel(float x, float y, Shape a, Position.Bias[] biasReturn) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intIconView.viewToModel(float x, float y, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intPasswordView.viewToModel(float fx, float fy, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intPlainView.viewToModel(float x, float y, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。intView.viewToModel(float x, float y, Shape a) 已弃用。abstract intView.viewToModel(float x, float y, Shape a, Position.Bias[] biasReturn) 提供从视图坐标空间到模型的逻辑坐标空间的映射。 -
Shape 在 javax.swing.text.html 中的用法
javax.swing.text.html 中返回 Shape 的方法javax.swing.text.html 中的方法,参数类型为 Shape修饰符和类型方法描述voidImageView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 当 Elements 属性发生变化时调用。voidInlineView.changedUpdate(DocumentEvent e, Shape a, ViewFactory f) 从文档发出通知,通知该视图负责的位置的属性已更改。ImageView.getToolTipText(float x, float y, Shape allocation) 对于图像,工具提示文本来自使用ALT属性指定的文本。voidInlineView.insertUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知某些内容已插入文档中此视图负责的位置。ImageView.modelToView(int pos, Shape a, Position.Bias b) 提供从文档模型坐标空间到映射到它的视图的坐标空间的映射。void使用给定的渲染表面和该表面上的区域进行渲染。void绘制视图。void使用给定的渲染表面和该表面上的区域进行渲染。void使用给定的渲染表面和该表面上的区域进行渲染。voidInlineView.removeUpdate(DocumentEvent e, Shape a, ViewFactory f) 通知此视图负责的位置从文档中删除了某些内容。intImageView.viewToModel(float x, float y, Shape a, Position.Bias[] bias) 提供从视图坐标空间到模型的逻辑坐标空间的映射。