|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.primitives.Primitive
algoanim.primitives.Circle
public class Circle
Represents a circle defined by a center and a radius.
| Field Summary |
|---|
| Fields inherited from class algoanim.primitives.Primitive |
|---|
gen |
| Constructor Summary | |
|---|---|
Circle(CircleGenerator cg,
Node aCenter,
int aRadius,
java.lang.String name,
DisplayOptions display,
CircleProperties cp)
Instantiates the Circle and calls the create() method
of the associated CircleGenerator. |
|
| Method Summary | |
|---|---|
Node |
getCenter()
Returns the center of this Circle. |
CircleProperties |
getProperties()
Returns the properties of this Circle. |
int |
getRadius()
Returns the radius of this Circle. |
void |
setName(java.lang.String newName)
Sets the name of this Primitive. |
| Methods inherited from class algoanim.primitives.Primitive |
|---|
changeColor, exchange, getDisplayOptions, getName, hide, hide, moveBy, moveTo, moveVia, rotate, rotate, show, show |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Circle(CircleGenerator cg,
Node aCenter,
int aRadius,
java.lang.String name,
DisplayOptions display,
CircleProperties cp)
Circle and calls the create() method
of the associated CircleGenerator.
cg - the appropriate code Generator.aCenter - the center of this Circle.aRadius - the radius of this Circle.name - the name of this Circle.display - [optional] the DisplayOptions of this
Circle.cp - [optional] the properties of this Circle.| Method Detail |
|---|
public Node getCenter()
Circle.
Circle.public CircleProperties getProperties()
Circle.
Circle.public int getRadius()
Circle.
Circle.public void setName(java.lang.String newName)
PrimitivePrimitive.
setName in class PrimitivenewName - the new name for this Primitive.Primitive.setName(java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||