|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.tudelft.simulation.dsol.animation.D2.Renderable2DInterface.Util
public static class Renderable2DInterface.Util
A Util
(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.
Constructor Summary | |
---|---|
protected |
Renderable2DInterface.Util()
constructs a new Util |
Method Summary | |
---|---|
static Rectangle2D |
computeVisibleExtent(Rectangle2D extent,
Dimension screen)
computes the visible extent |
static double |
getScale(Rectangle2D extent,
Dimension screen)
returns the scale of a screen compared to an extent. |
static Point2D |
getScreenCoordinates(Point2D worldCoordinates,
Rectangle2D extent,
Dimension screen)
returns the frame xy-coordinates of a point in world coordinates. |
static Point2D |
getWorldCoordinates(Point2D screenCoordinates,
Rectangle2D extent,
Dimension screen)
returns the frame xy-coordinates of a point in screen coordinates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Renderable2DInterface.Util()
Method Detail |
---|
public static double getScale(Rectangle2D extent, Dimension screen)
extent
- the extentscreen
- the screen
public static Rectangle2D computeVisibleExtent(Rectangle2D extent, Dimension screen)
extent
- the extentscreen
- the screen
public static Point2D getScreenCoordinates(Point2D worldCoordinates, Rectangle2D extent, Dimension screen)
worldCoordinates
- the world coordinatesextent
- the extent of thisscreen
- the screen
public static Point2D getWorldCoordinates(Point2D screenCoordinates, Rectangle2D extent, Dimension screen)
screenCoordinates
- the screen coordinatesextent
- the extent of thisscreen
- the screen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |