org.geotools.styling
Interface StyleDeltaVisitor


public interface StyleDeltaVisitor

Allows for processing of StyleDeltas.

Example Usage:

  class Visitor implements StyleDeltaVisitor {
      public boolean visit(StyleDelta delta) {
          switch (delta.getKind()) {
          case StyleDelta.Kind.ADDED :
              // handle added handled
              break;
          case StyleDelta.Kind.REMOVED :
              // handle removed handled
              break;
          case StyleDelta.Kind.CHANGED :
              // handle changed handled
              break;
          }
          return true; // visit children
      }
  }
  StyleDelta delta = styleEvent.getDelta();
  delta.accept(new Visitor());
 

Author:
Jody Garnett

Method Summary
 boolean visit(StyleDelta delta)
          Visits the given delta.
 

Method Detail

visit

public boolean visit(StyleDelta delta)
Visits the given delta.

Returns:
true if the delta's children should be visited; false if they should be skipped.


Copyright © GeoTools. All Rights Reserved.