Protege-2000 1.7

edu.stanford.smi.protegex.layout
Class NullMovementHandler

java.lang.Object
  |
  +--edu.stanford.smi.protegex.layout.ActorDelegateImpl
        |
        +--edu.stanford.smi.protegex.layout.NullMovementHandler
All Implemented Interfaces:
ActorDelegate, ActorMovementHandler, Copyable

public class NullMovementHandler
extends ActorDelegateImpl
implements ActorMovementHandler

Pretty much a null object

Author:
William Grosso

Fields inherited from class edu.stanford.smi.protegex.layout.ActorDelegateImpl
_actor, _location
 
Fields inherited from interface edu.stanford.smi.protegex.layout.ActorMovementHandler
ZERO_VELOCITY
 
Constructor Summary
NullMovementHandler(Actor actor)
           
 
Method Summary
 boolean collidesWithActor(Actor actor)
           
 void collideWithActor(Actor actor)
           
 Object copy()
           
 boolean getBounces()
           
 double getXVelocity()
           
 double getYVelocity()
           
 void setBounces(boolean bounces)
           
 void setXVelocity(double xVelocity)
           
 void setYVelocity(double yVelocity)
           
 void tick(int currentTime)
           
 
Methods inherited from class edu.stanford.smi.protegex.layout.ActorDelegateImpl
getActor, setActor, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.stanford.smi.protegex.layout.ActorDelegate
getActor, setActor, setLocation
 

Constructor Detail

NullMovementHandler

public NullMovementHandler(Actor actor)
Method Detail

collidesWithActor

public boolean collidesWithActor(Actor actor)
Specified by:
collidesWithActor in interface ActorMovementHandler

collideWithActor

public void collideWithActor(Actor actor)
Specified by:
collideWithActor in interface ActorMovementHandler

copy

public Object copy()
Specified by:
copy in interface Copyable

getBounces

public boolean getBounces()
Specified by:
getBounces in interface ActorMovementHandler

getXVelocity

public double getXVelocity()
Specified by:
getXVelocity in interface ActorMovementHandler

getYVelocity

public double getYVelocity()
Specified by:
getYVelocity in interface ActorMovementHandler

setBounces

public void setBounces(boolean bounces)
Specified by:
setBounces in interface ActorMovementHandler

setXVelocity

public void setXVelocity(double xVelocity)
Specified by:
setXVelocity in interface ActorMovementHandler

setYVelocity

public void setYVelocity(double yVelocity)
Specified by:
setYVelocity in interface ActorMovementHandler

tick

public void tick(int currentTime)
Specified by:
tick in interface ActorMovementHandler

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.