public class ConnectedComponentPacking
extends java.lang.Object
| Constructor and Description |
|---|
ConnectedComponentPacking() |
| Modifier and Type | Method and Description |
|---|---|
static void |
pack(lv.lumii.layoutengine.DiagramPart[] parts,
double spacing,
double aspectRatio,
double proportionalSpacing)
Function that arranges connected components of graph that is obtained from parts.
|
public static void pack(lv.lumii.layoutengine.DiagramPart[] parts,
double spacing,
double aspectRatio,
double proportionalSpacing)
parts - Array with all graph that must be arranged by it's connected components.spacing - Minimal spacing around every connected component.aspectRatio - ? Something that probably depends on boxs' size (hor * vert) ?proportionalSpacing - Minimal proportional spacing around every con. comp.
Full spacing is calculated as spacing+proportionalSpacing*size