com.bbn.openmap.layer.policy
Class FullProjectionRenderPolicy
java.lang.Object
com.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.layer.policy.StandardRenderPolicy
com.bbn.openmap.layer.policy.FullProjectionRenderPolicy
- All Implemented Interfaces:
- RenderPolicy, LightMapHandlerChild, PropertyConsumer, java.beans.beancontext.BeanContextChild, java.beans.beancontext.BeanContextMembershipListener, java.util.EventListener
public class FullProjectionRenderPolicy
- extends StandardRenderPolicy
The FullProjectionRenderPolicy is a StandardRenderPolicy that sets
the clip of the java.awt.Graphics passed into the paint method with
the clipping area of the projection. You'll need to use this render
policy if you want to paint into a buffer that is bigger than the
layer size (and MapBean size), because Java sets the max clipping
size to the size of the component.
This class seems useless, because it looks like the
StandardRenderPolicy does the same thing automatically.
Method Summary |
void |
paint(java.awt.Graphics g)
Assumes that the OMGraphicList to be rendered is set on the
OMGraphicHandlerLayer, available via setList(). |
Methods inherited from class com.bbn.openmap.MapHandlerChild |
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FullProjectionRenderPolicy
public FullProjectionRenderPolicy()
FullProjectionRenderPolicy
public FullProjectionRenderPolicy(OMGraphicHandlerLayer layer)
- Don't pass in a null layer.
paint
public void paint(java.awt.Graphics g)
- Description copied from class:
StandardRenderPolicy
- Assumes that the OMGraphicList to be rendered is set on the
OMGraphicHandlerLayer, available via setList().
- Specified by:
paint
in interface RenderPolicy
- Overrides:
paint
in class StandardRenderPolicy
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details