| Package | Description |
|---|---|
| java.awt |
Contains all of the classes for creating user interfaces and for painting graphics and images.
|
| java.awt.font |
Provides classes and interface relating to fonts.
|
| java.awt.geom |
Provides the Java 2D classes for defining and performing operations on objects related to two-dimensional geometry.
|
| java.awt.image |
Provides classes for creating and modifying images.
|
| java.awt.image.renderable |
Provides classes and interfaces for producing rendering-independent images.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AffineTransform |
GraphicsConfiguration.getDefaultTransform()
Returns the default
AffineTransform for this
GraphicsConfiguration.
|
abstract AffineTransform |
GraphicsConfiguration.getNormalizingTransform()
Returns a
AffineTransform that can be concatenated with the default
AffineTransform of a
GraphicsConfiguration so that 72 units in user space equals 1 inch in device space.
|
AffineTransform |
MultipleGradientPaint.getTransform()
Returns a copy of the transform applied to the gradient.
|
AffineTransform |
Font.getTransform()
Returns a copy of the transform associated with this
Font.
|
abstract AffineTransform |
Graphics2D.getTransform()
Returns a copy of the current
Transform in the
Graphics2D context.
|
| Modifier and Type | Method and Description |
|---|---|
PaintContext |
GradientPaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a linear color gradient pattern.
|
PaintContext |
LinearGradientPaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a linear color gradient pattern.
|
PaintContext |
Paint.createContext(ColorModel
Creates and returns a
PaintContext used to generate the color pattern.
|
PaintContext |
Color.createContext(ColorModel
Creates and returns a
PaintContext used to generate a solid color field pattern.
|
PaintContext |
TexturePaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a tiled image pattern.
|
PaintContext |
RadialGradientPaint.createContext(ColorModel
Creates and returns a
PaintContext used to generate a circular radial color gradient pattern.
|
Font |
Font.deriveFont(AffineTransform
Creates a new
Font object by replicating the current
Font object and applying a new transform to it.
|
Font |
Font.deriveFont(int style, AffineTransform
Creates a new
Font object by replicating this
Font object and applying a new style and transform.
|
abstract boolean |
Graphics2D.drawImage(Image
Renders an image, applying a transform from image space into user space before drawing.
|
abstract void |
Graphics2D.drawRenderableImage(RenderableImage
Renders a
RenderableImage, applying a transform from image space into user space before drawing.
|
abstract void |
Graphics2D.drawRenderedImage(RenderedImage
Renders a
RenderedImage, applying a transform from image space into user space before drawing.
|
PathIterator |
Shape.getPathIterator(AffineTransform
Returns an iterator object that iterates along the
Shape boundary and provides access to the geometry of the
Shape outline.
|
PathIterator |
Polygon.getPathIterator(AffineTransform
Returns an iterator object that iterates along the boundary of this
Polygon and provides access to the geometry of the outline of this
Polygon.
|
PathIterator |
Shape.getPathIterator(AffineTransform
Returns an iterator object that iterates along the
Shape boundary and provides access to a flattened view of the
Shape outline geometry.
|
PathIterator |
Polygon.getPathIterator(AffineTransform
Returns an iterator object that iterates along the boundary of the
Shape and provides access to the geometry of the outline of the
Shape.
|
abstract void |
Graphics2D.setTransform(AffineTransform
Overwrites the Transform in the
Graphics2D context.
|
abstract void |
Graphics2D.transform(AffineTransform
Composes an
AffineTransform object with the
Transform in this
Graphics2D according to the rule last-specified-first-applied.
|
| Constructor and Description | |
|---|---|
LinearGradientPaint(Point2D
Constructs a
LinearGradientPaint.
|
|
RadialGradientPaint(Point2D
Constructs a
RadialGradientPaint.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AffineTransform |
GlyphVector.getGlyphTransform(int glyphIndex)
Returns the transform of the specified glyph within this
GlyphVector.
|
AffineTransform |
TransformAttribute.getTransform()
Returns a copy of the wrapped transform.
|
AffineTransform |
FontRenderContext.getTransform()
Gets the transform that is used to scale typographical points to pixels in this
FontRenderContext.
|
| Modifier and Type | Method and Description |
|---|---|
Shape |
ShapeGraphicAttribute.getOutline(AffineTransform
Return a
Shape that represents the region that this
ShapeGraphicAttribute renders.
|
Shape |
GraphicAttribute.getOutline(AffineTransform
Return a
Shape that represents the region that this
GraphicAttribute renders.
|
Shape |
TextLayout.getOutline(AffineTransform
Returns a
Shape representing the outline of this
TextLayout.
|
abstract void |
GlyphVector.setGlyphTransform(int glyphIndex, AffineTransform
Sets the transform of the specified glyph within this
GlyphVector.
|
| Constructor and Description | |
|---|---|
FontRenderContext(AffineTransform
Constructs a
FontRenderContext object from an optional
AffineTransform and two
boolean values that determine if the newly constructed object has anti-aliasing or fractional metrics.
|
|
FontRenderContext(AffineTransform
Constructs a
FontRenderContext object from an optional
AffineTransform and two
Object values that determine if the newly constructed object has anti-aliasing or fractional metrics.
|
|
TransformAttribute(AffineTransform
Wraps the specified transform.
|
| Modifier and Type | Method and Description |
|---|---|
AffineTransform |
AffineTransform.createInverse()
Returns an
AffineTransform object representing the inverse transformation.
|
static AffineTransform |
AffineTransform.getQuadrantRotateInstance(int numquadrants)
Returns a transform that rotates coordinates by the specified number of quadrants.
|
static AffineTransform |
AffineTransform.getQuadrantRotateInstance(int numquadrants, double anchorx, double anchory)
Returns a transform that rotates coordinates by the specified number of quadrants around the specified anchor point.
|
static AffineTransform |
AffineTransform.getRotateInstance(double theta)
Returns a transform representing a rotation transformation.
|
static AffineTransform |
AffineTransform.getRotateInstance(double vecx, double vecy)
Returns a transform that rotates coordinates according to a rotation vector.
|
static AffineTransform |
AffineTransform.getRotateInstance(double theta, double anchorx, double anchory)
Returns a transform that rotates coordinates around an anchor point.
|
static AffineTransform |
AffineTransform.getRotateInstance(double vecx, double vecy, double anchorx, double anchory)
Returns a transform that rotates coordinates around an anchor point according to a rotation vector.
|
static AffineTransform |
AffineTransform.getScaleInstance(double sx, double sy)
Returns a transform representing a scaling transformation.
|
static AffineTransform |
AffineTransform.getShearInstance(double shx, double shy)
Returns a transform representing a shearing transformation.
|
static AffineTransform |
AffineTransform.getTranslateInstance(double tx, double ty)
Returns a transform representing a translation transformation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AffineTransform.concatenate(AffineTransform
Concatenates an
AffineTransform
Tx to this
AffineTransform Cx in the most commonly useful way to provide a new user space that is mapped to the former user space by
Tx.
|
Area |
Area.createTransformedArea(AffineTransform
Creates a new
Area object that contains the same geometry as this
Area transformed by the specified
AffineTransform.
|
Shape |
Path2D.createTransformedShape(AffineTransform
Returns a new
Shape representing a transformed version of this
Path2D.
|
PathIterator |
QuadCurve2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of the shape of this
QuadCurve2D.
|
PathIterator |
Arc2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of the arc.
|
PathIterator |
Path2D.Float.getPathIterator(AffineTransform
Returns an iterator object that iterates along the
Shape boundary and provides access to the geometry of the
Shape outline.
|
PathIterator |
Path2D.Double.getPathIterator(AffineTransform
Returns an iterator object that iterates along the
Shape boundary and provides access to the geometry of the
Shape outline.
|
PathIterator |
Line2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of this
Line2D.
|
PathIterator |
Area.getPathIterator(AffineTransform
Creates a
PathIterator for the outline of this
Area object.
|
PathIterator |
Rectangle2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of this
Rectangle2D.
|
PathIterator |
CubicCurve2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of the shape.
|
PathIterator |
RoundRectangle2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of this
RoundRectangle2D.
|
PathIterator |
Ellipse2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of this
Ellipse2D.
|
PathIterator |
QuadCurve2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of the flattened shape of this
QuadCurve2D.
|
PathIterator |
Path2D.getPathIterator(AffineTransform
Returns an iterator object that iterates along the
Shape boundary and provides access to a flattened view of the
Shape outline geometry.
|
PathIterator |
Line2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of this flattened
Line2D.
|
PathIterator |
Area.getPathIterator(AffineTransform
Creates a
PathIterator for the flattened outline of this
Area object.
|
PathIterator |
Rectangle2D.getPathIterator(AffineTransform
Returns an iteration object that defines the boundary of the flattened
Rectangle2D.
|
PathIterator |
RectangularShape.getPathIterator(AffineTransform
Returns an iterator object that iterates along the
Shape object's boundary and provides access to a flattened view of the outline of the
Shape object's geometry.
|
PathIterator |
CubicCurve2D.getPathIterator(AffineTransform
Return an iteration object that defines the boundary of the flattened shape.
|
void |
AffineTransform.preConcatenate(AffineTransform
Concatenates an
AffineTransform
Tx to this
AffineTransform Cx in a less commonly used way such that
Tx modifies the coordinate transformation relative to the absolute pixel space rather than relative to the existing user space.
|
void |
AffineTransform.setTransform(AffineTransform
Sets this transform to a copy of the transform in the specified
AffineTransform object.
|
abstract void |
Path2D.transform(AffineTransform
Transforms the geometry of this path using the specified
AffineTransform.
|
void |
Path2D.Float.transform(AffineTransform
Transforms the geometry of this path using the specified
AffineTransform.
|
void |
Path2D.Double.transform(AffineTransform
Transforms the geometry of this path using the specified
AffineTransform.
|
void |
Area.transform(AffineTransform
Transforms the geometry of this
Area using the specified
AffineTransform.
|
| Constructor and Description | |
|---|---|
AffineTransform(AffineTransform
Constructs a new
AffineTransform that is a copy of the specified
AffineTransform object.
|
|
Double(Shape
Constructs a new double precision
Path2D object from an arbitrary
Shape object, transformed by an
AffineTransform object.
|
|
Float(Shape
Constructs a new single precision
Path2D object from an arbitrary
Shape object, transformed by an
AffineTransform object.
|
| Modifier and Type | Method and Description |
|---|---|
AffineTransform |
AffineTransformOp.getTransform()
Returns the affine transform used by this transform operation.
|
| Constructor and Description | |
|---|---|
AffineTransformOp(AffineTransform
Constructs an
AffineTransformOp given an affine transform and the interpolation type.
|
|
AffineTransformOp(AffineTransform
Constructs an
AffineTransformOp given an affine transform.
|
| Modifier and Type | Method and Description |
|---|---|
AffineTransform |
RenderContext.getTransform()
Gets the current user-to-device AffineTransform.
|
| Modifier and Type | Method and Description |
|---|---|
void |
RenderContext.concatenateTransform(AffineTransform
Modifies the current user-to-device transform by appending another transform.
|
void |
RenderContext.concetenateTransform(AffineTransform
Deprecated.
replaced by
concatenateTransform(AffineTransform).
|
void |
RenderContext.preConcatenateTransform(AffineTransform
Modifies the current user-to-device transform by prepending another transform.
|
void |
RenderContext.preConcetenateTransform(AffineTransform
Deprecated.
replaced by
preConcatenateTransform(AffineTransform).
|
void |
RenderContext.setTransform(AffineTransform
Sets the current user-to-device AffineTransform contained in the RenderContext to a given transform.
|
| Constructor and Description | |
|---|---|
RenderContext(AffineTransform
Constructs a RenderContext with a given transform.
|
|
RenderContext(AffineTransform
Constructs a RenderContext with a given transform and rendering hints.
|
|
RenderContext(AffineTransform
Constructs a RenderContext with a given transform and area of interest.
|
|
RenderContext(AffineTransform
Constructs a RenderContext with a given transform.
|