algoanim.primitives
Class Ellipse

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

public class Ellipse
extends Primitive

Represents an ellipse defined by a center and a radius.

Author:
Stephan Mehlhase

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

Ellipse

public Ellipse(EllipseGenerator eg,
               Node aCenter,
               Node aRadius,
               java.lang.String name,
               DisplayOptions display,
               EllipseProperties ep)
Instantiates the Ellipse and calls the create() method of the associated EllipseGenerator.

Parameters:
eg - the appropriate code Generator.
aCenter - the center of this Ellipse.
aRadius - the radius of this Ellipse.
name - the name of this Ellipse.
display - [optional] the DisplayOptions of this Ellipse.
ep - [optional] the properties of this Ellipse.
Method Detail

getCenter

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

Returns:
the center of this Ellipse.

getProperties

public EllipseProperties getProperties()
Returns the properties of this Ellipse.

Returns:
the properties of this Ellipse.

getRadius

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

Returns:
the radius of this Ellipse.

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)