Class Continuous2DLayout
java.lang.Object
repast.simphony.visualization.continuous.Continuous2DLayout
- All Implemented Interfaces:
Layout<Object,ContinuousSpace>
Layout for a 2D continuous space.
- Author:
- Nick Collier, Jerry Vos
-
Field Summary
Fields -
Constructor Summary
Constructors -
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(Object 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(ContinuousSpace space) Sets the projection associated with this Layout.voidupdate()Updates this layout.
-
Field Details
-
point
protected float[] point
-
-
Constructor Details
-
Continuous2DLayout
public Continuous2DLayout() -
Continuous2DLayout
-
-
Method Details
-
setProjection
Description copied from interface:LayoutSets the projection associated with this Layout.- Specified by:
setProjectionin interfaceLayout<Object,ContinuousSpace> - Parameters:
space- the associated projection.
-
setLayoutProperties
Sets the layout properties for this layout.- Specified by:
setLayoutPropertiesin interfaceLayout<Object,ContinuousSpace> - Parameters:
props- the layout properties
-
getLayoutProperties
Gets the layout properties for this layout.- Specified by:
getLayoutPropertiesin interfaceLayout<Object,ContinuousSpace> - Returns:
- the layout properties for this layout.
-
getLocation
Description copied from interface:LayoutGets the location of the specified object as determined by this layout.- Specified by:
getLocationin interfaceLayout<Object,ContinuousSpace> - Parameters:
obj- the object whose location we want.- Returns:
- the location of the object.
-
update
public void update()Description copied from interface:LayoutUpdates this layout.- Specified by:
updatein interfaceLayout<Object,ContinuousSpace>
-
getName
Description copied from interface:LayoutGets the name of the layout- Specified by:
getNamein interfaceLayout<Object,ContinuousSpace> - Returns:
- name of the layout type
-
getBoundingBox
Description copied from interface:LayoutGets a bounding box that describes the extent of this layout in location coordinates.- Specified by:
getBoundingBoxin interfaceLayout<Object,ContinuousSpace> - Returns:
- a bounding box that describes the extent of this layout in location coordinates, or a 0 size box if the extent is unknown.
-