|
||||||||||
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.StandardMapBeanRepaintPolicy
public class StandardMapBeanRepaintPolicy
A MapBeanRepaintPolicy that just forwards layer repaint requests normally, and does nothing for java.awt.Graphics before painting. If this class or any subclass of it is added to the MapHandler, it will find the MapBean and set itself on it.
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.
Field Summary | |
---|---|
protected boolean |
DEBUG
|
protected MapBean |
map
|
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 | |
---|---|
StandardMapBeanRepaintPolicy()
|
|
StandardMapBeanRepaintPolicy(MapBean mb)
|
Method Summary | |
---|---|
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. |
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, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MapBean map
protected boolean DEBUG
Constructor Detail |
---|
public StandardMapBeanRepaintPolicy()
public StandardMapBeanRepaintPolicy(MapBean mb)
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |