org.gscg.gameleader.animation2D
Class GisGraphicsRenderable

java.lang.Object
  extended byorg.gscg.gameleader.animation2D.GisGraphicsRenderable
All Implemented Interfaces:
nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface, java.io.Serializable
Direct Known Subclasses:
DistributedGisLegendRenderable, GisLegendRenderable

public abstract class GisGraphicsRenderable
extends java.lang.Object
implements nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface

The GisGraphicsRenderable is useful in combination with a GIS based map as a background image. Based on the zoom level of an animation panel, choices can be made what to show, or what not. It is comparable with showing layers when using a GIS map.

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:02 $
Author:
Stijn-Pieter van Houten
See Also:
Serialized Form

Nested Class Summary
protected  class GisGraphicsRenderable.Locatable
          A private implementation of the locatable interface.
 
Nested classes inherited from class nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface.Util
 
Field Summary
protected  GisGraphicsRenderable.Locatable locatable
          the locatable
 
Constructor Summary
GisGraphicsRenderable()
          constructs a new GisGraphicsRenderable; this emtpy constructor is needed for persistency reasons
GisGraphicsRenderable(nl.tudelft.simulation.language.d3.DirectedPoint location, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.lang.String contextName)
          constructs a new GisGraphicsRenderable
 
Method Summary
protected  void bindToContext(java.lang.String contextName)
          binds the renderable to the context
 boolean contains(java.awt.geom.Point2D pointWorldCoordinates, java.awt.geom.Rectangle2D extent, java.awt.Dimension screen)
           
 void destroy()
          destroys an RenderableObject by unsubscribing it from the context.
 nl.tudelft.simulation.dsol.animation.LocatableInterface getSource()
           
abstract  void paint(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D rectangle, java.awt.Dimension dimension, java.awt.image.ImageObserver observer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

locatable

protected GisGraphicsRenderable.Locatable locatable
the locatable

Constructor Detail

GisGraphicsRenderable

public GisGraphicsRenderable()
constructs a new GisGraphicsRenderable; this emtpy constructor is needed for persistency reasons


GisGraphicsRenderable

public GisGraphicsRenderable(nl.tudelft.simulation.language.d3.DirectedPoint location,
                             nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator,
                             java.lang.String contextName)
constructs a new GisGraphicsRenderable

Parameters:
location - the location
simulator - the simulator to use
contextName - the name of the context to use, may be null
Method Detail

bindToContext

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

Parameters:
contextName - the name of the context to use, may be null

paint

public abstract 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)

contains

public boolean contains(java.awt.geom.Point2D pointWorldCoordinates,
                        java.awt.geom.Rectangle2D extent,
                        java.awt.Dimension screen)
Specified by:
contains in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
See Also:
#contains(java.awt.geom.Point2D, java.awt.geom.Rectangle2D, java.awt.Dimension)

destroy

public void destroy()
destroys an RenderableObject by unsubscribing it from the context.

Specified by:
destroy in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface

getSource

public nl.tudelft.simulation.dsol.animation.LocatableInterface getSource()
Specified by:
getSource in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
See Also:
Renderable2DInterface.getSource()


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