public class BezierTemplate extends ElementTemplate
Shape
definition.Constructor and Description |
---|
BezierTemplate(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4)
Initializes a new BezierTemplate instance with the specified
coordinates of the segment control points.
|
BezierTemplate(float x1,
float y1,
float x2,
float y2,
float x3,
float y3,
float x4,
float y4,
Color color,
DashStyle dash,
float width)
Initializes a new BezierTemplate instance with the specified
coordinates of the segment control points.
|
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
toDOM(org.w3c.dom.Document doc) |
getColor, getDashStyle, getElementPen, getWidth, setColor, setDashStyle, setWidth, toDOM
public BezierTemplate(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
x1
- X coordinate of the first control point specified as
percents of the box width.y1
- Y coordinate of the first control point specified as
percents of the box height.x2
- X coordinate of the second control point specified as
percents of the box width.y2
- Y coordinate of the second control point specified as
percents of the box height.x3
- X coordinate of the third control point specified as
percents of the box width.y3
- Y coordinate of the third control point specified as
percents of the box height.x4
- X coordinate of the fourth control point specified as
percents of the box width.y4
- Y coordinate of the fourth control point specified as
percents of the box height.public BezierTemplate(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4, Color color, DashStyle dash, float width)
x1
- X coordinate of the first control point specified as
percents of the box width.y1
- Y coordinate of the first control point specified as
percents of the box height.x2
- X coordinate of the second control point specified as
percents of the box width.y2
- Y coordinate of the second control point specified as
percents of the box height.x3
- X coordinate of the third control point specified as
percents of the box width.y3
- Y coordinate of the third control point specified as
percents of the box height.x4
- X coordinate of the fourth control point specified as
percents of the box width.y4
- Y coordinate of the fourth control point specified as
percents of the box height.color
- The color of this segment.dash
- 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