com.mindfusion.diagramming
Class LineTemplate
java.lang.Object
com.mindfusion.diagramming.ElementTemplate
com.mindfusion.diagramming.LineTemplate
public class LineTemplate
- extends ElementTemplate
Represents a straight line segment in a Shape
definition.
Constructor Summary |
LineTemplate(float x1,
float y1,
float x2,
float y2)
Initializes a new LineTemplate instance with the specified
coordinates of the segment end points. |
LineTemplate(float x1,
float y1,
float x2,
float y2,
java.awt.Color color,
DashStyle dashStyle,
float width)
Initializes a new LineTemplate instance with the specified
coordinates of the segment end points. |
Method Summary |
org.w3c.dom.Element |
toDOM(org.w3c.dom.Document doc)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LineTemplate
public LineTemplate(float x1,
float y1,
float x2,
float y2)
- Initializes a new LineTemplate instance with the specified
coordinates of the segment end points.
- Parameters:
x1
- Horizontal position of the first point specified as
percents of the box width.y1
- Vertical position of the first point specified as
percents of the box height.x2
- Horizontal position of the second point specified as
percents of the box width.y2
- Vertical position of the second point specified as
percents of the box height.
LineTemplate
public LineTemplate(float x1,
float y1,
float x2,
float y2,
java.awt.Color color,
DashStyle dashStyle,
float width)
- Initializes a new LineTemplate instance with the specified
coordinates of the segment end points.
- Parameters:
x1
- Horizontal position of the first point specified as
percents of the box width.y1
- Vertical position of the first point specified as
percents of the box height.x2
- Horizontal position of the second point specified as
percents of the box width.y2
- Vertical position of the second point specified as
percents of the box height.color
- The color of this segment.dashStyle
- The dash style of this segment.width
- The width of this segment.
toDOM
public org.w3c.dom.Element toDOM(org.w3c.dom.Document doc)
- Overrides:
toDOM
in class ElementTemplate