Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

With the node size set and ports placed, the node labels are now placed.

Layout Options Influencing This Stuff

The following layout options influence how the algorithm places ports and labels and calculates the node size:

OptionTargetDescription
LayoutOptions.NODE_LABEL_PLACEMENTNode

Determines where node labels are placed. A valid set of values contains exactly one constant from each of the following sets of constants:

  • NodeLabelPlacement.INSIDE and NodeLabelPlacement.OUTSIDE
  • NodeLabelPlacement.H_LEFTNodeLabelPlacement.H_CENTER, and NodeLabelPlacement.H_RIGHT
  • NodeLabelPlacement.V_TOPNodeLabelPlacement.V_CENTER, and NodeLabelPlacement.V_BOTTOM
LayoutOptions.PORT_LABEL_PLACEMENTNodeDetermines where port labels are placed: inside or outside their node.
LayoutOptions.LABEL_SPACINGGraphDetermines the amount of space left between labels and the objects they label.
LayoutOptions.SIZE_CONSTRAINTNodeThe amount of freedom in determining the size of a node.
LayoutOptions.SIZE_OPTIONSNodeOptions for node size calculation.
LayoutOptions.MIN_WIDTHNodeThe minimal width of a node. If set, overrides the default minimal width.
LayoutOptions.MIN_HEIGHTNodeThe minimal height of a node. If set, overrides the default minimal height.
LayoutOptions.PORT_CONSTRAINTSNodeFreedom in placing ports.