|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnl.tudelft.simulation.dsol.animation.D2.Renderable2D
nl.tudelft.simulation.dsol.animation.D2.ImageRenderable
An abstract class for state-dependent image renderables.
(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
| Nested Class Summary |
| Nested classes inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface |
Renderable2DInterface.Util |
| Field Summary | |
static short |
CB
CENTER-BOTTOM location |
static short |
CC
CENTER-CENTER location |
static short |
CT
CENTER-TOP location |
protected javax.swing.ImageIcon[] |
images
the images to be used |
static short |
LB
LEFT-BOTTOM location |
static short |
LC
LEFT-CENTER location |
static short |
LT
LEFT-TOP location |
protected short |
orientation
the origin of the image |
static short |
RB
RIGHT-BOTTOM location |
static short |
RC
RIGHT-CENTER location |
static short |
RT
RIGHT-TOP location |
| Fields inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D |
flip, rotate, scale, simulator, source, translate |
| Constructor Summary | |
ImageRenderable(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
java.awt.Dimension size,
SimulatorInterface simulator,
java.net.URL[] images)
constructs a new ImageRenderable |
|
ImageRenderable(LocatableInterface source,
SimulatorInterface simulator,
java.net.URL[] images)
constructs a new ImageRenderable |
|
ImageRenderable(java.awt.geom.Point2D staticLocation,
java.awt.Dimension size,
SimulatorInterface simulator,
java.net.URL[] images)
constructs a new ImageRenderable |
|
| Method Summary | |
javax.swing.ImageIcon[] |
getImages()
|
void |
paint(java.awt.Graphics2D graphics,
java.awt.image.ImageObserver observer)
draws an animation on a worldcoordinates around [x,y=0,0] |
protected java.awt.geom.Point2D |
resolveOrigin(short orientation,
java.awt.Dimension size)
resolves the origin of the image |
abstract int |
selectImage()
selects the image. |
void |
setOrientation(short orientation)
|
| 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 |
| Field Detail |
public static final short LB
public static final short CB
public static final short RB
public static final short LC
public static final short CC
public static final short RC
public static final short LT
public static final short CT
public static final short RT
protected javax.swing.ImageIcon[] images
protected short orientation
| Constructor Detail |
public ImageRenderable(LocatableInterface source,
SimulatorInterface simulator,
java.net.URL[] images)
source - the source to be animated.simulator - the simulator to be used.images - the image urls.
public ImageRenderable(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
java.awt.Dimension size,
SimulatorInterface simulator,
java.net.URL[] images)
staticLocation - the static location of the set of imagessize - the size of the images in world coordinates.simulator - the simulator to be usedimages - the images to display.
public ImageRenderable(java.awt.geom.Point2D staticLocation,
java.awt.Dimension size,
SimulatorInterface simulator,
java.net.URL[] images)
staticLocation - the static location of the set of imagessize - the size of the images in world coordinates.simulator - the simulator to be usedimages - the images to display.| Method Detail |
public void paint(java.awt.Graphics2D graphics,
java.awt.image.ImageObserver observer)
throws java.rmi.RemoteException
Renderable2D
paint in class Renderable2Dgraphics - the graphics objectobserver - the observer
java.rmi.RemoteException - on network exceptionRenderable2D.paint(java.awt.Graphics2D,
java.awt.image.ImageObserver)public abstract int selectImage()
public void setOrientation(short orientation)
orientation - The orientation to set.public javax.swing.ImageIcon[] getImages()
protected java.awt.geom.Point2D resolveOrigin(short orientation,
java.awt.Dimension size)
orientation - the orientation (CC,..)size - the size of the image.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||