algoanim.primitives
Class Point

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

public class Point
extends Primitive

Represents a simple point on the animation screen.

Author:
Stephan Mehlhase

Field Summary
 
Fields inherited from class algoanim.primitives.Primitive
gen
 
Constructor Summary
Point(PointGenerator pg, Node theCoords, java.lang.String name, DisplayOptions display, PointProperties pp)
          Instantiates the Point and calls the create() method of the associated PointGenerator.
 
Method Summary
 Node getCoords()
          Returns the coordinates of this Point.
 PointProperties getProperties()
          Returns the properties of this Point.
 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

Point

public Point(PointGenerator pg,
             Node theCoords,
             java.lang.String name,
             DisplayOptions display,
             PointProperties pp)
Instantiates the Point and calls the create() method of the associated PointGenerator.

Parameters:
pg - the appropriate code Generator.
theCoords - the Node where this Point shall be located.
name - the name of this Point.
display - [optional] the DisplayOptions of this Point.
pp - [optional] properties for this Point.
Method Detail

getProperties

public PointProperties getProperties()
Returns the properties of this Point.

Returns:
the properties of this Point.

getCoords

public Node getCoords()
Returns the coordinates of this Point.

Returns:
the coordinates of this Point.

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)