Top Description Fields Constructors Methods
javafx.scene.transform

public final Enum MatrixType

extends Enum<MatrixType>
Class Inheritance

Specifies type of transformation matrix.
Since
JavaFX 8.0

Field Summary

Modifier and TypeField and Description
private int
public static final MatrixType
MT_2D_2x3

A 2D affine transformation matrix of 2 rows and 3 columns.

public static final MatrixType
MT_2D_3x3

A 2D transformation matrix of 3 rows and 3 columns.

public static final MatrixType
MT_3D_3x4

A 3D affine transformation matrix of 3 rows and 4 columns.

public static final MatrixType
MT_3D_4x4

A 3D transformation matrix of 4 rows and 4 columns.

private int

Constructor Summary

AccessConstructor and Description
private
MatrixType(int rows, int cols)

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the number of columns in the matrix of this type
columns
()

Returns the number of columns in the matrix of this type.

public int

Returns:

the number of elements in the matrix of this type
elements
()

Returns the number of elements in the matrix of this type.

public boolean

Returns:

true if this is a 2D transformation matrix, false if this is a 3D transformation matrix
is2D
()

Specifies if this is a 2D transformation matrix

public int

Returns:

the number of rows in the matrix of this type
rows
()

Returns the number of rows in the matrix of this type.

public static MatrixType
public static MatrixType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

colsback to summary
private int cols
MT_2D_2x3back to summary
public static final MatrixType MT_2D_2x3

A 2D affine transformation matrix of 2 rows and 3 columns. Contains the following values:

mxx, mxy, tx,
myx, myy, ty
MT_2D_3x3back to summary
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_3x4back to summary
public static final MatrixType MT_3D_3x4

A 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_4x4back to summary
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
rowsback to summary
private int rows

Constructor Detail

MatrixTypeback to summary
private MatrixType(int rows, int cols)

Method Detail

columnsback to summary
public int columns()

Returns the number of columns in the matrix of this type.

Returns:int

the number of columns in the matrix of this type

elementsback to summary
public int elements()

Returns the number of elements in the matrix of this type.

Returns:int

the number of elements in the matrix of this type

is2Dback to summary
public boolean is2D()

Specifies if this is a 2D transformation matrix

Returns:boolean

true if this is a 2D transformation matrix, false if this is a 3D transformation matrix

rowsback to summary
public int rows()

Returns the number of rows in the matrix of this type.

Returns:int

the number of rows in the matrix of this type

valueOfback to summary
public static MatrixType valueOf(String name)
valuesback to summary
public static MatrixType[] values()