nl.tudelft.simulation.traffic.animation
Class SegmentedVehicleAnimation

java.lang.Object
  extended bynl.tudelft.simulation.dsol.animation.D2.Renderable2D
      extended bynl.tudelft.simulation.traffic.animation.SegmentedVehicleAnimation
All Implemented Interfaces:
java.util.EventListener, nl.tudelft.simulation.event.EventListenerInterface, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface

public class SegmentedVehicleAnimation
extends nl.tudelft.simulation.dsol.animation.D2.Renderable2D
implements nl.tudelft.simulation.event.EventListenerInterface

This class animates the physical vehicle

(c) copyright 2003-2004 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
May 31, 2004
Author:
Alexander Verbraeck
See Also:
VehiclePhysicalInterface

Nested Class Summary
 
Nested classes inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface.Util
 
Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
flip, rotate, scale, simulator, source, translate
 
Constructor Summary
SegmentedVehicleAnimation(VehicleSegment segment, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.awt.Color color)
          constructs a new SegmentedVehicleAnimation
 
Method Summary
 void notify(nl.tudelft.simulation.event.EventInterface event)
           
 void paint(java.awt.Graphics2D gr, java.awt.image.ImageObserver imo)
           
 
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
contains, destroy, getSource, isFlip, isRotate, isScale, isTranslate, paint, setFlip, setRotate, setScale, setTranslate, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SegmentedVehicleAnimation

public SegmentedVehicleAnimation(VehicleSegment segment,
                                 nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                                 java.awt.Color color)
constructs a new SegmentedVehicleAnimation

Parameters:
segment -
simulator - the simulator
color -
Method Detail

paint

public void paint(java.awt.Graphics2D gr,
                  java.awt.image.ImageObserver imo)
See Also:
Renderable2D.paint(java.awt.Graphics2D, java.awt.image.ImageObserver)

notify

public void notify(nl.tudelft.simulation.event.EventInterface event)
            throws java.rmi.RemoteException
Specified by:
notify in interface nl.tudelft.simulation.event.EventListenerInterface
Throws:
java.rmi.RemoteException
See Also:
EventListenerInterface.notify(nl.tudelft.simulation.event.EventInterface)


Copyright © 2003-2004 Delft University of Technology, the Netherlands. All Rights Reserved.