Package 

Class MapWormhole

  • All Implemented Interfaces:
    it.unibo.alchemist.boundary.wormhole.interfaces.Wormhole2D

    
    public final class MapWormhole
    extends WormholeSwing<GeoPosition>
                        

    Wormhole used for maps rendering.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static byte MAX_ZOOM
    • Constructor Summary

      Constructors 
      Constructor Description
      MapWormhole(Environment<out Object, GeoPosition> env, Component comp, IMapViewPosition m) Initializes a new MapWormhole copying the state of the one ininput.
    • 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)
      • Methods inherited from class it.unibo.alchemist.boundary.wormhole.implementation.AbstractWormhole2D

        calculateTransform, center, envPointFromView, getEnvPoint, getEnvRatio, getEnvironment, getHRate, getMode, getNIHorizontalRatio, getNIVerticalRatio, getPosition, getRotation, getVRate, getView, getViewPoint, getViewPosition, getViewRatio, getViewSize, getZoom, isInsideView, optimalZoom, rotateAroundPoint, setEnvPosition, setEnvPositionWithoutMoving, setMode, setPosition, setRotation, setViewPosition, setViewPositionWithoutMoving, setZoom, viewPointFromEnv, zoomOnPoint
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait