Interface LineLabelFactory

All Known Implementing Classes:
CenteredLabelFactory, EdgeLabelFactory

public interface LineLabelFactory
The LineLabelFactory interface is implemented by classes that need to produce a set of labels for a line composed of line segments.
Since:
3.3.1
Author:
Peter Hollemans
  • Method Details

    • create

      List<TextElement> create(List<Line2D> segments, String text, Dimension imageDims)
      Creates a set of line labels.
      Parameters:
      segments - the line segments for the line to label.
      text - the label for the line.
      imageDims - the image dimensions for the box whose edges contain the entire line and all its segments. This would typically be the view.
      Returns:
      the set of labels created by the factory, or null if no segments are inside the image boundaries.