|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
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 |
---|
void paint(Graphics2D graphics, Rectangle2D extent, Dimension screen, ImageObserver observer)
graphics
- the graphics objectextent
- the extent of the panelscreen
- the screen of the panelobserver
- the observer of the renderableInterfaceLocatableInterface getSource()
boolean contains(Point2D pointWorldCoordinates, Rectangle2D extent, Dimension screen)
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.
void destroy() throws RemoteException
RemoteException
- RemoteException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |