nl.tudelft.simulation.dsol.tutorial.section44
Class BallAnimation2D

java.lang.Object
  extended bynl.tudelft.simulation.dsol.animation.D2.Renderable2D
      extended bynl.tudelft.simulation.dsol.tutorial.section44.BallAnimation2D
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface

public class BallAnimation2D
extends nl.tudelft.simulation.dsol.animation.D2.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 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
BallAnimation2D(nl.tudelft.simulation.dsol.animation.LocatableInterface source, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
          constructs a new BallAnimation2D
 
Method Summary
 java.awt.Color getColor()
           
 void paint(java.awt.Graphics2D graphics, java.awt.image.ImageObserver observer)
           
 void setColor(java.awt.Color color)
           
 
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

BallAnimation2D

public BallAnimation2D(nl.tudelft.simulation.dsol.animation.LocatableInterface source,
                       nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator)
constructs a new BallAnimation2D

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

paint

public void paint(java.awt.Graphics2D graphics,
                  java.awt.image.ImageObserver observer)
See Also:
Renderable2D#paint(java.awt.Graphics2D, java.awt.image.ImageObserver)

getColor

public java.awt.Color getColor()
Returns:
Returns the color.

setColor

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


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