- java.lang.Object
-
- java.lang.Enum<MatrixType>
-
- javafx.scene.transform.MatrixType
-
- All Implemented Interfaces:
Serializable
,Comparable<MatrixType>
public enum MatrixType extends Enum<MatrixType>
Specifies type of transformation matrix.- Since:
- JavaFX 8.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MT_2D_2x3
A 2D affine transformation matrix of 2 rows and 3 columns containing the following values:MT_2D_3x3
A 2D transformation matrix of 3 rows and 3 columns.MT_3D_3x4
A 3D affine transformation matrix of 3 rows and 4 columns containing the following values:MT_3D_4x4
A 3D transformation matrix of 4 rows and 4 columns.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
columns()
Returns the number of columns in the matrix of this type.int
elements()
Returns the number of elements in the matrix of this type.boolean
is2D()
Specifies if this is a 2D transformation matrixint
rows()
Returns the number of rows in the matrix of this type.static MatrixType
valueOf(String name)
Returns the enum constant of this type with the specified name.static MatrixType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MT_2D_2x3
public static final MatrixType MT_2D_2x3
A 2D affine transformation matrix of 2 rows and 3 columns containing the following values:mxx, mxy, tx, myx, myy, ty
-
MT_2D_3x3
public static final MatrixType MT_2D_3x3
A 2D transformation matrix of 3 rows and 3 columns. For affine transforms the last line is constant, so the matrix contains the following values:mxx, mxy, tx, myx, myy, ty, 0, 0, 1
-
MT_3D_3x4
public static final MatrixType MT_3D_3x4
A 3D affine transformation matrix of 3 rows and 4 columns containing the following values:mxx, mxy, mxz, tx, myx, myy, myz, ty, mzx, mzy, mzz, tz
-
MT_3D_4x4
public static final MatrixType MT_3D_4x4
A 3D transformation matrix of 4 rows and 4 columns. For affine transforms the last line is constant, so the matrix contains the following values:mxx, mxy, mxz, tx, myx, myy, myz, ty, mzx, mzy, mzz, tz, 0, 0, 0, 1
-
-
Method Detail
-
values
public static MatrixType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MatrixType c : MatrixType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatrixType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
elements
public int elements()
Returns the number of elements in the matrix of this type.- Returns:
- the number of elements in the matrix of this type
-
rows
public int rows()
Returns the number of rows in the matrix of this type.- Returns:
- the number of rows in the matrix of this type
-
columns
public int columns()
Returns the number of columns in the matrix of this type.- Returns:
- the number of columns in the matrix of this type
-
is2D
public boolean is2D()
Specifies if this is a 2D transformation matrix- Returns:
- true if this is a 2D transformation matrix, false if this is a 3D transformation matrix
-
-