|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.primitives.Primitive
algoanim.primitives.CircleSeg
public class CircleSeg
Represents the segment of a circle. This is defined by a center, a radius and an angle.
| Field Summary |
|---|
| Fields inherited from class algoanim.primitives.Primitive |
|---|
gen |
| Constructor Summary | |
|---|---|
CircleSeg(CircleSegGenerator csg,
Node aCenter,
int aRadius,
java.lang.String name,
DisplayOptions display,
CircleSegProperties cp)
Instantiates the CircleSeg and calls the create() method of
the associated CircleSegGenerator. |
|
| Method Summary | |
|---|---|
Node |
getCenter()
Returns the center of this CircleSeg. |
CircleSegProperties |
getProperties()
Returns the properties of this CircleSeg. |
int |
getRadius()
Returns the radius of this CircleSeg. |
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 CircleSeg(CircleSegGenerator csg,
Node aCenter,
int aRadius,
java.lang.String name,
DisplayOptions display,
CircleSegProperties cp)
CircleSeg and calls the create() method of
the associated CircleSegGenerator.
csg - the appropriate code Generator.aCenter - the center of this CircleSeg.aRadius - the radius of this CircleSeg.name - the name of this CircleSeg.display - [optional] the DisplayOptions of this
CircleSeg.cp - [optional] the properties of this CircleSeg.| Method Detail |
|---|
public Node getCenter()
CircleSeg.
CircleSeg.public CircleSegProperties getProperties()
CircleSeg.
CircleSeg.public int getRadius()
CircleSeg.
CircleSeg.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 | |||||||||