|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vormplus.shapeLib.BasicShape
org.vormplus.shapeLib.RoundedRectangle
public class RoundedRectangle
Create a RoundedRectangle object. This class extends the BasicShape class.
Field Summary | |
---|---|
float |
h
|
float |
r
|
float |
w
|
Constructor Summary | |
---|---|
RoundedRectangle(processing.core.PApplet _p)
Creates a RoundedRectangle object |
Method Summary | |
---|---|
float |
area()
Returns the area of the rounded rectangle. |
float |
perimeter()
Returns the perimeter of the rounded rectangle. |
void |
render()
Renders the rounded rectangle to the screen. |
RoundedRectangle |
setHeight(float _h)
Sets the height for the rounded rectangle. |
RoundedRectangle |
setRadius(float _r)
Sets the radius for the rounded rectangle. |
RoundedRectangle |
setWidth(float _w)
Sets the width for the rounded rectangle. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float w
public float h
public float r
Constructor Detail |
---|
public RoundedRectangle(processing.core.PApplet _p)
_p
- Reference to the PApplet object. Normally use 'this'Method Detail |
---|
public RoundedRectangle setWidth(float _w)
_w
- width for the rounded rectangle.public RoundedRectangle setHeight(float _h)
_h
- height for the rounded rectangle.public RoundedRectangle setRadius(float _r)
_r
- radius for the rounded rectangle.public void render()
public float area()
public float perimeter()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |