algoanim.primitives
Class Polyline
java.lang.Object
algoanim.primitives.Primitive
algoanim.primitives.Polyline
public class Polyline
- extends Primitive
Represents a Polyline which consists of an arbitrary number of
Nodes.
- Author:
- stephan
| Fields inherited from class algoanim.primitives.Primitive |
gen |
| 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 |
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.
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)