com.bbn.openmap.layer.policy
Class AbstractProjectionChangePolicy
java.lang.Object
com.bbn.openmap.layer.policy.AbstractProjectionChangePolicy
- All Implemented Interfaces:
- ProjectionChangePolicy
- Direct Known Subclasses:
- ListResetPCPolicy, NullProjectionChangePolicy, StandardPCPolicy
public abstract class AbstractProjectionChangePolicy
- extends java.lang.Object
- implements ProjectionChangePolicy
Implements the common functionality of all projection change policies.
- Author:
- dietrick
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
layer
protected OMGraphicHandlerLayer layer
AbstractProjectionChangePolicy
protected AbstractProjectionChangePolicy()
AbstractProjectionChangePolicy
public AbstractProjectionChangePolicy(OMGraphicHandlerLayer omghl)
setLayer
public void setLayer(OMGraphicHandlerLayer omghl)
- Specified by:
setLayer
in interface ProjectionChangePolicy
- Parameters:
omghl
- the OMGraphicHandlerLayer the policy is working for.
getLayer
public OMGraphicHandlerLayer getLayer()
- Specified by:
getLayer
in interface ProjectionChangePolicy
- Returns:
- the OMGraphicHandlerLayer the policy is working for.
workerComplete
public void workerComplete(OMGraphicList aList)
- This is a subtle call, that dictates what should happen when the
LayerWorker has completed working in it's thread. The LayerWorker.get()
method returns whatever was returned in the OMGraphicHandler.prepare()
method, an OMGraphicList. In most cases, this object should be set as the
Layer's list at this time. Some Layers, working asynchronously with their
data sources, might want nothing to happen and should use a policy that
overrides this method so that nothing does.
Modified as of 5.1.2/5.1 to control when layer.repaint() is called. If
the previous OMGraphicList is null, and the current OMGraphicList is also
null, then repaint is not called. This is to cut back on a flashing
effect when layers that aren't doing anything call for repaints before
those that are call for painting.
- Specified by:
workerComplete
in interface ProjectionChangePolicy
- Parameters:
aList
- the current OMGraphicList returned from the prepare() method
via the SwingWorker thread.
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details