Modifier and Type | Method and Description |
---|---|
Line |
connectTo(Connectible element,
Line.LineType lineType,
double spacing)
Adds a line to this diagram.
|
Line |
connectTo(Connectible element,
Line.LineType lineType,
double spacing,
java.util.ArrayList<java.awt.geom.Point2D.Double> points)
Adds a line to this diagram going along the given points.
|
Line |
connectTo(Connectible element,
Line.LineType lineType,
double spacing,
java.util.ArrayList<java.awt.geom.Point2D.Double> points,
boolean cleanup)
Adds a line to this diagram going along the given points.
|
java.util.ArrayList<Line> |
getIncidentLines()
Returns a list of all lines incident to this element.
|
Line connectTo(Connectible element, Line.LineType lineType, double spacing)
element
- the element to connect to this ConnectiblelineType
- the type of the new linespacing
- the width of the empty buffer around the lineLine connectTo(Connectible element, Line.LineType lineType, double spacing, java.util.ArrayList<java.awt.geom.Point2D.Double> points)
element
- the element to connect to this ConnectiblelineType
- the type of the new linespacing
- the width of the empty buffer around the linepoints
- the desired vertices of the new lineLine connectTo(Connectible element, Line.LineType lineType, double spacing, java.util.ArrayList<java.awt.geom.Point2D.Double> points, boolean cleanup)
element
- the element to connect to this ConnectiblelineType
- the type of the new linespacing
- the width of the empty buffer around the linepoints
- the desired vertices of the new linecleanup
- whether to clean up the given line, removing unnecessary cornersjava.util.ArrayList<Line> getIncidentLines()