Class Sprite

java.lang.Object
  extended by Sprite

public class Sprite
extends java.lang.Object

A wrapper class for a Point2DList object. Provides a few methods for manipulating the Point2Ds.

Author:
C. D'Arcy

Constructor Summary
Sprite()
          Constructs and initializes the internal data list of Point2D objects to null.
 
Method Summary
 void createData()
          Call one of Point2DList's polygon-creation utilities (createUnitSquare() or createPoloygon()) to create some identifiable set of vertices, or call addPoint() a number of times to manually create a recognizable shape.
 Point2DList getData()
          Accessor method returns the list of Point2Ds
 void transform(Transform2D t)
          Applies the Transform2D object passed as the explicit parameter to all the points in the data list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sprite

public Sprite()
Constructs and initializes the internal data list of Point2D objects to null.

Method Detail

getData

public Point2DList getData()
Accessor method returns the list of Point2Ds


createData

public void createData()
Call one of Point2DList's polygon-creation utilities (createUnitSquare() or createPoloygon()) to create some identifiable set of vertices, or call addPoint() a number of times to manually create a recognizable shape.


transform

public void transform(Transform2D t)
Applies the Transform2D object passed as the explicit parameter to all the points in the data list.