public class StandardRenderPolicy extends OMComponent implements RenderPolicy
Modifier and Type | Field and Description |
---|---|
protected java.awt.Composite |
composite |
protected OMGraphicHandlerLayer |
layer
Don't let this be null, nothing will happen.
|
static java.util.logging.Logger |
logger |
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
StandardRenderPolicy() |
StandardRenderPolicy(OMGraphicHandlerLayer layer)
Don't pass in a null layer.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Composite |
getComposite() |
OMGraphicHandlerLayer |
getLayer()
A method to get the parent layer on the RenderPolicy.
|
void |
paint(java.awt.Graphics g)
Assumes that the OMGraphicList to be rendered is set on the
OMGraphicHandlerLayer, available via setList().
|
OMGraphicList |
prepare()
Called when an OMGraphicHandlerLayer should begin preparing OMGraphics for
the map.
|
void |
prePrepare()
The StandardRenderPolicy doesn't need to do anything before prepare()
returns.
|
void |
setComposite(java.awt.Composite composite)
Can be used to set Composite objects (like AlphaComposite) on Graphics2D
objects before the layer is painted.
|
protected void |
setCompositeOnGraphics(java.awt.Graphics2D g)
Call made by the policy from the paint(g) method in order to set the
composite on the Graphics2D object.
|
void |
setLayer(OMGraphicHandlerLayer l)
A method to set the parent layer on the RenderPolicy.
|
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
public static java.util.logging.Logger logger
protected OMGraphicHandlerLayer layer
protected java.awt.Composite composite
public StandardRenderPolicy()
public StandardRenderPolicy(OMGraphicHandlerLayer layer)
public void setLayer(OMGraphicHandlerLayer l)
RenderPolicy
setLayer
in interface RenderPolicy
public OMGraphicHandlerLayer getLayer()
RenderPolicy
getLayer
in interface RenderPolicy
public java.awt.Composite getComposite()
getComposite
in interface RenderPolicy
public void setComposite(java.awt.Composite composite)
setComposite
in interface RenderPolicy
composite
- protected void setCompositeOnGraphics(java.awt.Graphics2D g)
g
- Graphics2D that the Composite will be set on.public void prePrepare()
prePrepare
in interface RenderPolicy
public OMGraphicList prepare()
RenderPolicy
prepare
in interface RenderPolicy
public void paint(java.awt.Graphics g)
paint
in interface RenderPolicy
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details