Package repast.simphony.visualization
Interface Layout<T,U extends Projection<?>> 
- All Known Implementing Classes:
- AbstractNetworkLayout,- ArbitraryLayout,- CGDLayout,- CircleLayout2D,- Continuous2DLayout,- Continuous3DLayout,- FR3DLayout,- FRLayout2D,- GEM3DLayout,- Grid2DLayout,- Grid3DLayout,- ISOMLayout2D,- IterableLayout,- JungLayout,- JungNetworkLayout,- KKLayout2D,- NullLayout,- Random2DLayout,- Random3DLayout,- SphericalLayout,- TreeLayout2D
public interface Layout<T,U extends Projection<?>> 
Interface for display layouts. A layout provides display coordinates for the
 displayed objects.
- Author:
- Nick Collier
- 
Method SummaryModifier and TypeMethodDescriptionGets a bounding box that describes the extent of this layout in location coordinates.Gets the layout properties for this layout.float[]getLocation(T obj) Gets the location of the specified object as determined by this layout.getName()Gets the name of the layoutvoidSets the layout properties for this layout.voidsetProjection(U projection) Sets the projection associated with this Layout.voidupdate()Updates this layout.
- 
Method Details- 
updatevoid update()Updates this layout.
- 
setProjectionSets the projection associated with this Layout.- Parameters:
- projection- the associated projection.
 
- 
getLocationGets 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.
 
- 
setLayoutPropertiesSets the layout properties for this layout.- Parameters:
- props- the layout properties
 
- 
getLayoutPropertiesVisualizationProperties getLayoutProperties()Gets the layout properties for this layout.- Returns:
- the layout properties for this layout.
 
- 
getNameString getName()Gets the name of the layout- Returns:
- name of the layout type
 
- 
getBoundingBoxBox getBoundingBox()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.
 
 
-