Class JungLayout<T>
- java.lang.Object
-
- repast.simphony.visualization.AbstractNetworkLayout<T>
-
- repast.simphony.visualization.visualization2D.layout.JungLayout<T>
-
- Type Parameters:
T
-
- Direct Known Subclasses:
CircleLayout2D
,IterableLayout
public class JungLayout<T> extends AbstractNetworkLayout<T>
- Author:
- Eric Tatara
-
-
Field Summary
Fields Modifier and Type Field Description protected edu.uci.ics.jung.algorithms.layout.AbstractLayout<T,RepastEdge<T>>
layout
protected Network<T>
network
-
Fields inherited from class repast.simphony.visualization.AbstractNetworkLayout
baseGraph, layoutName, locationData
-
-
Constructor Summary
Constructors Constructor Description JungLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Box
getBoundingBox()
Gets a bounding box that describes the extent of this layout in location coordinates.float[]
getLocation(T obj)
Gets the location of the specified object as determined by this layout.protected void
setLayout()
void
setProjection(Network<T> projection)
Sets the projection associated with this Layout.void
update()
Updates this layout.-
Methods inherited from class repast.simphony.visualization.AbstractNetworkLayout
getGraph, getLayoutProperties, getLocationData, getName, setLayoutProperties
-
-
-
-
Field Detail
-
layout
protected edu.uci.ics.jung.algorithms.layout.AbstractLayout<T,RepastEdge<T>> layout
-
-
Method Detail
-
setProjection
public void setProjection(Network<T> projection)
Description copied from interface:Layout
Sets the projection associated with this Layout.- Specified by:
setProjection
in interfaceLayout<T,Network<T>>
- Overrides:
setProjection
in classAbstractNetworkLayout<T>
- Parameters:
projection
- the associated projection.
-
update
public void update()
Description copied from interface:Layout
Updates this layout.
-
setLayout
protected void setLayout()
-
getLocation
public float[] getLocation(T obj)
Description copied from interface:Layout
Gets the location of the specified object as determined by this layout.- Parameters:
obj
- the object whose location we want.- Returns:
- the location of the object.
-
getBoundingBox
public Box getBoundingBox()
Description copied from interface:Layout
Gets a bounding box that describes the extent of this layout in location coordinates.- Returns:
- a bounding box that describes the extent of this layout in location coordinates, or a 0 size box if the extent is unknown.
-
-