|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gscg.gameleader.animation2D.GisGraphicsRenderable
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.
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 |
protected GisGraphicsRenderable.Locatable locatable
Constructor Detail |
public GisGraphicsRenderable()
public GisGraphicsRenderable(nl.tudelft.simulation.language.d3.DirectedPoint location, nl.tudelft.simulation.dsol.simulators.SimulatorInterface simulator, java.lang.String contextName)
location
- the locationsimulator
- the simulator to usecontextName
- the name of the context to use, may be nullMethod Detail |
protected void bindToContext(java.lang.String contextName)
contextName
- the name of the context to use, may be nullpublic abstract void paint(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D rectangle, java.awt.Dimension dimension, java.awt.image.ImageObserver observer)
paint
in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.paint(java.awt.Graphics2D,
java.awt.geom.Rectangle2D, java.awt.Dimension,
java.awt.image.ImageObserver)
public boolean contains(java.awt.geom.Point2D pointWorldCoordinates, java.awt.geom.Rectangle2D extent, java.awt.Dimension screen)
contains
in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
#contains(java.awt.geom.Point2D, java.awt.geom.Rectangle2D,
java.awt.Dimension)
public void destroy()
destroy
in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
public nl.tudelft.simulation.dsol.animation.LocatableInterface getSource()
getSource
in interface nl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface
Renderable2DInterface.getSource()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |