Search this API

y.layout.tree
Class AbstractRotatableNodePlacer.Matrix

java.lang.Object
  extended by y.layout.tree.AbstractRotatableNodePlacer.Matrix
Enclosing class:
AbstractRotatableNodePlacer

public static class AbstractRotatableNodePlacer.Matrix
extends java.lang.Object

A matrix describes the rotation of the subtree handled by AbstractRotatableNodePlacer.

Subtrees may be rotated or mirrored. Also, matrices offering a combination of rotation and mirroring are provided.

 

Field Summary
static java.util.List AVAILABLE
          A list of all available matrices.
static AbstractRotatableNodePlacer.Matrix DEFAULT
          The identity matrix which does not apply any rotation or mirroring.
static AbstractRotatableNodePlacer.Matrix MIR_HOR
          A matrix which applies a horizontal mirroring.
static AbstractRotatableNodePlacer.Matrix MIR_HOR_ROT90
          A matrix which applies a horizontal mirroring and a counter-clockwise rotation by 90 degrees.
static AbstractRotatableNodePlacer.Matrix MIR_VERT
          A matrix which applies a vertical mirroring.
static AbstractRotatableNodePlacer.Matrix MIR_VERT_ROT90
          A matrix which applies a vertical mirroring and a counter-clockwise rotation by 90 degrees.
static AbstractRotatableNodePlacer.Matrix ROT180
          A matrix which applies a rotation by 180 degrees.
static AbstractRotatableNodePlacer.Matrix ROT270
          A matrix which applies a counter-clockwise rotation by 270 degrees.
static AbstractRotatableNodePlacer.Matrix ROT90
          A matrix which applies a counter-clockwise rotation by 90 degrees.
 
Method Summary
 boolean equalValues(AbstractRotatableNodePlacer.Matrix other)
          Compares the values of the current AbstractRotatableNodePlacer.Matrix with the values of the given AbstractRotatableNodePlacer.Matrix.
 AbstractRotatableNodePlacer.Matrix multiply(AbstractRotatableNodePlacer.Matrix other)
          Multiplies this AbstractRotatableNodePlacer.Matrix with the given other AbstractRotatableNodePlacer.Matrix.
 java.lang.String toString()
          Returns a String representation of this AbstractRotatableNodePlacer.Matrix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT

public static final AbstractRotatableNodePlacer.Matrix DEFAULT
The identity matrix which does not apply any rotation or mirroring.


ROT90

public static final AbstractRotatableNodePlacer.Matrix ROT90
A matrix which applies a counter-clockwise rotation by 90 degrees.


ROT180

public static final AbstractRotatableNodePlacer.Matrix ROT180
A matrix which applies a rotation by 180 degrees.


ROT270

public static final AbstractRotatableNodePlacer.Matrix ROT270
A matrix which applies a counter-clockwise rotation by 270 degrees.


MIR_HOR

public static final AbstractRotatableNodePlacer.Matrix MIR_HOR
A matrix which applies a horizontal mirroring.


MIR_VERT

public static final AbstractRotatableNodePlacer.Matrix MIR_VERT
A matrix which applies a vertical mirroring.


MIR_HOR_ROT90

public static final AbstractRotatableNodePlacer.Matrix MIR_HOR_ROT90
A matrix which applies a horizontal mirroring and a counter-clockwise rotation by 90 degrees.


MIR_VERT_ROT90

public static final AbstractRotatableNodePlacer.Matrix MIR_VERT_ROT90
A matrix which applies a vertical mirroring and a counter-clockwise rotation by 90 degrees.


AVAILABLE

public static final java.util.List AVAILABLE
A list of all available matrices.

Method Detail

multiply

public AbstractRotatableNodePlacer.Matrix multiply(AbstractRotatableNodePlacer.Matrix other)
Multiplies this AbstractRotatableNodePlacer.Matrix with the given other AbstractRotatableNodePlacer.Matrix.

Parameters:
other - the other matrix
Returns:
the product of both matrices

toString

public java.lang.String toString()
Returns a String representation of this AbstractRotatableNodePlacer.Matrix.

Overrides:
toString in class java.lang.Object
Returns:
the String representing this AbstractRotatableNodePlacer.Matrix

equalValues

public boolean equalValues(AbstractRotatableNodePlacer.Matrix other)
Compares the values of the current AbstractRotatableNodePlacer.Matrix with the values of the given AbstractRotatableNodePlacer.Matrix.

Parameters:
other - the matrix
Returns:
true if this matrix and the given other matrix contain the same values, false otherwise

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.