Class DefaultMapViewManager
- java.lang.Object
-
- org.opennms.features.topology.app.internal.DefaultMapViewManager
-
- All Implemented Interfaces:
MapViewManager
public class DefaultMapViewManager extends java.lang.Object implements MapViewManager
-
-
Constructor Summary
Constructors Constructor Description DefaultMapViewManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(MapViewManagerListener listener)
BoundingBox
getCurrentBoundingBox()
double
getScale()
double
getViewPortAspectRatio()
int
getViewPortHeight()
int
getViewPortWidth()
void
removeListener(MapViewManagerListener listener)
void
setBoundingBox(BoundingBox boundingBox)
void
setCenter(Point point)
void
setMapBounds(BoundingBox boundingBox)
void
setScale(double scale)
void
setViewPort(int width, int height)
java.lang.String
toString()
void
zoomToPoint(double scale, Point center)
-
-
-
Method Detail
-
addListener
public void addListener(MapViewManagerListener listener)
- Specified by:
addListener
in interfaceMapViewManager
-
removeListener
public void removeListener(MapViewManagerListener listener)
- Specified by:
removeListener
in interfaceMapViewManager
-
setMapBounds
public void setMapBounds(BoundingBox boundingBox)
- Specified by:
setMapBounds
in interfaceMapViewManager
-
setViewPort
public void setViewPort(int width, int height)
- Specified by:
setViewPort
in interfaceMapViewManager
-
getViewPortAspectRatio
public double getViewPortAspectRatio()
- Specified by:
getViewPortAspectRatio
in interfaceMapViewManager
-
setCenter
public void setCenter(Point point)
- Specified by:
setCenter
in interfaceMapViewManager
-
zoomToPoint
public void zoomToPoint(double scale, Point center)
- Specified by:
zoomToPoint
in interfaceMapViewManager
-
getCurrentBoundingBox
public BoundingBox getCurrentBoundingBox()
- Specified by:
getCurrentBoundingBox
in interfaceMapViewManager
-
getScale
public double getScale()
- Specified by:
getScale
in interfaceMapViewManager
-
setScale
public void setScale(double scale)
- Specified by:
setScale
in interfaceMapViewManager
-
setBoundingBox
public void setBoundingBox(BoundingBox boundingBox)
- Specified by:
setBoundingBox
in interfaceMapViewManager
-
getViewPortHeight
public int getViewPortHeight()
- Specified by:
getViewPortHeight
in interfaceMapViewManager
-
getViewPortWidth
public int getViewPortWidth()
- Specified by:
getViewPortWidth
in interfaceMapViewManager
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-