Class Styler
- java.lang.Object
-
- repast.simphony.visualization.gis.Styler
-
public class Styler extends Object
Deprecated.2D piccolo based code is being removedProduces styles for agent layers in a gis display.- Author:
- Nick Collier, Eric Tatara
-
-
Constructor Summary
Constructors Constructor Description Styler()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.geotools.styling.Style
getStyle(String layerName)
Deprecated.Gets a style for the specified layerName.org.geotools.styling.Style
getStyle(String layerName, Class<? extends org.locationtech.jts.geom.Geometry> geomType)
Deprecated.Gets a style for the specified layerName.void
registerStyle(String layerName, org.geotools.styling.Style style)
Deprecated.Registers a style for the specified layerName.
-
-
-
Method Detail
-
registerStyle
public void registerStyle(String layerName, org.geotools.styling.Style style)
Deprecated.Registers a style for the specified layerName.- Parameters:
layerName
- the name of the layerstyle
- the style
-
getStyle
public org.geotools.styling.Style getStyle(String layerName, Class<? extends org.locationtech.jts.geom.Geometry> geomType)
Deprecated.Gets a style for the specified layerName. If no style has been registered then a default one will be returned.- Parameters:
layerName
- the name of the layergeomType
- the agents geometry type- Returns:
- a style for the agent
-
getStyle
public org.geotools.styling.Style getStyle(String layerName)
Deprecated.Gets a style for the specified layerName. If no style has been registered then return null.- Parameters:
layerName
- the name of the layer- Returns:
- a style for the agent or null if no style has been registered.
-
-