org.geotools.event
Class AbstractGTComponent

java.lang.Object
  extended byorg.geotools.event.AbstractGTComponent
All Implemented Interfaces:
GTComponent
Direct Known Subclasses:
AbstractGTRoot, AnchorPointImpl, ChannelSelectionImpl, ColorMapEntryImpl, ColorMapImpl, ContrastEnhancementImpl, DisplacementImpl, ExtentImpl, ExternalGraphicImpl, FeatureTypeConstraintImpl, FeatureTypeStyleImpl, FillImpl, FontImpl, GraphicImpl, HaloImpl, ImageOutlineImpl, LayerFeatureConstraintsImpl, LinePlacementImpl, LineSymbolizerImpl, MarkImpl, NamedStyleImpl, PointPlacementImpl, PointSymbolizerImpl, PolygonSymbolizerImpl, RasterSymbolizerImpl, RemoteOWSImpl, RuleImpl, SelectedChannelTypeImpl, ShadedReliefImpl, StrokeImpl, StyledLayerImpl, StyleImpl, TextSymbolizerImpl

public abstract class AbstractGTComponent
extends java.lang.Object
implements GTComponent

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

Field Summary
protected  GTNote notification
           
 
Constructor Summary
AbstractGTComponent()
           
 
Method Summary
 void changed(GTDelta childDelta)
          Used to pass on "We changed" notification from children.
protected  java.lang.Object clone()
           
protected  void fireChanged()
          Simple notification that we changed.
protected  void fireChildChanged(java.lang.String name, java.lang.Object child, java.lang.Object oldValue)
          Create a child delta and send it off.
 GTNote getNote()
           
 GTComponent getParent()
          Used to locate our parent.
 void removed(GTDelta childDelta)
          Used to pass on "something is about to change" notification from children.
 void setNote(GTNote container)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

notification

protected GTNote notification
Constructor Detail

AbstractGTComponent

public AbstractGTComponent()
Method Detail

clone

protected java.lang.Object clone()
                          throws java.lang.CloneNotSupportedException
Throws:
java.lang.CloneNotSupportedException

removed

public void removed(GTDelta childDelta)
Used to pass on "something is about to change" notification from children.

Specified by:
removed in interface GTComponent
Parameters:
childDelta - object containing change information

changed

public void changed(GTDelta childDelta)
Used to pass on "We changed" notification from children.

Specified by:
changed in interface GTComponent
Parameters:
childDelta - object containing change information

fireChanged

protected void fireChanged()
Simple notification that we changed.

Change will be passed on to parent.changed( delta ).


fireChildChanged

protected void fireChildChanged(java.lang.String name,
                                java.lang.Object child,
                                java.lang.Object oldValue)
Create a child delta and send it off.

Use this for changes to simple types like int and Color.

Parameters:
child -
oldValue - DOCUMENT ME!

getParent

public GTComponent getParent()
Description copied from interface: GTComponent
Used to locate our parent.

This method will return a "NULLObject", called GTRoot.NO_PARENT when no parent is present, client code should never have to be concerned this method return null.

Specified by:
getParent in interface GTComponent
Returns:
Parent GTComponent or GTRoot.NO_PARENT if none

getNote

public GTNote getNote()
Specified by:
getNote in interface GTComponent

setNote

public void setNote(GTNote container)
Specified by:
setNote in interface GTComponent


Copyright © GeoTools. All Rights Reserved.