|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.hierarchic.incremental.DefaultLayeredComponentsMerger
public class DefaultLayeredComponentsMerger
A default implementation of a LayeredComponentsMerger
that provides
simple default behaviors. Instances of this class are used internally
by HierarchicLayouter
and MultiComponentLayerer
e.g.
Field Summary | |
---|---|
static byte |
POLICY_ADD_ABOVE
Constant for merging policy. |
static byte |
POLICY_ADD_BELOW
Constant for merging policy. |
static byte |
POLICY_ADD_LEFT_BOTTOM_ALIGNED
Constant for merging policy. |
static byte |
POLICY_ADD_LEFT_CENTER_ALIGNED
Constant for merging policy. |
static byte |
POLICY_ADD_LEFT_TOP_ALIGNED
Constant for merging policy. |
static byte |
POLICY_ADD_RIGHT_BOTTOM_ALIGNED
Constant for merging policy. |
static byte |
POLICY_ADD_RIGHT_CENTER_ALIGNED
Constant for merging policy. |
static byte |
POLICY_ADD_RIGHT_TOP_ALIGNED
Constant for merging policy. |
Constructor Summary | |
---|---|
DefaultLayeredComponentsMerger()
Creates a new instance of DefaultLayeredComponentsMerger with default policy ( POLICY_ADD_RIGHT_TOP_ALIGNED ) |
|
DefaultLayeredComponentsMerger(byte policy)
Creates a new instance of DefaultLayeredComponentsMerger using the given policy constant. |
Method Summary | |
---|---|
byte |
getPolicy()
Returns the current policy constant. |
void |
merge(LayoutGraph graph,
LayoutDataProvider ldp,
Layers srcLayers,
Layers targetLayers)
All nodes in srcLayers and targetLayers are part of graph at the moment of invocation. |
void |
setPolicy(byte policy)
Sets the policy constant as defined in DefaultLayeredComponentsMerger . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte POLICY_ADD_BELOW
public static final byte POLICY_ADD_ABOVE
public static final byte POLICY_ADD_RIGHT_TOP_ALIGNED
public static final byte POLICY_ADD_RIGHT_BOTTOM_ALIGNED
public static final byte POLICY_ADD_RIGHT_CENTER_ALIGNED
public static final byte POLICY_ADD_LEFT_TOP_ALIGNED
public static final byte POLICY_ADD_LEFT_BOTTOM_ALIGNED
public static final byte POLICY_ADD_LEFT_CENTER_ALIGNED
Constructor Detail |
---|
public DefaultLayeredComponentsMerger()
POLICY_ADD_RIGHT_TOP_ALIGNED
)
public DefaultLayeredComponentsMerger(byte policy)
Method Detail |
---|
public byte getPolicy()
public void setPolicy(byte policy)
DefaultLayeredComponentsMerger
.
policy
- the new policy constantpublic void merge(LayoutGraph graph, LayoutDataProvider ldp, Layers srcLayers, Layers targetLayers)
LayeredComponentsMerger
merge
in interface LayeredComponentsMerger
graph
- the graph that contains the nodes in srcLayers
and
targetLayers
.ldp
- the LayoutDataProvider that can be used to query the layer indicessrcLayers
- the Layers implementation that contains the layers that
will be merged into targetLayers
targetLayers
- the Layers that will be modified to contain the resulting
layering
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |