org.geotools.event
Interface GTEvent

All Known Implementing Classes:
GTEventImpl

public interface GTEvent

Captures changes to Style.

The "delta" acts as a series of bread crumbs allowing you the listener to figure out what changed where. The Type answers that other peskey question: when.

You should be warned that deltas may also be "saved up" for a rainy day, this keeps user interfaces from being flooded with a cascade of events. The best example is a "macro" that makes a series of changes and only reports back a compound change resulting from the batch opperation.

Since:
2.2.M2
Author:
Jody Garnett, Refractions Research

Nested Class Summary
static class GTEvent.Type
          Constants used to indicate the type of StyleChangedEvent
 
Method Summary
 GTDelta getDelta()
          Returns a delta, from the root, describing the set of changes that happened.
 java.lang.Object getSource()
          Root construct issuing the event.
 GTEvent.Type getType()
          Returns the type of event being reported.
 

Method Detail

getDelta

public GTDelta getDelta()
Returns a delta, from the root, describing the set of changes that happened.

May be null if not applicable, available to this type of event.

Returns:
the style delta, or null if not applicable

getSource

public java.lang.Object getSource()
Root construct issuing the event.

Handy if you are listening to several things at once.

Returns:
Root construct issuing event

getType

public GTEvent.Type getType()
Returns the type of event being reported.

Returns:
one of the event type constants
See Also:
#POST_CHANGE, #PRE_DELETE


Copyright © GeoTools. All Rights Reserved.