Class CGDLayout<T>
java.lang.Object
repast.simphony.visualization.AbstractNetworkLayout<T>
repast.simphony.visualization.cgd.CGDLayout<T>
- All Implemented Interfaces:
ProjectionListener,Layout<T,Network<T>>
-
Field Summary
FieldsFields inherited from class repast.simphony.visualization.AbstractNetworkLayout
baseGraph, layoutName, locationData -
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(T obj) Gets the location of the specified object as determined by this layout.voidInvoked when a projection event occurs.voidSets the layout properties for this layout.voidsetProjection(Network projection) Sets the projection associated with this Layout.voidupdate()Updates this layout.Methods inherited from class repast.simphony.visualization.AbstractNetworkLayout
getGraph, getLocationData, getName
-
Field Details
-
network
-
-
Constructor Details
-
CGDLayout
public CGDLayout() -
CGDLayout
-
-
Method Details
-
update
public void update()Description copied from interface:LayoutUpdates this layout. -
getLocation
Description copied from interface:LayoutGets the location of the specified object as determined by this layout.- Specified by:
getLocationin interfaceLayout<T,Network<T>> - Parameters:
obj- the object whose location we want.- Returns:
- the location of the object.
-
setLayoutProperties
Description copied from interface:LayoutSets the layout properties for this layout.- Specified by:
setLayoutPropertiesin interfaceLayout<T,Network<T>> - Overrides:
setLayoutPropertiesin classAbstractNetworkLayout<T>- Parameters:
props- the layout properties
-
getLayoutProperties
Description copied from interface:LayoutGets the layout properties for this layout.- Specified by:
getLayoutPropertiesin interfaceLayout<T,Network<T>> - Overrides:
getLayoutPropertiesin classAbstractNetworkLayout<T>- Returns:
- the layout properties for this layout.
-
setProjection
Description copied from interface:LayoutSets the projection associated with this Layout.- Specified by:
setProjectionin interfaceLayout<T,Network<T>> - Overrides:
setProjectionin classAbstractNetworkLayout<T>- Parameters:
projection- the associated projection.
-
projectionEventOccurred
Description copied from interface:ProjectionListenerInvoked when a projection event occurs.- Specified by:
projectionEventOccurredin interfaceProjectionListener<T>- Parameters:
evt- the object describing the event
-
getBoundingBox
Description copied from interface:LayoutGets a bounding box that describes the extent of this layout in location coordinates.- Specified by:
getBoundingBoxin interfaceLayout<T,Network<T>> - Returns:
- a bounding box that describes the extent of this layout in location coordinates, or a 0 size box if the extent is unknown.
-