Spec-Zone .ru
спецификации, руководства, описания, API
|
public abstract class Transform
extends java.lang.Object
Example:
Rectangle rect = new Rectangle(50,50, Color.RED);
rect.getTransforms().add(new Rotate(45,0,0)); //rotate by 45 degrees
Constructor and Description |
---|
Transform() |
Modifier and Type | Method and Description |
---|---|
static Affine |
affine(double mxx,
double myx,
double mxy,
double myy,
double tx,
double ty)
Returns a new
Affine object from 12 number
values representing the 6 specifiable entries of the 3x4
Affine transformation matrix. |
static Affine |
affine(double mxx,
double mxy,
double mxz,
double tx,
double myx,
double myy,
double myz,
double ty,
double mzx,
double mzy,
double mzz,
double tz)
Returns a new
Affine object from 12 number
values representing the 12 specifiable entries of the 3x4
Affine transformation matrix. |
double |
getMxx()
Gets the X coordinate scaling element of the 3x4 matrix.
|
double |
getMxy()
Gets the XY coordinate element of the 3x4 matrix.
|
double |
getMxz()
Gets the XZ coordinate element of the 3x4 matrix.
|
double |
getMyx()
Gets the YX coordinate element of the 3x4 matrix.
|
double |
getMyy()
Gets the Y coordinate scaling element of the 3x4 matrix.
|
double |
getMyz()
Gets the YZ coordinate element of the 3x4 matrix.
|
double |
getMzx()
Gets the ZX coordinate element of the 3x4 matrix.
|
double |
getMzy()
Gets the ZY coordinate element of the 3x4 matrix.
|
double |
getMzz()
Gets the Z coordinate scaling element of the 3x4 matrix.
|
double |
getTx()
Gets the X coordinate translation element of the 3x4 matrix.
|
double |
getTy()
Gets the Y coordinate translation element of the 3x4 matrix.
|
double |
getTz()
Gets the Z coordinate translation element of the 3x4 matrix.
|
static Rotate |
rotate(double angle,
double pivotX,
double pivotY)
Returns a
Rotate object that rotates coordinates around a pivot
point. |
static Scale |
scale(double x,
double y)
Returns a
Scale object representing a scaling transformation. |
static Scale |
scale(double x,
double y,
double pivotX,
double pivotY)
Returns a
Scale object representing a scaling transformation. |
static Shear |
shear(double x,
double y)
Returns a
Shear object representing a shearing transformation. |
static Shear |
shear(double x,
double y,
double pivotX,
double pivotY)
Returns a
Shear object representing a shearing transformation. |
static Translate |
translate(double x,
double y)
Returns a
Translate object representing a translation transformation. |
public static Affine affine(double mxx, double myx, double mxy, double myy, double tx, double ty)
Affine
object from 12 number
values representing the 6 specifiable entries of the 3x4
Affine transformation matrix.mxx
- the X coordinate scaling element of the 3x4 matrixmyx
- the Y coordinate shearing element of the 3x4 matrixmxy
- the X coordinate shearing element of the 3x4 matrixmyy
- the Y coordinate scaling element of the 3x4 matrixtx
- the X coordinate translation element of the 3x4 matrixty
- the Y coordinate translation element of the 3x4 matrixAffine
object derived from specified parameterspublic static Affine affine(double mxx, double mxy, double mxz, double tx, double myx, double myy, double myz, double ty, double mzx, double mzy, double mzz, double tz)
Affine
object from 12 number
values representing the 12 specifiable entries of the 3x4
Affine transformation matrix.mxx
- the X coordinate scaling element of the 3x4 matrixmxy
- the XY element of the 3x4 matrixmxz
- the XZ element of the 3x4 matrixtx
- the X coordinate translation element of the 3x4 matrixmyx
- the YX element of the 3x4 matrixmyy
- the Y coordinate scaling element of the 3x4 matrixmyz
- the YZ element of the 3x4 matrixty
- the Y coordinate translation element of the 3x4 matrixmzx
- the ZX element of the 3x4 matrixmzy
- the ZY element of the 3x4 matrixmzz
- the Z coordinate scaling element of the 3x4 matrixtz
- the Z coordinate translation element of the 3x4 matrixAffine
object derived from specified parameterspublic static Translate translate(double x, double y)
Translate
object representing a translation transformation.
This is equivalent to:
new Translate(x, y);
public static Rotate rotate(double angle, double pivotX, double pivotY)
Rotate
object that rotates coordinates around a pivot
point.
This is equivalent to:
new Rotate(angle, pivotX, pivotY);
public static Scale scale(double x, double y)
Scale
object representing a scaling transformation.
This is equivalent to:
new Scale(x, y);
public static Scale scale(double x, double y, double pivotX, double pivotY)
Scale
object representing a scaling transformation.
The returned scale operation will be about the given pivot point.
This is equivalent to:
new Scale(x, y, pivotX, pivotY);
public static Shear shear(double x, double y)
Shear
object representing a shearing transformation.
This is equivalent to:
new Shear(x, y);
public static Shear shear(double x, double y, double pivotX, double pivotY)
Shear
object representing a shearing transformation.
This is equivalent to:
new Shear(x, y, pivotX, pivotY);
public double getMxx()
public double getMxy()
public double getMxz()
public double getTx()
public double getMyx()
public double getMyy()
public double getMyz()
public double getTy()
public double getMzx()
public double getMzy()
public double getMzz()
public double getTz()
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to