org.geotools.event
Interface GTDeltaVisitor


public interface GTDeltaVisitor

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(GTDelta delta)
          Visits the given delta.
 

Method Detail

visit

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

Parameters:
delta - DOCUMENT ME!
Returns:
true if the delta's children should be visited; false if they should be skipped.


Copyright © GeoTools. All Rights Reserved.