com.mindfusion.diagramming
Class RoundRectangleTemplate

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

public class RoundRectangleTemplate
extends ElementTemplate

Represents a straight line segment in a Shape definition.


Constructor Summary
RoundRectangleTemplate(float x, float y, float w, float h, float r)
          Initializes a new instance of RoundRectangleTemplate.
RoundRectangleTemplate(float x, float y, float w, float h, float r, java.awt.Color color, DashStyle dashStyle, float width)
          Initializes a new instance of RoundRectangleTemplate.
 
Method Summary
 java.awt.geom.Rectangle2D getBounds()
           
 float getRadius()
           
 void setRadius(float value)
           
 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

RoundRectangleTemplate

public RoundRectangleTemplate(float x,
                              float y,
                              float w,
                              float h,
                              float r)
Initializes a new instance of RoundRectangleTemplate.

Parameters:
x - x coordinate of the upper left corner of the rectangle
y - y coordinate of the upper left corner of the rectangle
w - width of the rectangle
h - height of the rectangle
r - the radius of the rounded corners of this element.

RoundRectangleTemplate

public RoundRectangleTemplate(float x,
                              float y,
                              float w,
                              float h,
                              float r,
                              java.awt.Color color,
                              DashStyle dashStyle,
                              float width)
Initializes a new instance of RoundRectangleTemplate.

Parameters:
x - x coordinate of the upper left corner of the rectangle
y - y coordinate of the upper left corner of the rectangle
w - width of the rectangle
h - height of the rectangle
r - the radius of the rounded corners of this element.
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

getBounds

public java.awt.geom.Rectangle2D getBounds()

getRadius

public float getRadius()

setRadius

public void setRadius(float value)