|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.MapHandlerChild com.bbn.openmap.OMComponent com.bbn.openmap.layer.policy.StandardRenderPolicy
public class StandardRenderPolicy
The StandardRenderPolicy is a RenderPolicy that simply paints the current graphic list. No conditions or deviations are considered.
Field Summary | |
---|---|
protected java.awt.Composite |
composite
|
protected OMGraphicHandlerLayer |
layer
Don't let this be null, nothing will happen. |
static java.util.logging.Logger |
logger
|
Fields inherited from class com.bbn.openmap.OMComponent |
---|
i18n, propertyPrefix |
Fields inherited from class com.bbn.openmap.MapHandlerChild |
---|
beanContextChildSupport, isolated |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
StandardRenderPolicy()
|
|
StandardRenderPolicy(OMGraphicHandlerLayer layer)
Don't pass in a null layer. |
Method Summary | |
---|---|
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(Projection newProj)
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. |
Methods inherited from class com.bbn.openmap.OMComponent |
---|
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix |
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 |
Field Detail |
---|
public static java.util.logging.Logger logger
protected OMGraphicHandlerLayer layer
protected java.awt.Composite composite
Constructor Detail |
---|
public StandardRenderPolicy()
public StandardRenderPolicy(OMGraphicHandlerLayer layer)
Method Detail |
---|
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(Projection newProj)
prePrepare
in interface RenderPolicy
newProj
- the new projection received in a projectionChanged
method for the layer.public OMGraphicList prepare()
RenderPolicy
prepare
in interface RenderPolicy
public void paint(java.awt.Graphics g)
paint
in interface RenderPolicy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |