nl.tudelft.simulation.examples.dsol.animation
Class BallAnimation

java.lang.Object
  extended by nl.tudelft.simulation.dsol.animation.D2.Renderable2D
      extended by nl.tudelft.simulation.examples.dsol.animation.BallAnimation
All Implemented Interfaces:
Renderable2DInterface

public class BallAnimation
extends Renderable2D

The Animation of a Ball.

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

Since:
1.4
Version:
1.2 Apr 16, 2004
Author:
Peter Jacobs

Nested Class Summary
 
Nested classes/interfaces inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.Util
 
Field Summary
 
Fields inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
flip, rotate, scale, simulator, source, translate
 
Constructor Summary
BallAnimation(LocatableInterface source, SimulatorInterface simulator)
          constructs a new BallAnimation
 
Method Summary
 Color getColor()
           
 void paint(Graphics2D graphics, ImageObserver observer)
           
 void setColor(Color color)
           
 
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
bind2Context, 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

BallAnimation

public BallAnimation(LocatableInterface source,
                     SimulatorInterface simulator)
constructs a new BallAnimation

Parameters:
source - the source
simulator - the simulator
Method Detail

paint

public void paint(Graphics2D graphics,
                  ImageObserver observer)
Specified by:
paint in class Renderable2D
See Also:
#paint(java.awt.Graphics2D, ImageObserver)

getColor

public Color getColor()
Returns:
Returns the color.

setColor

public void setColor(Color color)
Parameters:
color - The color to set.


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.