org.gscg.gameleader.animation2D
Class GisRenderable2D

java.lang.Object
  extended bynl.tudelft.simulation.dsol.animation.D2.GisRenderable2D
      extended byorg.gscg.gameleader.animation2D.GisRenderable2D
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.LocatableInterface, nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface, java.io.Serializable

public class GisRenderable2D
extends nl.tudelft.simulation.dsol.animation.D2.GisRenderable2D

An implementation suitable for deserialization. We implemented some extra logic for binding into the context.

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
Version:
$Revision: 1.1 $ $Date: 2005/06/16 12:34:02 $
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 nl.tudelft.simulation.dsol.animation.D2.GisRenderable2D
bounds, extent, image, location, map, screenSize
 
Constructor Summary
GisRenderable2D()
          constructs a new GisRenderable2D
GisRenderable2D(nl.tudelft.simulation.dsol.simulators.SimulatorInterface arg0, java.net.URL arg1, java.lang.String contextName)
          constructs a new GisRenderable2D
 
Method Summary
protected  void bind2Context()
           
protected  void bindToContext(java.lang.String contextName)
          binds the renderable to the context
 
Methods inherited from class nl.tudelft.simulation.dsol.animation.D2.GisRenderable2D
contains, destroy, getBounds, getLocation, getSource, paint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GisRenderable2D

public GisRenderable2D()
constructs a new GisRenderable2D


GisRenderable2D

public GisRenderable2D(nl.tudelft.simulation.dsol.simulators.SimulatorInterface arg0,
                       java.net.URL arg1,
                       java.lang.String contextName)
constructs a new GisRenderable2D

Parameters:
arg0 - the simulator
arg1 - the URL for the map file
contextName - the name of the context to bind the renderale into should only be used in case of deserialization; should be null otherwise
Method Detail

bindToContext

protected void bindToContext(java.lang.String contextName)
binds the renderable to the context

Parameters:
contextName - the name of the context to bind the renderale into should only be used in case of deserialization; should be null otherwise

bind2Context

protected void bind2Context()
See Also:
GisRenderable2D.bind2Context()


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