Package repast.simphony.visualization
Class AbstractNetworkLayout<T>
- java.lang.Object
-
- repast.simphony.visualization.AbstractNetworkLayout<T>
-
- Direct Known Subclasses:
CGDLayout
,JungLayout
,JungNetworkLayout
,TreeLayout2D
public abstract class AbstractNetworkLayout<T> extends Object implements Layout<T,Network<T>>
-
-
Field Summary
Fields Modifier and Type Field Description protected Network<T>
baseGraph
protected String
layoutName
protected Map<Object,double[]>
locationData
-
Constructor Summary
Constructors Constructor Description AbstractNetworkLayout()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Network<T>
getGraph()
VisualizationProperties
getLayoutProperties()
Gets the layout properties for this layout.Map<Object,double[]>
getLocationData()
String
getName()
Gets the name of the layoutvoid
setLayoutProperties(VisualizationProperties props)
Sets the layout properties for this layout.void
setProjection(Network<T> projection)
Sets the projection associated with this Layout.void
update()
Updates this layout.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface repast.simphony.visualization.Layout
getBoundingBox, getLocation
-
-
-
-
Method Detail
-
update
public void update()
Description copied from interface:Layout
Updates this layout.
-
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>>
- Parameters:
projection
- the associated projection.
-
setLayoutProperties
public void setLayoutProperties(VisualizationProperties props)
Description copied from interface:Layout
Sets the layout properties for this layout.- Specified by:
setLayoutProperties
in interfaceLayout<T,Network<T>>
- Parameters:
props
- the layout properties
-
getLayoutProperties
public VisualizationProperties getLayoutProperties()
Description copied from interface:Layout
Gets the layout properties for this layout.- Specified by:
getLayoutProperties
in interfaceLayout<T,Network<T>>
- Returns:
- the layout properties for this layout.
-
getName
public String getName()
Description copied from interface:Layout
Gets the name of the layout
-
-