Class ArbitraryLayout
java.lang.Object
repast.simphony.visualization.visualization2D.ArbitraryLayout
- All Implemented Interfaces:
Layout
-
Constructor Summary
-
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 layoutvoid
Sets the layout properties for this layout.void
setLocation
(Object o, float... loc) void
setProjection
(Projection projection) Sets the projection associated with this Layout.void
update()
Updates this layout.
-
Constructor Details
-
ArbitraryLayout
public ArbitraryLayout()
-
-
Method Details
-
setLocation
-
update
public void update()Description copied from interface:Layout
Updates this layout. -
setLayoutProperties
Sets the layout properties for this layout.- Specified by:
setLayoutProperties
in interfaceLayout
- Parameters:
props
- the layout properties
-
getLayoutProperties
Gets the layout properties for this layout.- Specified by:
getLayoutProperties
in interfaceLayout
- Returns:
- the layout properties for this layout.
-
setProjection
Description copied from interface:Layout
Sets the projection associated with this Layout.- Specified by:
setProjection
in interfaceLayout
- Parameters:
projection
- the associated projection.
-
getLocation
Description copied from interface:Layout
Gets the location of the specified object as determined by this layout.- Specified by:
getLocation
in interfaceLayout
- Parameters:
obj
- the object whose location we want.- Returns:
- the location of the object.
-
getName
Description copied from interface:Layout
Gets the name of the layout -
getBoundingBox
Description copied from interface:Layout
Gets a bounding box that describes the extent of this layout in location coordinates.- Specified by:
getBoundingBox
in 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.
-