org.geotools.styling
Interface StyleDelta


public interface StyleDelta

Indicates which style constructs have been changed.

Acts as a series of breadcrumbs stored up by a StyleEvent to communicate changes.

This delta is constructed a fashion following the outline of the style document, allowing you to skip over entire branches of changes if you are not interested.

Author:
Jody Garnett

Nested Class Summary
static class StyleDelta.Kind
          Kind of Delta, used to indicate change.
 
Field Summary
static java.util.List NO_CHILDREN
          List indicating no children are present
 
Method Summary
 void accept(StyleDeltaVisitor visitor)
          Accepts the given visitor.
 java.lang.Object getAffected()
          Affected style construct, getChildern may indicate specific details of the change.
 java.util.List getChildren()
          Finds and returns deltas for specificly changed constructs.
 StyleDelta.Kind getKind()
          Returns the kind of this delta.
 

Field Detail

NO_CHILDREN

public static final java.util.List NO_CHILDREN
List indicating no children are present

Method Detail

getKind

public StyleDelta.Kind getKind()
Returns the kind of this delta.

Normally, one of ADDED, REMOVED or CHANGED.

Returns:
the kind of this resource delta
See Also:
Kind.ADDED, Kind.REMOVED, Kind.CHANGED

getAffected

public java.lang.Object getAffected()
Affected style construct, getChildern may indicate specific details of the change.

Examples of style constructs (in order of abstraction):

This event system will stop at the Rule level, even though changes may occur at individual Filter Exppressions.

Returns:
Style construct

getChildren

public java.util.List getChildren()
Finds and returns deltas for specificly changed constructs.

This code may be considered more accessable then the use of StyleDeltaVisitor.

Returns:
List of StyleDelta

accept

public void accept(StyleDeltaVisitor visitor)
Accepts the given visitor.

Parameters:
visitor -
Throws:
CoreException


Copyright © GeoTools. All Rights Reserved.