This is preliminary and incomplete documentation. You've been warned.

KIML defines a whole set of standard layout options that many layout algorithms support. Whether an algorithm supports a layout option depends on the option and on the algorithm. When an option is supported by an algorithm, that algorithm may override the option's default value. Algorithms may also provide more specialized documentation for layout options.

Contents

Overview

Beside a user-friendly name, layout options are defined by the following properties:

Layout options can be assigned to two main categories: user options and programmatic options.

User Options

User options are those that you can see in the "Layout View" available in Eclipse if the KIML user interface is installed. That view is restricted to layout options that are supported by the currently active layout algorithm. Furthermore, some options are visible only when the Show Advanced Properties button is active in the view.

OptionIDTypeApplies toDefault
Alignmentde.cau.cs.kieler.alignmentEnumNodesAUTOMATIC
Aspect Ratiode.cau.cs.kieler.aspectRatioFloatParents0.0
Bend Pointsde.cau.cs.kieler.bendPointsObjectEdges 
Border Spacingde.cau.cs.kieler.borderSpacingFloatParents 
Debug Modede.cau.cs.kieler.debugModeBooleanParentsfalse
Directionde.cau.cs.kieler.directionEnumParents 
Edge Routingde.cau.cs.kieler.edgeRoutingEnumParents 
Expand Nodesde.cau.cs.kieler.expandNodesBooleanParentsfalse
Interactivede.cau.cs.kieler.interactiveBooleanParentsfalse
Label Spacingde.cau.cs.kieler.labelSpacingFloatEdges
Nodes
 
Layout Hierarchyde.cau.cs.kieler.layoutHierarchyBooleanParentsfalse
Layout Algorithmde.cau.cs.kieler.algorithmStringParents 
Node Label Placementde.cau.cs.kieler.nodeLabelPlacementEnumSetNodes 
Port Constraintsde.cau.cs.kieler.portConstraintsEnumNodes 
Port Label Placementde.cau.cs.kieler.portLabelPlacementEnumNodesOUTSIDE
Port Spacingde.cau.cs.kieler.portSpacingFloatNodes 
Positionde.cau.cs.kieler.positionObject

Labels
Nodes
Ports

 
Priorityde.cau.cs.kieler.priorityIntEdges
Nodes
 
Randomization Seedde.cau.cs.kieler.randomSeedIntParents 
Separate Connected Componentsde.cau.cs.kieler.separateConnCompBooleanParents 
Size Constraintde.cau.cs.kieler.sizeConstraintEnumSetNodes 
Size Optionsde.cau.cs.kieler.sizeOptionsEnumSetNodesDEFAULT_MINIMUM_SIZE
Spacingde.cau.cs.kieler.spacingFloatParents 

Programmatic Options

Programmatic options are such that are meant to be configured exclusively through the KIML API. They should not be visible in the user interface.

OptionIDTypeApplies toDefault

Animate

de.cau.cs.kieler.animate

BooleanParentstrue

Animation Time Factor

de.cau.cs.kieler.animTimeFactor

IntParents100

Comment Box

de.cau.cs.kieler.commentBox

BooleanNodesfalse
Diagram Typede.cau.cs.kieler.diagramTypeStringParents 
Edge Label Placementde.cau.cs.kieler.edgeLabelPlacementEnumLabels 
Edge Typede.cau.cs.kieler.edgeTypeEnumEdgesNONE
Font Namede.cau.cs.kieler.fontNameStringLabels 
Font Sizede.cau.cs.kieler.fontSizeIntLabels 
Hypernodede.cau.cs.kieler.hypernodeBooleanNodesfalse

Layout Ancestors

de.cau.cs.kieler.layoutAncestors

BooleanParentsfalse

Maximal Animation Time

de.cau.cs.kieler.maxAnimTim

IntParents4000

Minimal Animation Time

de.cau.cs.kieler.minAnimTim

IntParents400
Minimal Heightde.cau.cs.kieler.minHeightFloat

Nodes
Parents

0.0
Minimal Widthde.cau.cs.kieler.minWidthFloat

Nodes
Parents

0.0
No Layoutde.cau.cs.kieler.noLayoutBoolean false

Port Index

de.cau.cs.kieler.portIndex

IntPorts 
Port Offsetde.cau.cs.kieler.offsetFloatPorts 
Port Sidede.cau.cs.kieler.portSideEnumPorts 

Progress Bar

de.cau.cs.kieler.progressBar

BooleanParentsfalse
Scale Factor

de.cau.cs.kieler.scaleFactor

FloatNodes1.0

Zoom to Fit

de.cau.cs.kieler.zoomToFit

BooleanParentsfalse

Layout Output Properties

A few properties are used as additional information in the output of a layout algorithm. This information should be considered when the layout is applied to the original diagram

PropertyIDTypeApplies to
Edge Routingde.cau.cs.kieler.edgeRoutingEnumEdges
Junction Points

de.cau.cs.kieler.junctionPoints

ObjectEdges

 

Detailed Documentation

The Most Important Options

While most layout options are used to affect how the active layout algorithm computes concrete coordinates for the graph elements, there are some layout options that have a special role in KIML.

Layout Algorithm

The option with identifier de.cau.cs.kieler.algorithm specifies which layout algorithm to use for the content of a composite node. The value can be either the identifier of a layout algorithm or the identifier of a layout type. In the latter case the algorithm with highest priority of that type is applied.

The following layout types are predefined:

Available Algorithms and Libraries

Diagram Type

Diagram types are used to classify graphical diagrams for setting default layout option values for a set of similar diagrams. The diagram type of an element is specified with the layout option de.cau.cs.kieler.diagramType. Layout algorithms can declare which diagram types they support well, and give a priority value for each supported type. KIML decides at runtime which layout algorithm has the highest priority for a given diagram, so that the most suitable algorithm is always used. Usual values for such priorities are between 1 and 10, where the highest value should only be assigned if the algorithm is especially designed for diagrams of the respective type, or if it has proven to be very adequate for them. Lower values should be given if the algorithm is able to draw the diagrams correctly, but with lower quality of the resulting layout.

The following diagram types are predefined:

Other Options

This section explains every layout option in more detail.

Edge Routing

This option influences the way in which edges are routed between the nodes they connect. The following settings are available:

TODO: Add an image illustrating the different routing styles.

Port Offset

The port offset is used to specify how much space a layout algorithm should leave between a port and the border of its node. This is usually zero, but doesn't have to be. If the offset is not defined for a given port, a layout algorithm can try to infer the offset from the port's coordinates and its node's size in the input graph. This of course requires both properties to be set to sensible values.

Set this property if one of the following cases applies: