Class CartesianDisplayDescriptor
java.lang.Object
repast.simphony.scenario.AbstractDescriptor
repast.simphony.visualization.engine.BasicDisplayDescriptor
repast.simphony.visualization.engine.CartesianDisplayDescriptor
- All Implemented Interfaces:
Descriptor
,DisplayDescriptor
,ValueLayerDescriptor
public class CartesianDisplayDescriptor
extends BasicDisplayDescriptor
implements ValueLayerDescriptor
Display descriptor for Cartesian (2D,3D) displays with value layers.
TODO Projections: also implement network descriptor?
- Author:
- Nick Collier, Eric Tatara
-
Field Summary
Fields inherited from class repast.simphony.scenario.AbstractDescriptor
scs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValueLayerName
(String name) Adds the named value layer to the list of value layers to display.void
int
Gets the number of Value Layers in this display descriptor.Gets the name of the value layer edited style.Gets a List of all the names of the value layers to display.Gets the name of the value layer style.makeCopy()
Returns a deep copy of the descriptor.void
set
(DisplayDescriptor descriptor) Sets the fields of this descriptor from another when making copies.void
Sets the value layer edited style name.void
setValueLayerStyleName
(String name) Sets the value layer style name.Methods inherited from class repast.simphony.visualization.engine.BasicDisplayDescriptor
addEditedStyle, addLayerOrder, addNetworkEditedStyle, addNetworkStyle, addProjection, addStyle, agentClassEditedStyleNames, agentClassLayerOrders, agentClassStyleNames, clearProjectionDescriptors, clearProjections, getBackgroundColor, getBoundingBox, getDefaultNetStyles, getDefaultStyles, getDisplayType, getEditedStyleName, getEditedStyles, getLayerOrder, getLayerOrders, getLayoutClassName, getLayoutFrqeuency, getLayoutInterval, getLayoutProjection, getLayoutProperties, getNetworkEditedStyleName, getNetworkStyleClassName, getProjectionCount, getProjectionDescriptor, getProjectionDescriptors, getProjections, getProperty, getScheduleParameters, getStyleClassName, getStyles, networkEditedStyleIDs, networkStyleIDs, propertyNames, setBackgroundColor, setBoundingBox, setDisplayType, setLayoutClassName, setLayoutFrequency, setLayoutInterval, setLayoutProjection, setLayoutProperties, setProperty, setScheduleParameters
Methods inherited from class repast.simphony.scenario.AbstractDescriptor
addScenarioChangedListener, getName, readResolve, setName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface repast.simphony.engine.schedule.Descriptor
getName, setName
Methods inherited from interface repast.simphony.visualization.engine.DisplayDescriptor
addScenarioChangedListener
-
Field Details
-
valueLayers
-
-
Constructor Details
-
CartesianDisplayDescriptor
-
CartesianDisplayDescriptor
-
-
Method Details
-
clearValueLayerNames
public void clearValueLayerNames()- Specified by:
clearValueLayerNames
in interfaceValueLayerDescriptor
-
getValueLayerCount
public int getValueLayerCount()Description copied from interface:ValueLayerDescriptor
Gets the number of Value Layers in this display descriptor.- Specified by:
getValueLayerCount
in interfaceValueLayerDescriptor
- Returns:
-
set
Description copied from class:BasicDisplayDescriptor
Sets the fields of this descriptor from another when making copies.- Specified by:
set
in interfaceDisplayDescriptor
- Overrides:
set
in classBasicDisplayDescriptor
-
addValueLayerName
Adds the named value layer to the list of value layers to display.- Specified by:
addValueLayerName
in interfaceValueLayerDescriptor
- Parameters:
name
- the name of the value layer to display.
-
getValueLayerNames
Gets a List of all the names of the value layers to display.- Specified by:
getValueLayerNames
in interfaceValueLayerDescriptor
- Returns:
- a List of all the names of the value layers to display.
-
setValueLayerStyleName
Sets the value layer style name.- Specified by:
setValueLayerStyleName
in interfaceValueLayerDescriptor
- Parameters:
name
-
-
getValueLayerStyleName
Gets the name of the value layer style. Will return null if no value layer style has been selected.- Specified by:
getValueLayerStyleName
in interfaceValueLayerDescriptor
- Returns:
- the name of the value layer style.
-
getValueLayerEditedStyleName
Gets the name of the value layer edited style. Will return null if no value layer style has been selected.- Specified by:
getValueLayerEditedStyleName
in interfaceValueLayerDescriptor
- Returns:
- the name of the value layer edited style.
-
setValueLayerEditedStyleName
Sets the value layer edited style name.- Specified by:
setValueLayerEditedStyleName
in interfaceValueLayerDescriptor
- Parameters:
name
-
-
makeCopy
Description copied from interface:DisplayDescriptor
Returns a deep copy of the descriptor.- Specified by:
makeCopy
in interfaceDisplayDescriptor
- Returns:
-