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 TypeMethodDescriptionvoidaddEditedStyle(String objClassname, String userStyleName) voidaddLayerOrder(String objClassname, int order) voidaddNetworkEditedStyle(Object networkID, String networkClassName) voidaddNetworkStyle(Object networkID, String networkClassName) voidaddProjection(ProjectionData proj, ProjectionDescriptor descriptor) Adds the data for a projection for which this is the display info.voidvoidvoidRemoves any added projection descriptors.voidGets the background color of the display.Gets the Bounding Box for the display.Class<?>[]Class<?>[]getEditedStyleName(String objClassName) getLayerOrder(String objClassName) intGets the name of the projection associated with the layout.getNetworkEditedStyleName(Object networkID) getNetworkStyleClassName(Object networkID) intGets 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.voidset(DisplayDescriptor descriptor) voidsetBackgroundColor(Color color) Sets the background color of the display.voidsetBoundingBox(BoundingBox boundingBox) Sets the BoundingBox for the display.voidsetDisplayType(String type, boolean reset) Sets the display type of this descriptor.voidsetLayoutClassName(String className) voidsetLayoutFrequency(IDisplay.LayoutFrequency frequency) voidsetLayoutInterval(int interval) voidsetLayoutProjection(String name) Sets the name of the projection to associate with the layout.voidSets the layout properties for this display.voidsetProperty(String name, Object value) Sets the specified property.voidsetScheduleParameters(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
-