Uses of Class
java.awt.geom.AffineTransform
Packages that use AffineTransform
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes and interface relating to fonts.
Provides the Java 2D classes for defining and performing operations on
objects related to two-dimensional geometry.
Provides classes for creating and modifying images.
Provides classes and interfaces for producing rendering-independent images.
-
Uses of AffineTransform in java.awt
Methods in java.awt that return AffineTransformModifier and TypeMethodDescriptionabstract AffineTransformGraphicsConfiguration.getDefaultTransform()Returns the defaultAffineTransformfor thisGraphicsConfiguration.abstract AffineTransformGraphicsConfiguration.getNormalizingTransform()Returns anAffineTransformthat can be concatenated with the defaultAffineTransformof aGraphicsConfigurationso that 72 units in user space equals 1 inch in device space.Font.getTransform()Returns a copy of the transform associated with thisFont.abstract AffineTransformGraphics2D.getTransform()Returns a copy of the currentTransformin theGraphics2Dcontext.final AffineTransformMultipleGradientPaint.getTransform()Returns a copy of the transform applied to the gradient.Methods in java.awt with parameters of type AffineTransformModifier and TypeMethodDescriptionColor.createContext(ColorModel cm, Rectangle r, Rectangle2D r2d, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a solid color field pattern.GradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a linear color gradient pattern.LinearGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) Creates and returns aPaintContextused to generate a linear color gradient pattern.Paint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate the color pattern.RadialGradientPaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform transform, RenderingHints hints) Creates and returns aPaintContextused to generate a circular radial color gradient pattern.TexturePaint.createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) Creates and returns aPaintContextused to generate a tiled image pattern.Font.deriveFont(int style, AffineTransform trans) Creates a newFontobject by replicating thisFontobject and applying a new style and transform.Font.deriveFont(AffineTransform trans) Creates a newFontobject by replicating the currentFontobject and applying a new transform to it.abstract booleanGraphics2D.drawImage(Image img, AffineTransform xform, ImageObserver obs) Renders an image, applying a transform from image space into user space before drawing.abstract voidGraphics2D.drawRenderableImage(RenderableImage img, AffineTransform xform) Renders aRenderableImage, applying a transform from image space into user space before drawing.abstract voidGraphics2D.drawRenderedImage(RenderedImage img, AffineTransform xform) Renders aRenderedImage, applying a transform from image space into user space before drawing.Polygon.getPathIterator(AffineTransform at) Returns an iterator object that iterates along the boundary of thisPolygonand provides access to the geometry of the outline of thisPolygon.Polygon.getPathIterator(AffineTransform at, double flatness) Returns an iterator object that iterates along the boundary of theShapeand provides access to the geometry of the outline of theShape.Shape.getPathIterator(AffineTransform at) Returns an iterator object that iterates along theShapeboundary and provides access to the geometry of theShapeoutline.Shape.getPathIterator(AffineTransform at, double flatness) Returns an iterator object that iterates along theShapeboundary and provides access to a flattened view of theShapeoutline geometry.abstract voidGraphics2D.setTransform(AffineTransform Tx) Overwrites the Transform in theGraphics2Dcontext.abstract voidGraphics2D.transform(AffineTransform Tx) Composes anAffineTransformobject with theTransformin thisGraphics2Daccording to the rule last-specified-first-applied.Constructors in java.awt with parameters of type AffineTransformModifierConstructorDescriptionLinearGradientPaint(Point2D start, Point2D end, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform) Constructs aLinearGradientPaint.RadialGradientPaint(Point2D center, float radius, Point2D focus, float[] fractions, Color[] colors, MultipleGradientPaint.CycleMethod cycleMethod, MultipleGradientPaint.ColorSpaceType colorSpace, AffineTransform gradientTransform) Constructs aRadialGradientPaint. -
Uses of AffineTransform in java.awt.font
Methods in java.awt.font that return AffineTransformModifier and TypeMethodDescriptionabstract AffineTransformGlyphVector.getGlyphTransform(int glyphIndex) Returns the transform of the specified glyph within thisGlyphVector.FontRenderContext.getTransform()Gets the transform that is used to scale typographical points to pixels in thisFontRenderContext.TransformAttribute.getTransform()Returns a copy of the wrapped transform.Methods in java.awt.font with parameters of type AffineTransformModifier and TypeMethodDescriptionGraphicAttribute.getOutline(AffineTransform tx) Return aShapethat represents the region that thisGraphicAttributerenders.ShapeGraphicAttribute.getOutline(AffineTransform tx) Return aShapethat represents the region that thisShapeGraphicAttributerenders.TextLayout.getOutline(AffineTransform tx) Returns aShaperepresenting the outline of thisTextLayout.abstract voidGlyphVector.setGlyphTransform(int glyphIndex, AffineTransform newTX) Sets the transform of the specified glyph within thisGlyphVector.Constructors in java.awt.font with parameters of type AffineTransformModifierConstructorDescriptionFontRenderContext(AffineTransform tx, boolean isAntiAliased, boolean usesFractionalMetrics) Constructs aFontRenderContextobject from an optionalAffineTransformand twobooleanvalues that determine if the newly constructed object has anti-aliasing or fractional metrics.FontRenderContext(AffineTransform tx, Object aaHint, Object fmHint) Constructs aFontRenderContextobject from an optionalAffineTransformand twoObjectvalues that determine if the newly constructed object has anti-aliasing or fractional metrics.TransformAttribute(AffineTransform transform) Wraps the specified transform. -
Uses of AffineTransform in java.awt.geom
Methods in java.awt.geom that return AffineTransformModifier and TypeMethodDescriptionAffineTransform.createInverse()Returns anAffineTransformobject representing the inverse transformation.static AffineTransformAffineTransform.getQuadrantRotateInstance(int numquadrants) Returns a transform that rotates coordinates by the specified number of quadrants.static AffineTransformAffineTransform.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 AffineTransformAffineTransform.getRotateInstance(double theta) Returns a transform representing a rotation transformation.static AffineTransformAffineTransform.getRotateInstance(double vecx, double vecy) Returns a transform that rotates coordinates according to a rotation vector.static AffineTransformAffineTransform.getRotateInstance(double theta, double anchorx, double anchory) Returns a transform that rotates coordinates around an anchor point.static AffineTransformAffineTransform.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 AffineTransformAffineTransform.getScaleInstance(double sx, double sy) Returns a transform representing a scaling transformation.static AffineTransformAffineTransform.getShearInstance(double shx, double shy) Returns a transform representing a shearing transformation.static AffineTransformAffineTransform.getTranslateInstance(double tx, double ty) Returns a transform representing a translation transformation.Methods in java.awt.geom with parameters of type AffineTransformModifier and TypeMethodDescriptionvoidAffineTransform.concatenate(AffineTransform Tx) Concatenates anAffineTransform Txto thisAffineTransformCx in the most commonly useful way to provide a new user space that is mapped to the former user space byTx.Area.createTransformedArea(AffineTransform t) Creates a newAreaobject that contains the same geometry as thisAreatransformed by the specifiedAffineTransform.final ShapePath2D.createTransformedShape(AffineTransform at) Returns a newShaperepresenting a transformed version of thisPath2D.Arc2D.getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of the arc.Area.getPathIterator(AffineTransform at) Creates aPathIteratorfor the outline of thisAreaobject.Area.getPathIterator(AffineTransform at, double flatness) Creates aPathIteratorfor the flattened outline of thisAreaobject.CubicCurve2D.getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of the shape.CubicCurve2D.getPathIterator(AffineTransform at, double flatness) Return an iteration object that defines the boundary of the flattened shape.Ellipse2D.getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of thisEllipse2D.Line2D.getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of thisLine2D.Line2D.getPathIterator(AffineTransform at, double flatness) Returns an iteration object that defines the boundary of this flattenedLine2D.final PathIteratorPath2D.Double.getPathIterator(AffineTransform at) Returns an iterator object that iterates along theShapeboundary and provides access to the geometry of theShapeoutline.final PathIteratorPath2D.Float.getPathIterator(AffineTransform at) Returns an iterator object that iterates along theShapeboundary and provides access to the geometry of theShapeoutline.final PathIteratorPath2D.getPathIterator(AffineTransform at, double flatness) Returns an iterator object that iterates along theShapeboundary and provides access to a flattened view of theShapeoutline geometry.QuadCurve2D.getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of the shape of thisQuadCurve2D.QuadCurve2D.getPathIterator(AffineTransform at, double flatness) Returns an iteration object that defines the boundary of the flattened shape of thisQuadCurve2D.Rectangle2D.getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of thisRectangle2D.Rectangle2D.getPathIterator(AffineTransform at, double flatness) Returns an iteration object that defines the boundary of the flattenedRectangle2D.RectangularShape.getPathIterator(AffineTransform at, double flatness) Returns an iterator object that iterates along theShapeobject's boundary and provides access to a flattened view of the outline of theShapeobject's geometry.RoundRectangle2D.getPathIterator(AffineTransform at) Returns an iteration object that defines the boundary of thisRoundRectangle2D.voidAffineTransform.preConcatenate(AffineTransform Tx) Concatenates anAffineTransform Txto thisAffineTransformCx in a less commonly used way such thatTxmodifies the coordinate transformation relative to the absolute pixel space rather than relative to the existing user space.voidAffineTransform.setTransform(AffineTransform Tx) Sets this transform to a copy of the transform in the specifiedAffineTransformobject.voidArea.transform(AffineTransform t) Transforms the geometry of thisAreausing the specifiedAffineTransform.final voidPath2D.Double.transform(AffineTransform at) Transforms the geometry of this path using the specifiedAffineTransform.final voidPath2D.Float.transform(AffineTransform at) Transforms the geometry of this path using the specifiedAffineTransform.abstract voidPath2D.transform(AffineTransform at) Transforms the geometry of this path using the specifiedAffineTransform.Constructors in java.awt.geom with parameters of type AffineTransformModifierConstructorDescriptionConstructs a newAffineTransformthat is a copy of the specifiedAffineTransformobject.Double(Shape s, AffineTransform at) Constructs a new double precisionPath2Dobject from an arbitraryShapeobject, transformed by anAffineTransformobject.Float(Shape s, AffineTransform at) Constructs a new single precisionPath2Dobject from an arbitraryShapeobject, transformed by anAffineTransformobject. -
Uses of AffineTransform in java.awt.image
Methods in java.awt.image that return AffineTransformModifier and TypeMethodDescriptionfinal AffineTransformAffineTransformOp.getTransform()Returns the affine transform used by this transform operation.Constructors in java.awt.image with parameters of type AffineTransformModifierConstructorDescriptionAffineTransformOp(AffineTransform xform, int interpolationType) Constructs anAffineTransformOpgiven an affine transform and the interpolation type.AffineTransformOp(AffineTransform xform, RenderingHints hints) Constructs anAffineTransformOpgiven an affine transform. -
Uses of AffineTransform in java.awt.image.renderable
Methods in java.awt.image.renderable that return AffineTransformModifier and TypeMethodDescriptionRenderContext.getTransform()Gets the current user-to-device AffineTransform.Methods in java.awt.image.renderable with parameters of type AffineTransformModifier and TypeMethodDescriptionvoidRenderContext.concatenateTransform(AffineTransform modTransform) Modifies the current user-to-device transform by appending another transform.voidRenderContext.concetenateTransform(AffineTransform modTransform) Deprecated.voidRenderContext.preConcatenateTransform(AffineTransform modTransform) Modifies the current user-to-device transform by prepending another transform.voidRenderContext.preConcetenateTransform(AffineTransform modTransform) Deprecated.replaced bypreConcatenateTransform(AffineTransform).voidRenderContext.setTransform(AffineTransform newTransform) Sets the current user-to-device AffineTransform contained in the RenderContext to a given transform.Constructors in java.awt.image.renderable with parameters of type AffineTransformModifierConstructorDescriptionRenderContext(AffineTransform usr2dev) Constructs a RenderContext with a given transform.RenderContext(AffineTransform usr2dev, RenderingHints hints) Constructs a RenderContext with a given transform and rendering hints.RenderContext(AffineTransform usr2dev, Shape aoi) Constructs a RenderContext with a given transform and area of interest.RenderContext(AffineTransform usr2dev, Shape aoi, RenderingHints hints) Constructs a RenderContext with a given transform.
concatenateTransform(AffineTransform).