|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.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 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()
Get 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 |
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. |
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)
Set the layout style for the arrangement of each partition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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_COMPACTPARTITION_LAYOUTSTYLE_CYCLIC
| Method Detail |
|---|
public boolean isFromSketchModeEnabled()
setFromSketchModeEnabled(boolean)public void setFromSketchModeEnabled(boolean fromSketchModeEnabled)
BCC_COMPACT
as partition policy, since otherwise the underlying tree structure is not well defined
fromSketchModeEnabled - 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_GROUPSpublic byte getLayoutStyle()
setLayoutStyle(byte)public SingleCycleLayouter getSingleCycleLayouter()
public BalloonLayouter getBalloonLayouter()
public byte getPartitionLayoutStyle()
PARTITION_LAYOUTSTYLE_CYCLIC,PARTITION_LAYOUTSTYLE_DISK or
PARTITION_LAYOUTSTYLE_ORGANICpublic void setPartitionLayoutStyle(byte partitionLayoutStyle)
PARTITION_LAYOUTSTYLE_CYCLIC
partitionLayoutStyle - one of PARTITION_LAYOUTSTYLE_CYCLIC, PARTITION_LAYOUTSTYLE_DISK or
PARTITION_LAYOUTSTYLE_ORGANICpublic boolean canLayoutCore(LayoutGraph graph)
true.
canLayoutCore in class CanonicMultiStageLayouterpublic void doLayoutCore(LayoutGraph graph)
doLayoutCore in class CanonicMultiStageLayouterpublic void doLayout(LayoutGraph layoutGraph)
doLayout in interface LayouterdoLayout in class CanonicMultiStageLayouter
|
© Copyright 2000-2008, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||