com.mindfusion.diagramming
Class RoundRectangleTemplate
java.lang.Object
com.mindfusion.diagramming.ElementTemplate
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 rectangley - y coordinate of the upper left corner of the rectanglew - width of the rectangleh - height of the rectangler - 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 rectangley - y coordinate of the upper left corner of the rectanglew - width of the rectangleh - height of the rectangler - 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.
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)