public class StandardMapBeanRepaintPolicy extends OMComponent implements MapBeanRepaintPolicy, SoloMapComponent, java.lang.Cloneable
A StandardMapBeanRepaintPolicy is automatically set in the MapBean, so you don't have to add one of these to the MapHandler. The OMComponent inheritance is here to make it easier for subclasses to be added and for properties to be set.
Modifier and Type | Field and Description |
---|---|
protected boolean |
DEBUG |
protected MapBean |
map |
i18n, propertyPrefix
beanContextChildSupport, isolated
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
StandardMapBeanRepaintPolicy() |
StandardMapBeanRepaintPolicy(MapBean mb) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Provide a configured copy (except for the MapBean).
|
void |
findAndInit(java.lang.Object someObj)
If a MapBean is passed to this StandardMapBeanRepaintPolicy, it will set
itself on it.
|
void |
findAndUndo(java.lang.Object someObj)
If a MapBean is passed to this StandardMapBeanRepaintPolicy, it will
check if it is the repaint policy set on the MapBean and if so, remove
itself from it.
|
MapBean |
getMap() |
java.awt.Graphics |
modifyGraphicsForPainting(java.awt.Graphics graphics)
A hook for the RepaintPolicy to make any adjustments to the
java.awt.Graphics object before sending the Graphics object to the layers
for painting.
|
void |
repaint(Layer layer)
Take some action based on a repaint request from this particular layer.
|
void |
setMap(MapBean mb)
Set the MapBean to call repaint on when a layer requests it.
|
getProperties, getPropertyInfo, getPropertyPrefix, setProperties, setProperties, setPropertyPrefix
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated
protected MapBean map
protected boolean DEBUG
public StandardMapBeanRepaintPolicy()
public StandardMapBeanRepaintPolicy(MapBean mb)
public void setMap(MapBean mb)
MapBeanRepaintPolicy
setMap
in interface MapBeanRepaintPolicy
public MapBean getMap()
public void repaint(Layer layer)
repaint
in interface MapBeanRepaintPolicy
public java.awt.Graphics modifyGraphicsForPainting(java.awt.Graphics graphics)
modifyGraphicsForPainting
in interface MapBeanRepaintPolicy
public void findAndInit(java.lang.Object someObj)
findAndInit
in interface LightMapHandlerChild
findAndInit
in class MapHandlerChild
public void findAndUndo(java.lang.Object someObj)
findAndUndo
in interface LightMapHandlerChild
findAndUndo
in class MapHandlerChild
public java.lang.Object clone()
MapBeanRepaintPolicy
clone
in interface MapBeanRepaintPolicy
clone
in class java.lang.Object
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details