com.mindfusion.diagramming
Class LineTemplate

java.lang.Object
  extended by com.mindfusion.diagramming.ElementTemplate
      extended by 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 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

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

toDOM

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