Class MapWormhole
-
- All Implemented Interfaces:
-
it.unibo.alchemist.boundary.ui.api.Wormhole2D
public final class MapWormhole extends WormholeSwing<P>
Wormhole used for maps rendering.
-
-
Constructor Summary
Constructors Constructor Description MapWormhole(Environment<out Object, GeoPosition> environment, Component comp, IMapViewPosition m)
Initializes a new MapWormhole copying the state of the one in input.
-
Method Summary
Modifier and Type Method Description GeoPosition
getEnvPoint(Point viewPoint)
Point
getViewPoint(GeoPosition environmentPoint)
Point
getViewPosition()
void
rotateAroundPoint(Point p, double a)
void
setEnvPosition(GeoPosition ep)
void
optimalZoom()
void
setViewPosition(Point p)
void
setZoom(double z)
void
zoomOnPoint(Point zoomPoint, double z)
-
-
Constructor Detail
-
MapWormhole
MapWormhole(Environment<out Object, GeoPosition> environment, Component comp, IMapViewPosition m)
Initializes a new MapWormhole copying the state of the one in input.- Parameters:
environment
- the Environmentcomp
- the controlled Componentm
- the IMapViewPosition
-
-
Method Detail
-
getEnvPoint
GeoPosition getEnvPoint(Point viewPoint)
-
getViewPoint
Point getViewPoint(GeoPosition environmentPoint)
-
getViewPosition
Point getViewPosition()
-
rotateAroundPoint
void rotateAroundPoint(Point p, double a)
-
setEnvPosition
void setEnvPosition(GeoPosition ep)
-
optimalZoom
void optimalZoom()
-
setViewPosition
void setViewPosition(Point p)
-
setZoom
void setZoom(double z)
-
zoomOnPoint
void zoomOnPoint(Point zoomPoint, double z)
-
-
-
-