Class DefaultDisplayDescriptor
- java.lang.Object
-
- repast.simphony.scenario.AbstractDescriptor
-
- repast.simphony.visualization.engine.DefaultDisplayDescriptor
-
- All Implemented Interfaces:
Descriptor
,DisplayDescriptor
@Deprecated public class DefaultDisplayDescriptor extends AbstractDescriptor implements DisplayDescriptor
Deprecated.- Author:
- Nick Collier
-
-
Field Summary
-
Fields inherited from class repast.simphony.scenario.AbstractDescriptor
scs
-
-
Constructor Summary
Constructors Constructor Description DefaultDisplayDescriptor(String name)
Deprecated.DefaultDisplayDescriptor(DisplayDescriptor descriptor)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addEditedStyle(String objClassName, String userStyleName)
Deprecated.void
addLayerOrder(String objClassName, int order)
Deprecated.void
addNetworkEditedStyle(Object networkID, String networkClassName)
Deprecated.void
addNetworkStyle(Object networkID, String networkClassName)
Deprecated.void
addProjection(ProjectionData data, ProjectionDescriptor descriptor)
Deprecated.Adds the data for a projection for which this is the display info.void
addStyle(String objClassName, String styleClassName)
Deprecated.void
addValueLayerName(String name)
Deprecated.Adds the named value layer to the list of value layers to display.Iterable<String>
agentClassEditedStyleNames()
Deprecated.Iterable<String>
agentClassLayerOrders()
Deprecated.Iterable<String>
agentClassStyleNames()
Deprecated.void
clearProjectionDescriptors()
Deprecated.Removes any added projection descriptors.void
clearProjections()
Deprecated.void
clearValueLayerNames()
Deprecated.Color
getBackgroundColor()
Deprecated.Gets the background color of the display.BoundingBox
getBoundingBox()
Deprecated.Gets the Bounding Box for the display.Class<?>[]
getDefaultNetStyles()
Deprecated.Class<?>[]
getDefaultNetStyles2D()
Deprecated.Class<?>[]
getDefaultNetStyles3D()
Deprecated.Class<?>[]
getDefaultStyles()
Deprecated.Class<?>[]
getDefaultStyles2D()
Deprecated.Class<?>[]
getDefaultStyles3D()
Deprecated.Class<?>[]
getDefaultStylesGIS3D()
Deprecated.String
getDisplayType()
Deprecated.String
getEditedStyleName(String objClassName)
Deprecated.Map<String,String>
getEditedStyles()
Deprecated.Integer
getLayerOrder(String objClassName)
Deprecated.Map<String,Integer>
getLayerOrders()
Deprecated.String
getLayoutClassName()
Deprecated.IDisplay.LayoutFrequency
getLayoutFrqeuency()
Deprecated.int
getLayoutInterval()
Deprecated.String
getLayoutProjection()
Deprecated.Gets the name of the projection associated with the layout.VisualizationProperties
getLayoutProperties()
Deprecated.String
getNetworkEditedStyleName(Object networkID)
Deprecated.String
getNetworkStyleClassName(Object networkID)
Deprecated.int
getProjectionCount()
Deprecated.Gets the number of projections in this display descriptor.ProjectionDescriptor
getProjectionDescriptor(String name)
Deprecated.Gets the ProjectionDescriptor for the named projection.Iterable<ProjectionDescriptor>
getProjectionDescriptors()
Deprecated.Iterable<ProjectionData>
getProjections()
Deprecated.Gets the data for all the projections for which this is the display info.Object
getProperty(String name)
Deprecated.Gets the named property.ScheduleParameters
getScheduleParameters()
Deprecated.Retrieves the parameters for when to activate the display update.String
getStyleClassName(String objClassName)
Deprecated.Map<String,String>
getStyles()
Deprecated.int
getValueLayerCount()
Deprecated.String
getValueLayerEditedStyleName()
Deprecated.Gets the name of the value layer edited style.Iterable<String>
getValueLayerNames()
Deprecated.Gets a List of all the names of the value layers to display.String
getValueLayerStyleName()
Deprecated.Gets the name of the value layer style.DisplayDescriptor
makeCopy()
Deprecated.Returns a deep copy of the descriptor.Iterable<Object>
networkEditedStyleIDs()
Deprecated.Iterable<Object>
networkStyleIDs()
Deprecated.Iterable<String>
propertyNames()
Deprecated.Gets an iterable of names of the properties contained by this descriptor.void
set(DisplayDescriptor descriptor)
Deprecated.void
setBackgroundColor(Color color)
Deprecated.Sets the background color of the display.void
setBoundingBox(BoundingBox boundingBox)
Deprecated.Sets the BoundingBox for the display.void
setDisplayType(String type)
Deprecated.void
setDisplayType(String type, boolean reset)
Deprecated.Sets the display type of this descriptor.void
setLayoutClassName(String className)
Deprecated.void
setLayoutFrequency(IDisplay.LayoutFrequency frequency)
Deprecated.void
setLayoutInterval(int interval)
Deprecated.void
setLayoutProjection(String layoutProjection)
Deprecated.Sets the name of the projection to associate with the layout.void
setLayoutProperties(VisualizationProperties props)
Deprecated.Sets the layout properties for this display.void
setProperty(String name, Object value)
Deprecated.Sets the specified property.void
setScheduleParameters(ScheduleParameters scheduleInfo)
Deprecated.Sets the parameters for when to activate the display update.void
setValueLayerEditedStyleName(String name)
Deprecated.Sets the value layer edited style name.void
setValueLayerStyleName(String name)
Deprecated.Sets the value layer style name.-
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
-
-
-
-
Constructor Detail
-
DefaultDisplayDescriptor
public DefaultDisplayDescriptor(DisplayDescriptor descriptor)
Deprecated.
-
DefaultDisplayDescriptor
public DefaultDisplayDescriptor(String name)
Deprecated.
-
-
Method Detail
-
getProjections
public Iterable<ProjectionData> getProjections()
Deprecated.Gets the data for all the projections for which this is the display info.- Specified by:
getProjections
in interfaceDisplayDescriptor
- Returns:
- the data for all the projections for which this is the display info.
-
getProjectionCount
public int getProjectionCount()
Deprecated.Description copied from interface:DisplayDescriptor
Gets the number of projections in this display descriptor.- Specified by:
getProjectionCount
in interfaceDisplayDescriptor
- Returns:
- the number of projections in this display descriptor.
-
addProjection
public void addProjection(ProjectionData data, ProjectionDescriptor descriptor)
Deprecated.Adds the data for a projection for which this is the display info.- Specified by:
addProjection
in interfaceDisplayDescriptor
- Parameters:
data
-descriptor
-
-
clearProjections
public void clearProjections()
Deprecated.- Specified by:
clearProjections
in interfaceDisplayDescriptor
-
clearValueLayerNames
public void clearValueLayerNames()
Deprecated.
-
getValueLayerCount
public int getValueLayerCount()
Deprecated.
-
getProjectionDescriptor
public ProjectionDescriptor getProjectionDescriptor(String name)
Deprecated.Gets the ProjectionDescriptor for the named projection.- Specified by:
getProjectionDescriptor
in interfaceDisplayDescriptor
- Parameters:
name
- the name of the projection whose descriptor we want- Returns:
- the ProjectionDescriptor for the named projection.
-
clearProjectionDescriptors
public void clearProjectionDescriptors()
Deprecated.Removes any added projection descriptors.- Specified by:
clearProjectionDescriptors
in interfaceDisplayDescriptor
-
getProjectionDescriptors
public Iterable<ProjectionDescriptor> getProjectionDescriptors()
Deprecated.- Specified by:
getProjectionDescriptors
in interfaceDisplayDescriptor
-
set
@Deprecated public void set(DisplayDescriptor descriptor)
Deprecated.- Specified by:
set
in interfaceDisplayDescriptor
-
getDisplayType
public String getDisplayType()
Deprecated.- Specified by:
getDisplayType
in interfaceDisplayDescriptor
-
setDisplayType
public void setDisplayType(String type)
Deprecated.
-
setDisplayType
public void setDisplayType(String type, boolean reset)
Deprecated.Description copied from interface:DisplayDescriptor
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.- Specified by:
setDisplayType
in interfaceDisplayDescriptor
- Parameters:
type
- the display typereset
- if true, then the fields in the descriptor that depend on type info will be reset.
-
addStyle
public void addStyle(String objClassName, String styleClassName)
Deprecated.- Specified by:
addStyle
in interfaceDisplayDescriptor
-
addEditedStyle
public void addEditedStyle(String objClassName, String userStyleName)
Deprecated.- Specified by:
addEditedStyle
in interfaceDisplayDescriptor
-
addNetworkStyle
public void addNetworkStyle(Object networkID, String networkClassName)
Deprecated.- Specified by:
addNetworkStyle
in interfaceDisplayDescriptor
-
addNetworkEditedStyle
public void addNetworkEditedStyle(Object networkID, String networkClassName)
Deprecated.- Specified by:
addNetworkEditedStyle
in interfaceDisplayDescriptor
-
getStyleClassName
public String getStyleClassName(String objClassName)
Deprecated.- Specified by:
getStyleClassName
in interfaceDisplayDescriptor
-
getEditedStyleName
public String getEditedStyleName(String objClassName)
Deprecated.- Specified by:
getEditedStyleName
in interfaceDisplayDescriptor
-
getNetworkStyleClassName
public String getNetworkStyleClassName(Object networkID)
Deprecated.- Specified by:
getNetworkStyleClassName
in interfaceDisplayDescriptor
-
getNetworkEditedStyleName
public String getNetworkEditedStyleName(Object networkID)
Deprecated.- Specified by:
getNetworkEditedStyleName
in interfaceDisplayDescriptor
-
agentClassStyleNames
public Iterable<String> agentClassStyleNames()
Deprecated.- Specified by:
agentClassStyleNames
in interfaceDisplayDescriptor
-
agentClassEditedStyleNames
public Iterable<String> agentClassEditedStyleNames()
Deprecated.- Specified by:
agentClassEditedStyleNames
in interfaceDisplayDescriptor
-
networkStyleIDs
public Iterable<Object> networkStyleIDs()
Deprecated.- Specified by:
networkStyleIDs
in interfaceDisplayDescriptor
-
networkEditedStyleIDs
public Iterable<Object> networkEditedStyleIDs()
Deprecated.- Specified by:
networkEditedStyleIDs
in interfaceDisplayDescriptor
-
getLayoutFrqeuency
public IDisplay.LayoutFrequency getLayoutFrqeuency()
Deprecated.- Specified by:
getLayoutFrqeuency
in interfaceDisplayDescriptor
-
setLayoutFrequency
public void setLayoutFrequency(IDisplay.LayoutFrequency frequency)
Deprecated.- Specified by:
setLayoutFrequency
in interfaceDisplayDescriptor
-
getScheduleParameters
public ScheduleParameters getScheduleParameters()
Deprecated.Description copied from interface:DisplayDescriptor
Retrieves the parameters for when to activate the display update.- Specified by:
getScheduleParameters
in interfaceDisplayDescriptor
- Returns:
- the parameters for when to activate the display update.
-
setScheduleParameters
public void setScheduleParameters(ScheduleParameters scheduleInfo)
Deprecated.Description copied from interface:DisplayDescriptor
Sets the parameters for when to activate the display update.- Specified by:
setScheduleParameters
in interfaceDisplayDescriptor
- Parameters:
scheduleInfo
- when to activate the display update
-
getLayoutClassName
public String getLayoutClassName()
Deprecated.- Specified by:
getLayoutClassName
in interfaceDisplayDescriptor
-
setLayoutClassName
public void setLayoutClassName(String className)
Deprecated.- Specified by:
setLayoutClassName
in interfaceDisplayDescriptor
-
getLayoutProjection
public String getLayoutProjection()
Deprecated.Description copied from interface:DisplayDescriptor
Gets the name of the projection associated with the layout.- Specified by:
getLayoutProjection
in interfaceDisplayDescriptor
- Returns:
- the name of the projection associated with the layout.
-
setLayoutProjection
public void setLayoutProjection(String layoutProjection)
Deprecated.Description copied from interface:DisplayDescriptor
Sets the name of the projection to associate with the layout.- Specified by:
setLayoutProjection
in interfaceDisplayDescriptor
-
setLayoutInterval
public void setLayoutInterval(int interval)
Deprecated.- Specified by:
setLayoutInterval
in interfaceDisplayDescriptor
-
getLayoutInterval
public int getLayoutInterval()
Deprecated.- Specified by:
getLayoutInterval
in interfaceDisplayDescriptor
-
getDefaultStyles3D
public Class<?>[] getDefaultStyles3D()
Deprecated.
-
getDefaultStyles2D
public Class<?>[] getDefaultStyles2D()
Deprecated.
-
getDefaultStylesGIS3D
public Class<?>[] getDefaultStylesGIS3D()
Deprecated.
-
getDefaultNetStyles3D
public Class<?>[] getDefaultNetStyles3D()
Deprecated.
-
getDefaultNetStyles2D
public Class<?>[] getDefaultNetStyles2D()
Deprecated.
-
getLayoutProperties
public VisualizationProperties getLayoutProperties()
Deprecated.- Specified by:
getLayoutProperties
in interfaceDisplayDescriptor
- Returns:
- hints for displaying a grid.
-
setLayoutProperties
public void setLayoutProperties(VisualizationProperties props)
Deprecated.Sets the layout properties for this display.- Specified by:
setLayoutProperties
in interfaceDisplayDescriptor
-
addValueLayerName
public void addValueLayerName(String name)
Deprecated.Adds the named value layer to the list of value layers to display.- Parameters:
name
- the name of the value layer to display.
-
getValueLayerNames
public Iterable<String> getValueLayerNames()
Deprecated.Gets a List of all the names of the value layers to display.- Returns:
- a List of all the names of the value layers to display.
-
setValueLayerStyleName
public void setValueLayerStyleName(String name)
Deprecated.Sets the value layer style name.- Parameters:
name
-
-
getValueLayerStyleName
public String getValueLayerStyleName()
Deprecated.Gets the name of the value layer style. Will return null if no value layer style has been selected.- Returns:
- the name of the value layer style.
-
getBoundingBox
public BoundingBox getBoundingBox()
Deprecated.Gets the Bounding Box for the display. This defines the extents of the display- Specified by:
getBoundingBox
in interfaceDisplayDescriptor
- Returns:
- the BoundingBox
-
setBoundingBox
public void setBoundingBox(BoundingBox boundingBox)
Deprecated.Sets the BoundingBox for the display. This defines the extents of the display.- Specified by:
setBoundingBox
in interfaceDisplayDescriptor
- Parameters:
boundingBox
- The BoundingBox
-
agentClassLayerOrders
public Iterable<String> agentClassLayerOrders()
Deprecated.- Specified by:
agentClassLayerOrders
in interfaceDisplayDescriptor
-
getLayerOrder
public Integer getLayerOrder(String objClassName)
Deprecated.- Specified by:
getLayerOrder
in interfaceDisplayDescriptor
-
addLayerOrder
public void addLayerOrder(String objClassName, int order)
Deprecated.- Specified by:
addLayerOrder
in interfaceDisplayDescriptor
-
getProperty
public Object getProperty(String name)
Deprecated.Gets the named property.- Specified by:
getProperty
in interfaceDisplayDescriptor
- Parameters:
name
- the name of the property- Returns:
- the named property
-
setProperty
public void setProperty(String name, Object value)
Deprecated.Sets the specified property.- Specified by:
setProperty
in interfaceDisplayDescriptor
- Parameters:
name
- the property's namevalue
- the property's value
-
propertyNames
public Iterable<String> propertyNames()
Deprecated.Gets an iterable of names of the properties contained by this descriptor.- Specified by:
propertyNames
in interfaceDisplayDescriptor
- Returns:
- an iterable of names of the properties contained by this descriptor.
-
getStyles
public Map<String,String> getStyles()
Deprecated.- Specified by:
getStyles
in interfaceDisplayDescriptor
-
getValueLayerEditedStyleName
public String getValueLayerEditedStyleName()
Deprecated.Gets the name of the value layer edited style. Will return null if no value layer style has been selected.- Returns:
- the name of the value layer edited style.
-
setValueLayerEditedStyleName
public void setValueLayerEditedStyleName(String name)
Deprecated.Sets the value layer edited style name.- Parameters:
name
-
-
getBackgroundColor
public Color getBackgroundColor()
Deprecated.Description copied from interface:DisplayDescriptor
Gets the background color of the display.- Specified by:
getBackgroundColor
in interfaceDisplayDescriptor
- Returns:
- the background color of the display.
-
setBackgroundColor
public void setBackgroundColor(Color color)
Deprecated.Description copied from interface:DisplayDescriptor
Sets the background color of the display.- Specified by:
setBackgroundColor
in interfaceDisplayDescriptor
- Parameters:
color
- the background color of the display.
-
getLayerOrders
public Map<String,Integer> getLayerOrders()
Deprecated.- Specified by:
getLayerOrders
in interfaceDisplayDescriptor
-
getEditedStyles
public Map<String,String> getEditedStyles()
Deprecated.- Specified by:
getEditedStyles
in interfaceDisplayDescriptor
-
getDefaultStyles
public Class<?>[] getDefaultStyles()
Deprecated.- Specified by:
getDefaultStyles
in interfaceDisplayDescriptor
-
getDefaultNetStyles
public Class<?>[] getDefaultNetStyles()
Deprecated.- Specified by:
getDefaultNetStyles
in interfaceDisplayDescriptor
-
makeCopy
public DisplayDescriptor makeCopy()
Deprecated.Description copied from interface:DisplayDescriptor
Returns a deep copy of the descriptor.- Specified by:
makeCopy
in interfaceDisplayDescriptor
- Returns:
-
-