algoanim.primitives
Class Polyline

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

public class Polyline
extends Primitive

Represents a Polyline which consists of an arbitrary number of Nodes.

Author:
stephan

Field Summary
 
Fields inherited from class algoanim.primitives.Primitive
gen
 
Constructor Summary
Polyline(PolylineGenerator pg, Node[] theNodes, java.lang.String name, DisplayOptions display, PolylineProperties pp)
          Instantiates the Polyline and calls the create() method of the associated PolylineGenerator.
 
Method Summary
 Node[] getNodes()
          Returns the Nodes of this Polyline.
 PolylineProperties getProperties()
          Returns the properties of this Polyline.
 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

Polyline

public Polyline(PolylineGenerator pg,
                Node[] theNodes,
                java.lang.String name,
                DisplayOptions display,
                PolylineProperties pp)
Instantiates the Polyline and calls the create() method of the associated PolylineGenerator.

Parameters:
pg - the appropriate code Generator.
theNodes - the nodes of this Polyline.
name - the name of this Polyline.
display - [optional] the DisplayOptions of this Polyline.
pp - [optional] the properties of this Polyline.
Method Detail

getNodes

public Node[] getNodes()
Returns the Nodes of this Polyline.

Returns:
the Nodes of this Polyline.

getProperties

public PolylineProperties getProperties()
Returns the properties of this Polyline.

Returns:
the properties of this Polyline.

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)