Class SelectionDecorator

  • All Implemented Interfaces:
    EventListener, org.geotools.map.MapLayerListListener

    public class SelectionDecorator
    extends Object
    implements org.geotools.map.MapLayerListListener
    Deprecated.
    2D piccolo based code is being removed
    Decorates selected features with a highlight. This is done by adding a rule to the style for selection.
    Author:
    Nick Collier
    • Constructor Detail

      • SelectionDecorator

        public SelectionDecorator​(org.geotools.map.MapContent context)
        Deprecated.
    • Method Detail

      • initClass

        public void initClass​(Class objClass)
        Deprecated.
        Sets up the artificial selected attribute for the specified object type.
        Parameters:
        objClass - the class of the object
      • addSelected

        public void addSelected​(Object obj)
        Deprecated.
        Adds the specified object to the set of selected objects.
        Parameters:
        obj - the object to add
      • clearSelected

        public void clearSelected()
        Deprecated.
        Clears the set of selected objects.
      • removeHighlightRules

        public void removeHighlightRules()
        Deprecated.
        Removes the highlight rules from the styles.
      • addHighightRules

        public void addHighightRules()
        Deprecated.
      • layerAdded

        public void layerAdded​(org.geotools.map.MapLayerListEvent event)
        Deprecated.
        Specified by:
        layerAdded in interface org.geotools.map.MapLayerListListener
      • layerChanged

        public void layerChanged​(org.geotools.map.MapLayerListEvent event)
        Deprecated.
        Specified by:
        layerChanged in interface org.geotools.map.MapLayerListListener
      • layerMoved

        public void layerMoved​(org.geotools.map.MapLayerListEvent event)
        Deprecated.
        Specified by:
        layerMoved in interface org.geotools.map.MapLayerListListener
      • layerRemoved

        public void layerRemoved​(org.geotools.map.MapLayerListEvent event)
        Deprecated.
        Specified by:
        layerRemoved in interface org.geotools.map.MapLayerListListener
      • layerPreDispose

        public void layerPreDispose​(org.geotools.map.MapLayerListEvent arg0)
        Deprecated.
        Specified by:
        layerPreDispose in interface org.geotools.map.MapLayerListListener