- All Implemented Interfaces:
- Serializable,- Comparable<MatrixType>,- Constable
public enum MatrixType extends Enum<MatrixType>
Specifies type of transformation matrix.
- Since:
- JavaFX 8.0
- 
Nested Class SummaryNested classes/interfaces declared in class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants Enum Constant Description MT_2D_2x3A 2D affine transformation matrix of 2 rows and 3 columns.MT_2D_3x3A 2D transformation matrix of 3 rows and 3 columns.MT_3D_3x4A 3D affine transformation matrix of 3 rows and 4 columns.MT_3D_4x4A 3D transformation matrix of 4 rows and 4 columns.
- 
Method SummaryModifier and Type Method Description intcolumns()Returns the number of columns in the matrix of this type.intelements()Returns the number of elements in the matrix of this type.booleanis2D()Specifies if this is a 2D transformation matrixintrows()Returns the number of rows in the matrix of this type.static MatrixTypevalueOf(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 Details- 
MT_2D_2x3A 2D affine transformation matrix of 2 rows and 3 columns. Contains the following values:mxx, mxy, tx, myx, myy, ty 
- 
MT_2D_3x3A 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_3x4A 3D affine transformation matrix of 3 rows and 4 columns. Contains the following values:mxx, mxy, mxz, tx, myx, myy, myz, ty, mzx, mzy, mzz, tz 
- 
MT_3D_4x4A 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 Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
elementspublic int elements()Returns the number of elements in the matrix of this type.- Returns:
- the number of elements in the matrix of this type
 
- 
rowspublic int rows()Returns the number of rows in the matrix of this type.- Returns:
- the number of rows in the matrix of this type
 
- 
columnspublic int columns()Returns the number of columns in the matrix of this type.- Returns:
- the number of columns in the matrix of this type
 
- 
is2Dpublic 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
 
 
-