| |
|
| java.lang.Object org.geotools.event.AbstractGTComponent org.geotools.event.AbstractGTRoot
All known Subclasses: org.geotools.styling.StyledLayerDescriptorImpl,
AbstractGTRoot | abstract public class AbstractGTRoot extends AbstractGTComponent implements GTRoot(Code) | | Provides basic StyleEvent notification, may be used in conjuction with
StyleList during event handling.
This class has package scope to prevent user code mistaking it for something
important. It is only used to assist in the construction of this one
implementation of StyleEvents. Basically this is NOT API :-)
since: 2.2.M3 |
addListener | public synchronized void addListener(GTListener listener)(Code) | | Listens to changes in the Style content.
Changes are provided:
-
Before: deletion
-
After: modification
Since the Style data structure can be vast and complicated a trail of
breadcrumbs (a delta) is provided to help find your way to the change.
Parameters: listener - |
changed | public void changed(GTDelta childDelta)(Code) | | Used to pass on "We changed" notification from children.
Parameters: childDelta - object containing change information |
fire | protected synchronized void fire(GTEvent event)(Code) | | Provides notification of daring do (and undo) in style space.
Parameters: event - Event describing notification |
fire | protected synchronized void fire(GTDelta delta)(Code) | | Issue a change event w/ POST_CHANGE
Parameters: delta - Used to quickly fire off a child delta |
fireChanged | protected void fireChanged()(Code) | | Simple notification that we changed.
Change will be passed on to parent.changed( delta ).
|
fireChildChanged | final protected void fireChildChanged(String childName, Object child, Object oldValue)(Code) | | Create a child delta and send it off.
Use this for changes to simple types like int and Color.
Parameters: childName - used to the child (often bean propertyName or map key) Parameters: child - Parameters: oldValue - DOCUMENT ME! |
hasListeners | protected boolean hasListeners()(Code) | | |
removeListener | public synchronized void removeListener(GTListener listener)(Code) | | Remove a style listener
Parameters: listener - Listen to notifications |
removed | public void removed(GTDelta childDelta)(Code) | | Used to pass on "something is about to change" notification from
children.
Parameters: childDelta - object containing change information |
|
|
|