public interface LineLabelFactory
LineLabelFactory
interface is implemented by classes
that need to produce a set of labels for a line composed of line
segments.Modifier and Type | Method and Description |
---|---|
java.util.List<TextElement> |
create(java.util.List<java.awt.geom.Line2D> segments,
java.lang.String text,
java.awt.Dimension imageDims)
Creates a set of line labels.
|
java.util.List<TextElement> create(java.util.List<java.awt.geom.Line2D> segments, java.lang.String text, java.awt.Dimension imageDims)
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.