nl.tudelft.simulation.dsol.animation.D2
Interface Renderable2DInterface

All Known Subinterfaces:
EditableRenderable2DInterface
All Known Implementing Classes:
EditableRenderable2D, GisRenderable2D, ImageRenderable, Renderable2D, SingleImageRenderable

public interface Renderable2DInterface

The Renderable2D interface defines the basic interface for 2d animation. This is a hard-to-use interface. It is implemented by the easy-to-use Renderable2D class
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.

Version:
$Revision: 1.1 $ $Date: 2007/01/06 13:21:28 $
Author:
Peter Jacobs

Nested Class Summary
static class Renderable2DInterface.Util
          A Util
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
 
Method Summary
 boolean contains(Point2D pointWorldCoordinates, Rectangle2D extent, Dimension screen)
          does the shape contain the point
 void destroy()
          destroys this editable.
 LocatableInterface getSource()
          gets the source of this renderable
 void paint(Graphics2D graphics, Rectangle2D extent, Dimension screen, ImageObserver observer)
          paints the object on a 2D graphics object
 

Method Detail

paint

void paint(Graphics2D graphics,
           Rectangle2D extent,
           Dimension screen,
           ImageObserver observer)
paints the object on a 2D graphics object

Parameters:
graphics - the graphics object
extent - the extent of the panel
screen - the screen of the panel
observer - the observer of the renderableInterface

getSource

LocatableInterface getSource()
gets the source of this renderable

Returns:
Locatable the source

contains

boolean contains(Point2D pointWorldCoordinates,
                 Rectangle2D extent,
                 Dimension screen)
does the shape contain the point

Parameters:
pointWorldCoordinates - the point in world coordinates. Default implementation is to intersect the 3D bounds on location.z and to return the bounds2D of this intersect.
extent - the extent of the panel.
screen - the screen of the panel.
Returns:
whether the point is in the shape

destroy

void destroy()
             throws RemoteException
destroys this editable. How to do this must be implemented by the modeler

Throws:
RemoteException - RemoteException


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