|
|||||||||||
| 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
A Util
(c) copyright 2003 Delft
University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General
Public License (GPL) , no warranty
| Constructor Summary | |
protected |
Renderable2DInterface.Util()
constructs a new Util |
| Method Summary | |
static java.awt.geom.Rectangle2D |
computeVisibleExtent(java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen)
computes the visible extent |
static double |
getScale(java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen)
returns the scale of a screen compared to an extent. |
static java.awt.geom.Point2D |
getScreenCoordinates(java.awt.geom.Point2D worldCoordinates,
java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen)
returns the frame xy-coordinates of a point in world coordinates. |
static java.awt.geom.Point2D |
getWorldCoordinates(java.awt.geom.Point2D screenCoordinates,
java.awt.geom.Rectangle2D extent,
java.awt.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(java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen)
extent - the extentscreen - the screen
public static java.awt.geom.Rectangle2D computeVisibleExtent(java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen)
extent - the extentscreen - the screen
public static java.awt.geom.Point2D getScreenCoordinates(java.awt.geom.Point2D worldCoordinates,
java.awt.geom.Rectangle2D extent,
java.awt.Dimension screen)
worldCoordinates - the world coordinatesextent - the extent of thisscreen - the screen
public static java.awt.geom.Point2D getWorldCoordinates(java.awt.geom.Point2D screenCoordinates,
java.awt.geom.Rectangle2D extent,
java.awt.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 | ||||||||||