public class LineTemplate extends ElementTemplate
Shape definition.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Element |
toDOM(org.w3c.dom.Document doc) |
getColor, getDashStyle, getElementPen, getWidth, setColor, setDashStyle, setWidth, toDOMpublic LineTemplate(float x1,
float y1,
float x2,
float y2)
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.public LineTemplate(float x1,
float y1,
float x2,
float y2,
java.awt.Color color,
DashStyle dashStyle,
float width)
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.public org.w3c.dom.Element toDOM(org.w3c.dom.Document doc)
toDOM in class ElementTemplate