org.geotools.event
Class GTConstant

java.lang.Object
  extended byorg.geotools.event.GTConstant
All Implemented Interfaces:
GTComponent

public class GTConstant
extends java.lang.Object
implements GTComponent

Indicates a constant immutable data object, may be shared (and will not issue change notifications).

Author:
Jody Garnett, Refractions Research, Inc.

Field Summary
static GTRoot SHARED
           
 
Constructor Summary
GTConstant()
           
 
Method Summary
 void changed(GTDelta delta)
          A child has been changed (maybe added), issued after change.
 java.lang.Object clone()
           
 GTNote getNote()
           
 GTComponent getParent()
          Used to locate our parent.
 void removed(GTDelta delta)
          A child has been removed, issued before change.
 void setNote(GTNote container)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHARED

public static final GTRoot SHARED
Constructor Detail

GTConstant

public GTConstant()
Method Detail

clone

public java.lang.Object clone()

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

removed

public void removed(GTDelta delta)
Description copied from interface: GTComponent
A child has been removed, issued before change.

This method is for use by children only it is implementor API and should not be called by client code.

Q:Why does it exist then?
So you can implement your own Symbolizer, and still allow the GeoTools Stroke implementation to pass change notification onto you.

Q:GeoAPI does not support this? No they don't, their interface are set up to match specification for interoptability between toolkit implementations. By the time you pass a GeoAPI object around it should stop wiggling and just be viewed as stable data. But yes we should ask them about this...

Specified by:
removed in interface GTComponent

changed

public void changed(GTDelta delta)
Description copied from interface: GTComponent
A child has been changed (maybe added), issued after change.

This method is for use by children only it is implementor API and should not be called by client code.

Q:Why does it exist then?
So you can implement your own Symbolizer, and still allow the GeoTools Stroke implementation to pass change notification onto you.

Q:GeoAPI does not support this? No they don't, their interface are set up to match specification for interoptability between toolkit implementations. By the time you pass a GeoAPI object around it should stop wiggling and just be viewed as stable data. But yes we should ask them about this...

Specified by:
changed in interface GTComponent

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.