public class RoundRectangleTemplate extends ElementTemplate
Shape
definition.Constructor and Description |
---|
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,
Color color,
DashStyle dashStyle,
float width)
Initializes a new instance of RoundRectangleTemplate.
|
Modifier and Type | Method and Description |
---|---|
android.graphics.RectF |
getBounds() |
float |
getRadius() |
void |
setRadius(float value) |
org.w3c.dom.Element |
toDOM(org.w3c.dom.Document doc) |
getColor, getDashStyle, getElementPen, getWidth, setColor, setDashStyle, setWidth, toDOM
public RoundRectangleTemplate(float x, float y, float w, float h, float r)
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.public RoundRectangleTemplate(float x, float y, float w, float h, float r, Color color, DashStyle dashStyle, float width)
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.public org.w3c.dom.Element toDOM(org.w3c.dom.Document doc)
toDOM
in class ElementTemplate
public android.graphics.RectF getBounds()
public float getRadius()
public void setRadius(float value)