|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.CanonicMultiStageLayouter y.layout.circular.CircularLayouter
public class CircularLayouter
Circular style layouter. This layouter either places all nodes on or inside a circle
or partitions the graph in disjoint node sets each of
which will be laid out separately. The exact behavior for the layout of these partitions
can be controlled via setPartitionLayoutStyle(byte)
. The partition policy
can be set with setLayoutStyle(byte)
.
The separate partitions themselves
are arranged using a BalloonLayouter
.
BCC_COMPACT
as partition policy
and PARTITION_LAYOUTSTYLE_CYCLIC
as layout style for the partitions.
Field Summary | |
---|---|
static byte |
BCC_COMPACT
Layout style specifier. |
static byte |
BCC_ISOLATED
Layout style specifier. |
static Object |
CIRCLE_ID_HOLDER_DPKEY
Used for publishing the final circle information. |
static byte |
CIRCULAR_CUSTOM_GROUPS
Layout style specifier. |
static Object |
CIRCULAR_CUSTOM_GROUPS_DPKEY
This key is used to identify custom groups. |
static byte |
PARTITION_LAYOUTSTYLE_CYCLIC
Place each node of a partition on the boundary of a circle. |
static byte |
PARTITION_LAYOUTSTYLE_DISK
Create semi-compact layout for each partition. |
static byte |
PARTITION_LAYOUTSTYLE_ORGANIC
Create most compact layout for each partition. |
static byte |
SINGLE_CYCLE
Layout style specifier. |
Fields inherited from interface y.layout.Layouter |
---|
EDGE_ID_DPKEY, NODE_ID_DPKEY, SELECTED_EDGES, SELECTED_NODES |
Constructor Summary | |
---|---|
CircularLayouter()
Create a new instance of this layouter. |
Method Summary | |
---|---|
boolean |
canLayoutCore(LayoutGraph graph)
Always returns true . |
void |
doLayout(LayoutGraph layoutGraph)
Calculates a layout for the given graph. |
void |
doLayoutCore(LayoutGraph graph)
Core layout routine. |
BalloonLayouter |
getBalloonLayouter()
Returns the BalloonLayouter used for arranging the partitions Configuring that layouter has effect upon the partition arrangement within the overall layout. |
byte |
getLayoutStyle()
Returns the global layout style for this layouter. |
int |
getMaximalDeviationAngle()
Returns the maximal deviation angle allowed for an edge. |
byte |
getPartitionLayoutStyle()
Returns the layout style for the arrangement of each partition. |
SingleCycleLayouter |
getSingleCycleLayouter()
Returns the SingleCycleLayouter used for laying out single node cycles Configuring that layouter has effects upon single cycle layouts |
boolean |
isConsiderNodeLabelsEnabled()
Returns whether or not node labels are taken into account when calculating node positions (thereby preventing possible node/node label or node label/node label overlaps). |
boolean |
isFromSketchModeEnabled()
Returns whether or not to take the coordinates of the input diagram into account when arranging the nodes of the partitions and the partitions themselves. |
boolean |
isPlaceChildrenOnCommonRadiusEnabled()
Returns whether or not, in the underlying tree, the children of a node are placed on a common radius. |
void |
setConsiderNodeLabelsEnabled(boolean handleNodeLabels)
Specifies whether or not to consider node labels when calculating node positions (thereby preventing possible node/node label or node label/node label overlaps). |
void |
setFromSketchModeEnabled(boolean fromSketchModeEnabled)
Determines whether or not to take the coordinates of the input diagram into account when arranging the nodes of the partitions and the partitions themselves. |
void |
setLayoutStyle(byte style)
Sets the global layout style for this layouter. |
void |
setMaximalDeviationAngle(int deviationAngle)
Sets the maximal deviation angle allowed for an edge. |
void |
setPartitionLayoutStyle(byte partitionLayoutStyle)
Sets the layout style for the arrangement of each partition. |
void |
setPlaceChildrenOnCommonRadiusEnabled(boolean placeChildrenOnCommonRadiusEnabled)
Specifies whether or not, in the underlying tree, the children of a tree node are placed on a common radius. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Object CIRCLE_ID_HOLDER_DPKEY
DataProvider
associated to this key is also a
DataAcceptor
, the integer circle id of each node is stored using
the acceptor's setInt
method.
Otherwise, the provider's values should be of type
IntValueSettable
whose
setValue
method
is used to store the integer circle id of each node.
public static final byte BCC_COMPACT
setLayoutStyle(byte)
public static final byte BCC_ISOLATED
setLayoutStyle(byte)
public static final byte CIRCULAR_CUSTOM_GROUPS
DataProvider
with key
CIRCULAR_CUSTOM_GROUPS_DPKEY
must be registered.
This parameter can be set with setLayoutStyle(byte)
public static final byte SINGLE_CYCLE
setLayoutStyle(byte)
public static final Object CIRCULAR_CUSTOM_GROUPS_DPKEY
public static final byte PARTITION_LAYOUTSTYLE_CYCLIC
setPartitionLayoutStyle(byte)
public static final byte PARTITION_LAYOUTSTYLE_DISK
setPartitionLayoutStyle(byte)
public static final byte PARTITION_LAYOUTSTYLE_ORGANIC
setPartitionLayoutStyle(byte)
Constructor Detail |
---|
public CircularLayouter()
BCC_COMPACT
PARTITION_LAYOUTSTYLE_CYCLIC
Method Detail |
---|
public boolean isConsiderNodeLabelsEnabled()
setConsiderNodeLabelsEnabled(boolean)
public void setConsiderNodeLabelsEnabled(boolean handleNodeLabels)
handleNodeLabels
- whether to enable this featurepublic boolean isPlaceChildrenOnCommonRadiusEnabled()
setPlaceChildrenOnCommonRadiusEnabled(boolean)
public void setPlaceChildrenOnCommonRadiusEnabled(boolean placeChildrenOnCommonRadiusEnabled)
placeChildrenOnCommonRadiusEnabled
- whether to enable this featurepublic boolean isFromSketchModeEnabled()
setFromSketchModeEnabled(boolean)
public void setFromSketchModeEnabled(boolean fromSketchModeEnabled)
BCC_COMPACT
as partition policy, since otherwise the underlying tree structure is not well defined
public void setMaximalDeviationAngle(int deviationAngle)
deviationAngle
- the deviation angle given in degrees.public int getMaximalDeviationAngle()
setMaximalDeviationAngle(int)
public void setLayoutStyle(byte style)
SINGLE_CYCLE
, BCC_ISOLATED
,
BCC_COMPACT
and CIRCULAR_CUSTOM_GROUPS
By default BCC_COMPACT
is used as layout style
style
- one of SINGLE_CYCLE
, BCC_ISOLATED
,
BCC_COMPACT
or CIRCULAR_CUSTOM_GROUPS
public byte getLayoutStyle()
setLayoutStyle(byte)
public SingleCycleLayouter getSingleCycleLayouter()
public BalloonLayouter getBalloonLayouter()
public byte getPartitionLayoutStyle()
PARTITION_LAYOUTSTYLE_CYCLIC
,PARTITION_LAYOUTSTYLE_DISK
or
PARTITION_LAYOUTSTYLE_ORGANIC
public void setPartitionLayoutStyle(byte partitionLayoutStyle)
PARTITION_LAYOUTSTYLE_CYCLIC
partitionLayoutStyle
- one of PARTITION_LAYOUTSTYLE_CYCLIC
, PARTITION_LAYOUTSTYLE_DISK
or
PARTITION_LAYOUTSTYLE_ORGANIC
public boolean canLayoutCore(LayoutGraph graph)
true
.
canLayoutCore
in class CanonicMultiStageLayouter
public void doLayoutCore(LayoutGraph graph)
doLayoutCore
in class CanonicMultiStageLayouter
public void doLayout(LayoutGraph layoutGraph)
doLayout
in interface Layouter
doLayout
in class CanonicMultiStageLayouter
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |