|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Sprite
public class Sprite
A wrapper class for a Point2DList object. Provides a few methods for manipulating the Point2Ds.
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 |
---|
public Sprite()
Method Detail |
---|
public Point2DList getData()
public void createData()
public void transform(Transform2D t)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |