Class DefaultLayout
- java.lang.Object
-
- org.opennms.features.topology.app.internal.DefaultLayout
-
-
Constructor Summary
Constructors Constructor Description DefaultLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundingBox
computeBoundingBox(java.util.Collection<VertexRef> vertRefs)
BoundingBox
getBounds()
Point
getInitialLocation(VertexRef v)
Point
getLocation(VertexRef v)
java.util.Map<VertexRef,Point>
getLocations()
void
setLocation(VertexRef v, Point location)
void
updateLocations(java.util.Collection<VertexRef> displayVertices)
-
-
-
Method Detail
-
getLocation
public Point getLocation(VertexRef v)
- Specified by:
getLocation
in interfaceLayout
-
getLocations
public java.util.Map<VertexRef,Point> getLocations()
- Specified by:
getLocations
in interfaceLayout
- Returns:
- Returns an immutable copy of the current list of locations
-
setLocation
public void setLocation(VertexRef v, Point location)
- Specified by:
setLocation
in interfaceLayout
-
getInitialLocation
public Point getInitialLocation(VertexRef v)
- Specified by:
getInitialLocation
in interfaceLayout
-
updateLocations
public void updateLocations(java.util.Collection<VertexRef> displayVertices)
- Specified by:
updateLocations
in interfaceLayout
-
getBounds
public BoundingBox getBounds()
-
computeBoundingBox
public BoundingBox computeBoundingBox(java.util.Collection<VertexRef> vertRefs)
- Specified by:
computeBoundingBox
in interfaceLayout
-
-