Class Styler

java.lang.Object
repast.simphony.visualization.gis.Styler

public class Styler extends Object
Deprecated.
2D piccolo based code is being removed
Produces styles for agent layers in a gis display.
Author:
Nick Collier, Eric Tatara
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
  • Method Summary

    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Styler

      public Styler()
      Deprecated.
  • Method Details

    • 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 layer
      style - 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 layer
      geomType - 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.