nl.tudelft.simulation.examples.dsol.animation3d
Class BallAnimation
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D
nl.tudelft.simulation.examples.dsol.animation3d.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
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 |
BallAnimation
public BallAnimation(LocatableInterface source,
SimulatorInterface simulator)
- constructs a new BallAnimation
- Parameters:
source
- the sourcesimulator
- the simulator
paint
public void paint(Graphics2D graphics,
ImageObserver observer)
- Specified by:
paint
in class Renderable2D
- See Also:
Renderable2D#paint(java.awt.Graphics2D,
java.awt.image.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.