suvi.api.alg.attr
Class GraphLayoutAttrTransformer
java.lang.Object
|
+--suvi.api.alg.attr.GraphLayoutAttrTransformer
- All Implemented Interfaces:
- FlowTrendConstants
- public abstract class GraphLayoutAttrTransformer
- extends java.lang.Object
- implements FlowTrendConstants
Canonicalization transformation function for graph layout
attributes. Each graph layout attribute interface, that contains
geometry information that needs to be canonicalized, must contain a
static constant field named TRANSFORMER
that implements
this class.
Fields inherited from interface suvi.api.alg.attr.FlowTrendConstants |
FT_BIT_MASK, FT_CANONICAL, FT_DOWN_LEFT, FT_DOWN_RIGHT, FT_INVERT_ORDERING_FLAG, FT_INVERT_RANKING_FLAG, FT_LEFT_DOWN, FT_LEFT_UP, FT_RIGHT_DOWN, FT_RIGHT_UP, FT_ROTATE_FLAG, FT_UP_LEFT, FT_UP_RIGHT |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GraphLayoutAttrTransformer
public GraphLayoutAttrTransformer()
transformed
public abstract GraphLayoutAttr transformed(GraphLayoutAttr attr,
int flowTrend)
The given attributes transformed appropriately to the canonical
FlowTrendConstants.FT_CANONICAL
-trend from the requested trend.
flipAxesInPlace
protected static java.awt.Dimension flipAxesInPlace(java.awt.Dimension dim)
Swaps the width
- and height
-fields of
the given dimension object and returns the same object.