algoanim.primitives
Class EllipseSeg

java.lang.Object
  extended by algoanim.primitives.Primitive
      extended by algoanim.primitives.EllipseSeg

public class EllipseSeg
extends Primitive

Represents the segment of a ellipse. This is defined by a center, a radius and an angle.

Author:
Guido Roessling

Field Summary
 
Fields inherited from class algoanim.primitives.Primitive
gen
 
Constructor Summary
EllipseSeg(EllipseSegGenerator esg, Node aCenter, Node aRadius, java.lang.String name, DisplayOptions display, EllipseSegProperties ep)
          Instantiates the CircleSeg and calls the create() method of the associated CircleSegGenerator.
 
Method Summary
 Node getCenter()
          Returns the center of this EllipseSeg.
 EllipseSegProperties getProperties()
          Returns the properties of this EllipseSeg.
 Node getRadius()
          Returns the radius of this EllipseSeg.
 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

EllipseSeg

public EllipseSeg(EllipseSegGenerator esg,
                  Node aCenter,
                  Node aRadius,
                  java.lang.String name,
                  DisplayOptions display,
                  EllipseSegProperties ep)
Instantiates the CircleSeg and calls the create() method of the associated CircleSegGenerator.

Parameters:
esg - 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.
ep - [optional] the properties of this CircleSeg.
Method Detail

getCenter

public Node getCenter()
Returns the center of this EllipseSeg.

Returns:
the center of this EllipseSeg.

getProperties

public EllipseSegProperties getProperties()
Returns the properties of this EllipseSeg.

Returns:
the properties of this EllipseSeg.

getRadius

public Node getRadius()
Returns the radius of this EllipseSeg.

Returns:
the radius of this EllipseSeg.

setName

public void setName(java.lang.String newName)
Description copied from class: Primitive
Sets the name of this Primitive.

Overrides:
setName in class Primitive
Parameters:
newName - the new name for this Primitive.
See Also:
Primitive.setName(java.lang.String)