labelGap property

double labelGap
final

Minimum gap from connection endpoints when label anchor is at 0.0 or 1.0.

When a label has anchor=0.0, the label's left edge will be at least labelGap pixels from the start of the connection. When anchor=1.0, the label's right edge will be at least labelGap pixels from the end of the connection.

This prevents labels from overlapping with port markers or arrow heads. Defaults to 8.0 pixels.

Implementation

final double labelGap;