Class 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 Detail

      • Styler

        public Styler()
        Deprecated.
    • 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 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.