软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.font |
提供有关字体的类和接口。
|
java.awt.geom |
定义在二维几何相关的对象执行操作提供java 2D类。
|
java.awt.image |
提供创建和修改图像的类。
|
java.awt.image.renderable |
提供用于生成渲染独立图像的类和接口。
|
Modifier and Type | Method and Description |
---|---|
abstract AffineTransform |
GraphicsConfiguration.getDefaultTransform()
返回此
GraphicsConfiguration 默认
AffineTransform 。
|
abstract AffineTransform |
GraphicsConfiguration.getNormalizingTransform()
返回一个
AffineTransform 可与一个
GraphicsConfiguration 默认
AffineTransform 使72台在用户空间等于1英寸的级联装置空间。
|
AffineTransform |
Font.getTransform()
返回一个与此相关的变换
Font 。
|
abstract AffineTransform |
Graphics2D.getTransform()
返回一个在
Graphics2D 上下文的当前
Transform 。
|
AffineTransform |
MultipleGradientPaint.getTransform()
返回应用于梯度的变换的副本。
|
Modifier and Type | Method and Description |
---|---|
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 。
|
Font |
Font.deriveFont(AffineTransform trans)
通过复制当前
Font 对象和应用新的变换,它创建了一个新的
Font 对象。
|
Font |
Font.deriveFont(int style, AffineTransform trans)
创建一个新的
Font 对象通过复制这种
Font 对象和应用一种新的风格和变换。
|
abstract boolean |
Graphics2D.drawImage(Image img, AffineTransform xform, ImageObserver obs)
渲染一个图像,在绘制之前将图像空间的一个变换转换成用户空间。
|
abstract void |
Graphics2D.drawRenderableImage(RenderableImage img, AffineTransform xform)
呈现
RenderableImage ,应用变换从图像空间到用户空间的画前。
|
abstract void |
Graphics2D.drawRenderedImage(RenderedImage img, AffineTransform xform)
呈现
RenderedImage ,应用变换从图像空间到用户空间的画前。
|
PathIterator |
Shape.getPathIterator(AffineTransform at)
返回一个迭代器对象沿
Shape 迭代边界提供了访问的
Shape 轮廓的几何。
|
PathIterator |
Polygon.getPathIterator(AffineTransform at)
返回一个迭代器对象,就沿着这
Polygon 边界提供了进入这个
Polygon 轮廓的几何。
|
PathIterator |
Shape.getPathIterator(AffineTransform at, double flatness)
返回一个迭代器对象沿
Shape 迭代边界提供了一个扁平的
Shape 外形几何。
|
PathIterator |
Polygon.getPathIterator(AffineTransform at, double flatness)
返回一个迭代器对象,迭代的
Shape 沿边界和提供的
Shape 轮廓的几何。
|
abstract void |
Graphics2D.setTransform(AffineTransform Tx)
覆盖在
Graphics2D 语境的变换。
|
abstract void |
Graphics2D.transform(AffineTransform Tx)
在这
Graphics2D 组成的
Transform
AffineTransform 对象根据规则上指定的首次应用。
|
Constructor and Description |
---|
LinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform)
构建了一个
LinearGradientPaint 。
|
RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform)
构建了一个
RadialGradientPaint 。
|
Modifier and Type | Method and Description |
---|---|
abstract AffineTransform |
GlyphVector.getGlyphTransform(int glyphIndex)
返回指定字形变换在这
GlyphVector 。
|
AffineTransform |
FontRenderContext.getTransform()
获取转换,用于规模这
FontRenderContext 印刷点像素。
|
AffineTransform |
TransformAttribute.getTransform()
返回包变换的副本。
|
Modifier and Type | Method and Description |
---|---|
Shape |
ShapeGraphicAttribute.getOutline(AffineTransform tx)
返回一个
Shape 代表区域,这
ShapeGraphicAttribute 呈现。
|
Shape |
GraphicAttribute.getOutline(AffineTransform tx)
返回一个
Shape 代表区域,这
GraphicAttribute 呈现。
|
Shape |
TextLayout.getOutline(AffineTransform tx)
返回一个
Shape 表示此
TextLayout 概述。
|
abstract void |
GlyphVector.setGlyphTransform(int glyphIndex, AffineTransform newTX)
设置指定字形变换在这
GlyphVector 。
|
Constructor and Description |
---|
FontRenderContext(AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics)
|
FontRenderContext(AffineTransform tx, Object aaHint, Object fmHint)
|
TransformAttribute(AffineTransform transform)
指定指定的变换。
|
Modifier and Type | Method and Description |
---|---|
AffineTransform |
AffineTransform.createInverse()
返回一个
AffineTransform 表示反变换。
|
static AffineTransform |
AffineTransform.getQuadrantRotateInstance(int numquadrants)
返回一个旋转坐标变换的指定数目的象限。
|
static AffineTransform |
AffineTransform.getQuadrantRotateInstance(int numquadrants, double anchorx, double anchory)
返回一个旋转坐标变换的指定数在指定点的象限。
|
static AffineTransform |
AffineTransform.getRotateInstance(double theta)
返回表示旋转变换的变换。
|
static AffineTransform |
AffineTransform.getRotateInstance(double vecx, double vecy)
返回一个旋转坐标的变换,根据旋转矢量。
|
static AffineTransform |
AffineTransform.getRotateInstance(double theta, double anchorx, double anchory)
返回一个围绕一个固定点旋转坐标的变换。
|
static AffineTransform |
AffineTransform.getRotateInstance(double vecx, double vecy, double anchorx, double anchory)
返回一个旋转坐标,根据旋转矢量围绕一个固定点旋转。
|
static AffineTransform |
AffineTransform.getScaleInstance(double sx, double sy)
返回表示缩放变换的变换。
|
static AffineTransform |
AffineTransform.getShearInstance(double shx, double shy)
返回表示剪切转换的变换。
|
static AffineTransform |
AffineTransform.getTranslateInstance(double tx, double ty)
返回表示平移变换的变换。
|
Modifier and Type | Method and Description |
---|---|
void |
AffineTransform.concatenate(AffineTransform Tx)
将一个
AffineTransform
Tx 这
AffineTransform CX在最常用的方式为用户提供新的空间,是由
Tx 映射到用户空间的前。
|
Area |
Area.createTransformedArea(AffineTransform t)
创建一个新的
Area 对象具有相同几何这
Area 由指定的
AffineTransform 转化。
|
Shape |
Path2D.createTransformedShape(AffineTransform at)
返回表示这
Path2D 转换版本的新
Shape 。
|
PathIterator |
Rectangle2D.getPathIterator(AffineTransform at)
返回一个迭代定义这
Rectangle2D 边界。
|
PathIterator |
Ellipse2D.getPathIterator(AffineTransform at)
返回一个迭代定义这
Ellipse2D 边界。
|
PathIterator |
Path2D.Float.getPathIterator(AffineTransform at)
返回一个迭代器对象沿
Shape 迭代边界提供了访问的
Shape 轮廓的几何。
|
PathIterator |
Path2D.Double.getPathIterator(AffineTransform at)
返回一个迭代器对象沿
Shape 迭代边界提供了访问的
Shape 轮廓的几何。
|
PathIterator |
QuadCurve2D.getPathIterator(AffineTransform at)
返回一个迭代定义这个
QuadCurve2D 形状的边界。
|
PathIterator |
RoundRectangle2D.getPathIterator(AffineTransform at)
返回一个迭代定义这
RoundRectangle2D 边界。
|
PathIterator |
Area.getPathIterator(AffineTransform at)
创建一个物体的轮廓
PathIterator 这
Area 。
|
PathIterator |
Arc2D.getPathIterator(AffineTransform at)
返回一个定义圆弧的边界的迭代对象。
|
PathIterator |
Line2D.getPathIterator(AffineTransform at)
返回一个迭代定义这
Line2D 边界。
|
PathIterator |
CubicCurve2D.getPathIterator(AffineTransform at)
返回一个定义形状边界的迭代对象。
|
PathIterator |
Rectangle2D.getPathIterator(AffineTransform at, double flatness)
返回一个迭代定义的扁平
Rectangle2D 边界。
|
PathIterator |
Path2D.getPathIterator(AffineTransform at, double flatness)
返回一个迭代器对象沿
Shape 迭代边界提供了一个扁平的
Shape 外形几何。
|
PathIterator |
QuadCurve2D.getPathIterator(AffineTransform at, double flatness)
返回一个迭代定义的扁平的形状,这
QuadCurve2D 边界。
|
PathIterator |
Area.getPathIterator(AffineTransform at, double flatness)
创建一个扁平的轮廓,这
Area 对象
PathIterator 。
|
PathIterator |
Line2D.getPathIterator(AffineTransform at, double flatness)
返回一个迭代定义这个扁平的
Line2D 边界。
|
PathIterator |
RectangularShape.getPathIterator(AffineTransform at, double flatness)
返回一个迭代器对象沿
Shape 迭代对象的边界,提供了一个扁平的视角对
Shape 对象的几何轮廓。
|
PathIterator |
CubicCurve2D.getPathIterator(AffineTransform at, double flatness)
返回定义扁平形状的边界的迭代对象。
|
void |
AffineTransform.preConcatenate(AffineTransform Tx)
将一个
AffineTransform
Tx 这
AffineTransform CX在一个不太常用的方式,
Tx 修改坐标变换相对于绝对像素空间而不是相对于现有的用户空间。
|
void |
AffineTransform.setTransform(AffineTransform Tx)
设置这个变换复制在指定
AffineTransform 对象的变换。
|
abstract void |
Path2D.transform(AffineTransform at)
变换的几何路径使用指定的
AffineTransform 。
|
void |
Path2D.Float.transform(AffineTransform at)
变换的几何路径使用指定的
AffineTransform 。
|
void |
Path2D.Double.transform(AffineTransform at)
变换的几何路径使用指定的
AffineTransform 。
|
void |
Area.transform(AffineTransform t)
将几何这
Area 使用指定的
AffineTransform 。
|
Constructor and Description |
---|
AffineTransform(AffineTransform Tx)
构建了一种新的
AffineTransform 是一份指定的
AffineTransform 对象。
|
Double(Shape s, AffineTransform at)
|
Float(Shape s, AffineTransform at)
|
Modifier and Type | Method and Description |
---|---|
AffineTransform |
AffineTransformOp.getTransform()
返回这个变换操作所使用的仿射变换。
|
Constructor and Description |
---|
AffineTransformOp(AffineTransform xform, int interpolationType)
构建了一个
AffineTransformOp 给出仿射变换和插值型。
|
AffineTransformOp(AffineTransform xform, RenderingHints hints)
构建了一个
AffineTransformOp 仿射变换。
|
Modifier and Type | Method and Description |
---|---|
AffineTransform |
RenderContext.getTransform()
获取当前用户装置点。
|
Modifier and Type | Method and Description |
---|---|
void |
RenderContext.concatenateTransform(AffineTransform modTransform)
修改当前用户设备通过添加另一个变换。
|
void |
RenderContext.concetenateTransform(AffineTransform modTransform)
过时的。
取而代之的
concatenateTransform(AffineTransform) 。
|
void |
RenderContext.preConcatenateTransform(AffineTransform modTransform)
修改当前用户装置产生一个变换。
|
void |
RenderContext.preConcetenateTransform(AffineTransform modTransform)
过时的。
取而代之的
preConcatenateTransform(AffineTransform) 。
|
void |
RenderContext.setTransform(AffineTransform newTransform)
设置当前用户装置点包含在rendercontext给定变换。
|
Constructor and Description |
---|
RenderContext(AffineTransform usr2dev)
构建一个与给定的变换rendercontext。
|
RenderContext(AffineTransform usr2dev, RenderingHints hints)
构建一个与给定的变换和渲染的暗示rendercontext。
|
RenderContext(AffineTransform usr2dev, Shape aoi)
构建一个与给定的变换和感兴趣的领域rendercontext。
|
RenderContext(AffineTransform usr2dev, Shape aoi, RenderingHints hints)
构建一个与给定的变换rendercontext。
|
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.