Class Random3DLayout
java.lang.Object
repast.simphony.visualization.visualization3D.layout.Random3DLayout
- All Implemented Interfaces:
Layout
Distributes objects uniformly at random within a 20 x 20 x 20 bounding box.
- Version:
- $Revision: 1.1 $ $Date: 2006/01/06 22:35:19 $
- Author:
- Nick Collier
-
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(Projection projection) Sets the projection associated with this Layout.voidupdate()Updates this layout.
-
Constructor Details
-
Random3DLayout
public Random3DLayout()
-
-
Method Details
-
getLocation
Description copied from interface:LayoutGets the location of the specified object as determined by this layout.- Specified by:
getLocationin interfaceLayout- Parameters:
obj- the object whose location we want.- Returns:
- the location of the object.
-
setProjection
Description copied from interface:LayoutSets the projection associated with this Layout.- Specified by:
setProjectionin interfaceLayout- Parameters:
projection- the associated projection.
-
getLayoutProperties
Gets the layout properties for this layout.- Specified by:
getLayoutPropertiesin interfaceLayout- Returns:
- the layout properties for this layout.
-
setLayoutProperties
Sets the layout properties for this layout.- Specified by:
setLayoutPropertiesin interfaceLayout- Parameters:
props- the layout properties
-
update
public void update()Description copied from interface:LayoutUpdates this layout. -
getName
Description copied from interface:LayoutGets the name of the layout -
getBoundingBox
Description copied from interface:LayoutGets a bounding box that describes the extent of this layout in location coordinates.- Specified by:
getBoundingBoxin interfaceLayout- Returns:
- a bounding box that describes the extent of this layout in location coordinates, or a 0 size box if the extent is unknown.
-