Interface DisplayDescriptor
- All Superinterfaces:
Descriptor
- All Known Implementing Classes:
BasicDisplayDescriptor
,CartesianDisplayDescriptor
,DefaultDisplayDescriptor
,GISDisplayDescriptor
Descriptor for displays.
- Author:
- Nick Collier, Eric Tatara
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEditedStyle
(String objClassname, String userStyleName) void
addLayerOrder
(String objClassname, int order) void
addNetworkEditedStyle
(Object networkID, String networkClassName) void
addNetworkStyle
(Object networkID, String networkClassName) void
addProjection
(ProjectionData proj, ProjectionDescriptor descriptor) Adds the data for a projection for which this is the display info.void
void
void
Removes any added projection descriptors.void
Gets the background color of the display.Gets the Bounding Box for the display.Class<?>[]
Class<?>[]
getEditedStyleName
(String objClassName) getLayerOrder
(String objClassName) int
Gets the name of the projection associated with the layout.getNetworkEditedStyleName
(Object networkID) getNetworkStyleClassName
(Object networkID) int
Gets the number of projections in this display descriptor.Gets the ProjectionDescriptor for the named projection.Gets the data for all the projections for which this is the display info.getProperty
(String name) Gets the named property.Retrieves the parameters for when to activate the display update.getStyleClassName
(String objClassName) makeCopy()
Returns a deep copy of the descriptor.Gets an iterable of names of the properties contained by this descriptor.void
set
(DisplayDescriptor descriptor) void
setBackgroundColor
(Color color) Sets the background color of the display.void
setBoundingBox
(BoundingBox boundingBox) Sets the BoundingBox for the display.void
setDisplayType
(String type, boolean reset) Sets the display type of this descriptor.void
setLayoutClassName
(String className) void
setLayoutFrequency
(IDisplay.LayoutFrequency frequency) void
setLayoutInterval
(int interval) void
setLayoutProjection
(String name) Sets the name of the projection to associate with the layout.void
Sets the layout properties for this display.void
setProperty
(String name, Object value) Sets the specified property.void
setScheduleParameters
(ScheduleParameters scheduleInfo) Sets the parameters for when to activate the display update.Methods inherited from interface repast.simphony.engine.schedule.Descriptor
getName, setName
-
Method Details
-
makeCopy
DisplayDescriptor makeCopy()Returns a deep copy of the descriptor.- Returns:
-
set
-
setLayoutInterval
void setLayoutInterval(int interval) -
getLayoutInterval
int getLayoutInterval() -
getDefaultStyles
Class<?>[] getDefaultStyles() -
getDefaultNetStyles
Class<?>[] getDefaultNetStyles() -
clearProjectionDescriptors
void clearProjectionDescriptors()Removes any added projection descriptors. -
getDisplayType
String getDisplayType() -
setDisplayType
Sets the display type of this descriptor. If reset is true, then the fields in the descriptor that depend on type info will be reset.- Parameters:
type
- the display typereset
- if true, then the fields in the descriptor that depend on type info will be reset.
-
addStyle
-
addEditedStyle
-
addLayerOrder
-
addNetworkStyle
-
addNetworkEditedStyle
-
getStyleClassName
-
getEditedStyleName
-
getLayerOrder
-
getNetworkStyleClassName
-
getNetworkEditedStyleName
-
agentClassStyleNames
-
agentClassEditedStyleNames
-
agentClassLayerOrders
-
networkStyleIDs
-
networkEditedStyleIDs
-
getLayoutFrqeuency
IDisplay.LayoutFrequency getLayoutFrqeuency() -
setLayoutFrequency
-
getScheduleParameters
ScheduleParameters getScheduleParameters()Retrieves the parameters for when to activate the display update.- Returns:
- the parameters for when to activate the display update.
-
setScheduleParameters
Sets the parameters for when to activate the display update.- Parameters:
scheduleInfo
- when to activate the display update
-
getLayoutClassName
String getLayoutClassName() -
setLayoutClassName
-
setLayoutProjection
Sets the name of the projection to associate with the layout.- Parameters:
name
-
-
getLayoutProjection
String getLayoutProjection()Gets the name of the projection associated with the layout.- Returns:
- the name of the projection associated with the layout.
-
getProjections
Iterable<ProjectionData> getProjections()Gets the data for all the projections for which this is the display info.- Returns:
- the data for all the projections for which this is the display info.
-
getProjectionCount
int getProjectionCount()Gets the number of projections in this display descriptor.- Returns:
- the number of projections in this display descriptor.
-
addProjection
Adds the data for a projection for which this is the display info.- Parameters:
proj
-descriptor
-
-
clearProjections
void clearProjections() -
getProjectionDescriptors
Iterable<ProjectionDescriptor> getProjectionDescriptors() -
getProjectionDescriptor
Gets the ProjectionDescriptor for the named projection.- Parameters:
name
- the name of the projection whose descriptor we want- Returns:
- the ProjectionDescriptor for the named projection.
-
getLayoutProperties
VisualizationProperties getLayoutProperties()- Returns:
- properties for the layout
-
setLayoutProperties
Sets the layout properties for this display. -
getBoundingBox
BoundingBox getBoundingBox()Gets the Bounding Box for the display. This defines the extents of the display- Returns:
- the BoundingBox
-
setBoundingBox
Sets the BoundingBox for the display. This defines the extents of the display.- Parameters:
boundingBox
- The BoundingBox
-
getProperty
Gets the named property.- Parameters:
name
- the name of the property- Returns:
- the named property
-
setProperty
Sets the specified property.- Parameters:
name
- the property's namevalue
- the property's value
-
propertyNames
Gets an iterable of names of the properties contained by this descriptor.- Returns:
- an iterable of names of the properties contained by this descriptor.
-
getStyles
-
getBackgroundColor
Color getBackgroundColor()Gets the background color of the display.- Returns:
- the background color of the display.
-
setBackgroundColor
Sets the background color of the display.- Parameters:
color
- the background color of the display.
-
getLayerOrders
-
getEditedStyles
-
addScenarioChangedListener
-