com.bbn.openmap.layer.policy
Class NullProjectionChangePolicy

java.lang.Object
  extended by com.bbn.openmap.layer.policy.NullProjectionChangePolicy
All Implemented Interfaces:
ProjectionChangePolicy

public class NullProjectionChangePolicy
extends java.lang.Object
implements ProjectionChangePolicy

Dummy ProjectionChangePolicy, for those layers who prefer to ignore projection changes completely.


Field Summary
protected  OMGraphicHandlerLayer layer
          The OMGraphicHandlerLayer using this policy.
 
Constructor Summary
NullProjectionChangePolicy()
           
 
Method Summary
 OMGraphicHandlerLayer getLayer()
          Get the OMGraphicHandlerLayer to work with.
 void projectionChanged(ProjectionEvent pe)
          The method that is called when the projection changes.
 void setLayer(OMGraphicHandlerLayer layer)
          Set the OMGraphicHandlerLayer to work with.
 void workerComplete(OMGraphicList aList)
          The method that gets called when the SwingWorker thread finishes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

layer

protected OMGraphicHandlerLayer layer
The OMGraphicHandlerLayer using this policy. Don't let this be null.

Constructor Detail

NullProjectionChangePolicy

public NullProjectionChangePolicy()
Method Detail

getLayer

public OMGraphicHandlerLayer getLayer()
Description copied from interface: ProjectionChangePolicy
Get the OMGraphicHandlerLayer to work with.

Specified by:
getLayer in interface ProjectionChangePolicy

projectionChanged

public void projectionChanged(ProjectionEvent pe)
Description copied from interface: ProjectionChangePolicy
The method that is called when the projection changes. The ProjectionChangePolicy should modify the OMGraphicList and do other functions as dictated by the policy, like starting threads to gather data and generating new OMGraphics for the layer.

Specified by:
projectionChanged in interface ProjectionChangePolicy

setLayer

public void setLayer(OMGraphicHandlerLayer layer)
Description copied from interface: ProjectionChangePolicy
Set the OMGraphicHandlerLayer to work with.

Specified by:
setLayer in interface ProjectionChangePolicy

workerComplete

public void workerComplete(OMGraphicList aList)
Description copied from interface: ProjectionChangePolicy
The method that gets called when the SwingWorker thread finishes. The OMGraphicList is what is getting returned from the prepare() method on the layer, so it's most likely that this list should be set on the layer.

Specified by:
workerComplete in interface ProjectionChangePolicy


Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details