nl.tudelft.simulation.dsol.animation.D2
Class SingleImageRenderable
java.lang.Object
nl.tudelft.simulation.dsol.animation.D2.Renderable2D
nl.tudelft.simulation.dsol.animation.D2.ImageRenderable
nl.tudelft.simulation.dsol.animation.D2.SingleImageRenderable
- All Implemented Interfaces:
- Renderable2DInterface
public class SingleImageRenderable
- extends ImageRenderable
(c) copyright 2002-2005 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser
General Public License (LGPL) , no warranty.
- Since:
- 1.4
- Version:
- $Revision: 1.1 $ $Date: 2007/01/06 13:21:28 $
- Author:
- Peter
Jacobs
Fields inherited from class nl.tudelft.simulation.dsol.animation.D2.ImageRenderable |
CB, CC, CT, imageIcons, images, LB, LC, LT, orientation, RB, RC, RT |
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 |
SingleImageRenderable
public SingleImageRenderable(LocatableInterface source,
SimulatorInterface simulator,
URL image)
- constructs a new SingleImageRenderable
- Parameters:
source
- the moving sourcesimulator
- the simulatorimage
- the image to animate
SingleImageRenderable
public SingleImageRenderable(Point2D staticLocation,
Dimension size,
SimulatorInterface simulator,
URL image)
- constructs a new SingleImageRenderable
- Parameters:
staticLocation
- the static locationsize
- the sizesimulator
- the simulatorimage
- the image
SingleImageRenderable
public SingleImageRenderable(DirectedPoint staticLocation,
Dimension size,
SimulatorInterface simulator,
URL image)
- constructs a new SingleImageRenderable
- Parameters:
staticLocation
- the static locationsize
- the size of the imagesimulator
- the simulatorimage
- the image
selectImage
public int selectImage()
- Description copied from class:
ImageRenderable
- selects the image. This methods makes the ImageRenderable state
dependent. One is required to return the index number of the imageIcons[]
which has to be drawn.
- Specified by:
selectImage
in class ImageRenderable
- Returns:
- int the current (state-dependent) image.
- See Also:
#selectImage()
Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.