|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.media.util.DelegatingPathable
public class DelegatingPathable
Delegates all calls to a delegate pathable. One would derive from this class and override just the methods in which that one desired to intervene.
| Field Summary | |
|---|---|
protected Pathable |
_delegate
|
| Constructor Summary | |
|---|---|
DelegatingPathable(Pathable delegate)
|
|
| Method Summary | |
|---|---|
Rectangle |
getBounds()
Returns the rectangle that bounds the pathable. |
int |
getOrientation()
Should return the orientation of the pathable, or DirectionCodes.NONE if the
pathable does not support orientation. |
int |
getX()
Returns the pathable's current x coordinate. |
int |
getY()
Returns the pathable's current y coordinate. |
void |
pathBeginning()
Called by a path when this pathable is made to start along a path. |
void |
pathCompleted(long timestamp)
Called by a path when this pathable finishes moving along its path. |
void |
setLocation(int x,
int y)
Updates the pathable's current coordinates. |
void |
setOrientation(int orient)
Will be called by a path when it moves the pathable in the specified direction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Pathable _delegate
| Constructor Detail |
|---|
public DelegatingPathable(Pathable delegate)
| Method Detail |
|---|
public int getX()
Pathable
getX in interface Pathablepublic int getY()
Pathable
getY in interface Pathablepublic Rectangle getBounds()
Pathable
getBounds in interface Pathable
public void setLocation(int x,
int y)
Pathable
setLocation in interface Pathablepublic void setOrientation(int orient)
Pathable
setOrientation in interface PathableDirectionCodespublic int getOrientation()
PathableDirectionCodes.NONE if the
pathable does not support orientation.
getOrientation in interface Pathablepublic void pathBeginning()
Pathable
pathBeginning in interface Pathablepublic void pathCompleted(long timestamp)
Pathable
pathCompleted in interface Pathable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||