org.gscg.gameleader.animation2D
Class DistributedSingleImageRenderable

java.lang.Object
  extended bynl.tudelft.simulation.dsol.animation.D2.Renderable2D
      extended bynl.tudelft.simulation.dsol.animation.D2.ImageRenderable
          extended byorg.gscg.gameleader.animation2D.DistributedSingleImageRenderable
All Implemented Interfaces:
DistributedRenderable2DInterface, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface, java.io.Serializable
Direct Known Subclasses:
DistributedGisActorSingleImageRenderable, DistributedGisContentSingleImageRenderable

public class DistributedSingleImageRenderable
extends nl.tudelft.simulation.dsol.animation.D2.ImageRenderable
implements DistributedRenderable2DInterface

The DistributedSingleImageRenderable is used to show the contents of a single image renderable on a remote animation panel.

Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Since:
1.0.8
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:34:03 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

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
protected  nl.tudelft.simulation.language.d3.BoundingBox box
          the bounding box
 
Fields inherited from class nl.tudelft.simulation.dsol.animation.D2.ImageRenderable
CB, CC, CT, images, imageURLS, LB, LC, LT, orientation, RB, RC, RT
 
Fields inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2D
contextName, flip, rotate, scale, simulator, source, translate
 
Constructor Summary
DistributedSingleImageRenderable(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation, java.awt.Dimension size, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.net.URL image)
          constructs a new SingleImageRenderable
DistributedSingleImageRenderable(nl.tudelft.simulation.dsol.animation.LocatableInterface source, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.net.URL image)
          constructs a new SingleImageRenderable
DistributedSingleImageRenderable(java.awt.geom.Point2D staticLocation, java.awt.Dimension size, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.net.URL image)
          constructs a new SingleImageRenderable
 
Method Summary
protected  void bind2Context(nl.tudelft.simulation.dsol.simulators.SimulatorInterface arg0)
           
 int selectImage()
           
 void setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
          sets the location of an object
 
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.ImageRenderable
getImages, getOrientation, paint, resolveOrigin, setOrientation
 
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
 
Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
contains, destroy, getSource, paint
 

Field Detail

box

protected nl.tudelft.simulation.language.d3.BoundingBox box
the bounding box

Constructor Detail

DistributedSingleImageRenderable

public DistributedSingleImageRenderable(nl.tudelft.simulation.dsol.animation.LocatableInterface source,
                                        nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                                        java.net.URL image)
constructs a new SingleImageRenderable

Parameters:
source - the moving source
simulator - the simulator
image - the image to animate

DistributedSingleImageRenderable

public DistributedSingleImageRenderable(java.awt.geom.Point2D staticLocation,
                                        java.awt.Dimension size,
                                        nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                                        java.net.URL image)
constructs a new SingleImageRenderable

Parameters:
staticLocation - the static location
size - the size
simulator - the simulator
image - the image

DistributedSingleImageRenderable

public DistributedSingleImageRenderable(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
                                        java.awt.Dimension size,
                                        nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                                        java.net.URL image)
constructs a new SingleImageRenderable

Parameters:
staticLocation - the static location
size - the size of the image
simulator - the simulator
image - the image
Method Detail

selectImage

public int selectImage()
See Also:
ImageRenderable.selectImage()

bind2Context

protected void bind2Context(nl.tudelft.simulation.dsol.simulators.SimulatorInterface arg0)
See Also:
Renderable2D.bind2Context(nl.tudelft.simulation.dsol.simulators.SimulatorInterface)

setLocation

public void setLocation(nl.tudelft.simulation.language.d3.DirectedPoint location)
                 throws java.rmi.RemoteException
Description copied from interface: DistributedRenderable2DInterface
sets the location of an object

Specified by:
setLocation in interface DistributedRenderable2DInterface
Parameters:
location - the location
Throws:
java.rmi.RemoteException - on network failure
See Also:
DistributedRenderable2DInterface.setLocation(nl.tudelft.simulation.language.d3.DirectedPoint)


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