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 Object

Instances of this class may be used to configure the AbstractRotatableNodePlacer. The possible transformations are:


Field Summary
static List AVAILABLE
           
static AbstractRotatableNodePlacer.Matrix DEFAULT
          no transformation
static AbstractRotatableNodePlacer.Matrix MIR_HOR
          mirror horizontally
static AbstractRotatableNodePlacer.Matrix MIR_HOR_ROT90
          mirror horizontally and rotate by 90 degrees counter-clockwise
static AbstractRotatableNodePlacer.Matrix MIR_VERT
          mirror vertically
static AbstractRotatableNodePlacer.Matrix MIR_VERT_ROT90
          mirror vertically and rotate by 90 degrees counter-clockwise
static AbstractRotatableNodePlacer.Matrix ROT180
          rotation by 180 degrees
static AbstractRotatableNodePlacer.Matrix ROT270
          rotation by 270 degrees counter-clockwise
static AbstractRotatableNodePlacer.Matrix ROT90
          rotation by 90 degrees counter-clockwise
 
Method Summary
 boolean equalValues(AbstractRotatableNodePlacer.Matrix result)
          Compares the values of the actual matrix with the values of the given matrix
 AbstractRotatableNodePlacer.Matrix multiply(AbstractRotatableNodePlacer.Matrix other)
          Multiplies this matrix with another matrix.
 String toString()
          Returns a String representation of this 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
no transformation


ROT90

public static final AbstractRotatableNodePlacer.Matrix ROT90
rotation by 90 degrees counter-clockwise


ROT180

public static final AbstractRotatableNodePlacer.Matrix ROT180
rotation by 180 degrees


ROT270

public static final AbstractRotatableNodePlacer.Matrix ROT270
rotation by 270 degrees counter-clockwise


MIR_HOR

public static final AbstractRotatableNodePlacer.Matrix MIR_HOR
mirror horizontally


MIR_VERT

public static final AbstractRotatableNodePlacer.Matrix MIR_VERT
mirror vertically


MIR_HOR_ROT90

public static final AbstractRotatableNodePlacer.Matrix MIR_HOR_ROT90
mirror horizontally and rotate by 90 degrees counter-clockwise


MIR_VERT_ROT90

public static final AbstractRotatableNodePlacer.Matrix MIR_VERT_ROT90
mirror vertically and rotate by 90 degrees counter-clockwise


AVAILABLE

public static final List AVAILABLE
Method Detail

multiply

public AbstractRotatableNodePlacer.Matrix multiply(AbstractRotatableNodePlacer.Matrix other)
Multiplies this matrix with another matrix.

Parameters:
other - the other matrix
Returns:
the product of this and the other matrix

toString

public String toString()
Returns a String representation of this matrix.

Overrides:
toString in class Object
Returns:
a String representing this matrix

equalValues

public boolean equalValues(AbstractRotatableNodePlacer.Matrix result)
Compares the values of the actual matrix with the values of the given matrix

Parameters:
result - the given matrix
Returns:
true if all values are the same, false otherwise

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