com.mindfusion.diagramming
Class BezierTemplate

java.lang.Object
  extended by com.mindfusion.diagramming.ElementTemplate
      extended by com.mindfusion.diagramming.BezierTemplate

public class BezierTemplate
extends ElementTemplate

Represents a Bezier curve in a Shape definition.


Constructor Summary
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, java.awt.Color color, DashStyle dash, float width)
          Initializes a new BezierTemplate instance with the specified coordinates of the segment control points.
 
Method Summary
 org.w3c.dom.Element toDOM(org.w3c.dom.Document doc)
           
 
Methods inherited from class com.mindfusion.diagramming.ElementTemplate
getColor, getDashStyle, getElementPen, getWidth, setColor, setDashStyle, setWidth, toDOM
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BezierTemplate

public 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.

Parameters:
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.

BezierTemplate

public BezierTemplate(float x1,
                      float y1,
                      float x2,
                      float y2,
                      float x3,
                      float y3,
                      float x4,
                      float y4,
                      java.awt.Color color,
                      DashStyle dash,
                      float width)
Initializes a new BezierTemplate instance with the specified coordinates of the segment control points.

Parameters:
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.
Method Detail

toDOM

public org.w3c.dom.Element toDOM(org.w3c.dom.Document doc)
Overrides:
toDOM in class ElementTemplate