org.gscg.gameleader.animation2D
Class DistributedGisActorSingleImageRenderable

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
              extended byorg.gscg.gameleader.animation2D.DistributedGisActorSingleImageRenderable
All Implemented Interfaces:
DistributedRenderable2DInterface, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface, java.io.Serializable

public class DistributedGisActorSingleImageRenderable
extends DistributedSingleImageRenderable
implements DistributedRenderable2DInterface

The DistributedGisActorSingleImageRenderable is used to show a single image renderable on a remote animation panel. How and if the image is displayed depends on the zoom level of the 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.0
Version:
$Revision: 1.4 $ $Date: 2005/08/10 11:23:30 $
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
 
Fields inherited from class org.gscg.gameleader.animation2D.DistributedSingleImageRenderable
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
DistributedGisActorSingleImageRenderable(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation, java.awt.Dimension size, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.net.URL image, java.lang.String actorClassName, java.lang.String name)
          constructs a new DistributedGisActorSingleImageRenderable
DistributedGisActorSingleImageRenderable(nl.tudelft.simulation.dsol.animation.LocatableInterface source, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.net.URL image, java.lang.String actorClassName, java.lang.String name)
          constructs a new DistributedGisActorSingleImageRenderable
DistributedGisActorSingleImageRenderable(java.awt.geom.Point2D staticLocation, java.awt.Dimension size, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.net.URL image, java.lang.String actorClassName, java.lang.String name)
          constructs a new DistributedGisActorSingleImageRenderable
 
Method Summary
 void paint(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D rectangle, java.awt.Dimension dimension, java.awt.image.ImageObserver observer)
           
 
Methods inherited from class org.gscg.gameleader.animation2D.DistributedSingleImageRenderable
bind2Context, selectImage, setLocation
 
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, 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 org.gscg.gameleader.animation2D.DistributedRenderable2DInterface
setLocation
 
Methods inherited from interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
contains, destroy, getSource
 

Constructor Detail

DistributedGisActorSingleImageRenderable

public DistributedGisActorSingleImageRenderable(nl.tudelft.simulation.language.d3.DirectedPoint staticLocation,
                                                java.awt.Dimension size,
                                                nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                                                java.net.URL image,
                                                java.lang.String actorClassName,
                                                java.lang.String name)
constructs a new DistributedGisActorSingleImageRenderable

Parameters:
staticLocation - the location
size - the size of the image
simulator - the simulator to use
image - the image name
actorClassName - the actor class name
name - the actor name

DistributedGisActorSingleImageRenderable

public DistributedGisActorSingleImageRenderable(nl.tudelft.simulation.dsol.animation.LocatableInterface source,
                                                nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                                                java.net.URL image,
                                                java.lang.String actorClassName,
                                                java.lang.String name)
constructs a new DistributedGisActorSingleImageRenderable

Parameters:
source - the source
simulator - the simulator to use
image - the image name
actorClassName - the actor class name
name - the actor name

DistributedGisActorSingleImageRenderable

public DistributedGisActorSingleImageRenderable(java.awt.geom.Point2D staticLocation,
                                                java.awt.Dimension size,
                                                nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                                                java.net.URL image,
                                                java.lang.String actorClassName,
                                                java.lang.String name)
constructs a new DistributedGisActorSingleImageRenderable

Parameters:
staticLocation - the location
size - the size of the image
simulator - the simulator to use
image - the image name
actorClassName - the actor class name
name - the actor name
Method Detail

paint

public void paint(java.awt.Graphics2D graphics,
                  java.awt.geom.Rectangle2D rectangle,
                  java.awt.Dimension dimension,
                  java.awt.image.ImageObserver observer)
Specified by:
paint in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
See Also:
Renderable2DInterface.paint(java.awt.Graphics2D, java.awt.geom.Rectangle2D, java.awt.Dimension, java.awt.image.ImageObserver)


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