Custom Styles Tutorial

Edge from Node to Label

This step shows how to visually connect a label to its owner node with a line.

Things to Try

  • Take a look at method MySimpleNodeStyle.renderLabelEdges().

Left to Do

  • Create a custom label style.
  • Create a custom edge style.
  • Create a custom port style for nodes.
  • Use the decorator pattern to add label edges to the nodes.
  • Create a custom group node style.