com.mindfusion.diagramming
Class ArcTemplate

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

public class ArcTemplate
extends ElementTemplate

Represents an arc segment in a Shape definition.


Constructor Summary
ArcTemplate(float x, float y, float w, float h, float a, float s)
          Initializes a new ArcTemplate instance with the specified bounding rectangle coordinates and start and sweep angles.
ArcTemplate(float x, float y, float w, float h, float a, float s, java.awt.Color color, DashStyle dashStyle, float width)
          Initializes a new ArcTemplate instance with the specified bounding rectangle coordinates and start and sweep angles.
 
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

ArcTemplate

public ArcTemplate(float x,
                   float y,
                   float w,
                   float h,
                   float a,
                   float s)
Initializes a new ArcTemplate instance with the specified bounding rectangle coordinates and start and sweep angles.

Parameters:
x - The horizontal position of arc's containing ellipse, specified as percents of box width.
y - The vertical position of arc's containing ellipse, specified as percents of box height.
w - The width of the arc's containing ellipse, specified as percents of box width.
h - The height of the arc's containing ellipse, specified as percents of box height.
a - The start angle of the arc.
s - The sweep angle of the arc.

ArcTemplate

public ArcTemplate(float x,
                   float y,
                   float w,
                   float h,
                   float a,
                   float s,
                   java.awt.Color color,
                   DashStyle dashStyle,
                   float width)
Initializes a new ArcTemplate instance with the specified bounding rectangle coordinates and start and sweep angles.

Parameters:
x - The horizontal position of arc's containing ellipse, specified as percents of box width.
y - The vertical position of arc's containing ellipse, specified as percents of box height.
w - The width of the arc's containing ellipse, specified as percents of box width.
h - The height of the arc's containing ellipse, specified as percents of box height.
a - The start angle of the arc.
s - The sweep angle of the arc.
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