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 Summary
Modifier 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 layoutvoid
Sets the layout properties for this layout.void
setProjection
(U projection) Sets the projection associated with this Layout.void
update()
Updates this layout.
-
Method Details
-
update
void update()Updates this layout. -
setProjection
Sets the projection associated with this Layout.- Parameters:
projection
- the associated projection.
-
getLocation
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.
-
setLayoutProperties
Sets the layout properties for this layout.- Parameters:
props
- the layout properties
-
getLayoutProperties
VisualizationProperties getLayoutProperties()Gets the layout properties for this layout.- Returns:
- the layout properties for this layout.
-
getName
String getName()Gets the name of the layout- Returns:
- name of the layout type
-
getBoundingBox
Box 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.
-