|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectfang.CompositeTracker
public final class CompositeTracker
This class combines several trackers into a single tracker by composing the scaling, rotating, and translating. Since these operations are commutative, they compose seamlessly.
| Constructor Summary | |
|---|---|
CompositeTracker(Tracker... tracker)
makes the CompositeTracker and adds all of the arguments to the list of trackers |
|
| Method Summary | |
|---|---|
void |
addTracker(Tracker tracker)
adds one tracker to compose. |
void |
advance()
does nothing. |
void |
advanceTime(double timePassed)
does nothing. |
boolean |
containsTracker(Tracker t)
|
Tracker[] |
getAllTrackers()
gets all of the Trackers in this collection of Trackers |
Tracker[] |
getFlatContents()
|
double |
getRotationAddition()
composes the trackers' rotation additions |
double |
getScaleFactor()
composes the trackers' scaling factors |
Point2D.Double |
getTranslation()
composes the trackers' translations |
void |
removeAllTrackers()
|
void |
removeTracker(Tracker tracker)
removes the tracker from the list of trackers composed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompositeTracker(Tracker... tracker)
tracker - the trackers to compose| Method Detail |
|---|
public Tracker[] getAllTrackers()
public void addTracker(Tracker tracker)
tracker - the tracker to composepublic void removeTracker(Tracker tracker)
tracker - the tracker to removepublic Point2D.Double getTranslation()
getTranslation in interface Trackerpublic double getScaleFactor()
getScaleFactor in interface Trackerpublic double getRotationAddition()
getRotationAddition in interface Trackerpublic void advanceTime(double timePassed)
advanceTime in interface TrackertimePassed - the duration of time
since the last call to advanceTimepublic void advance()
public void removeAllTrackers()
public boolean containsTracker(Tracker t)
public Tracker[] getFlatContents()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||