public abstract static class GeographicalMap.LayerCreator extends java.lang.Object implements java.lang.Comparable<GeographicalMap.LayerCreator>
Modifier | Constructor and Description |
---|---|
protected |
LayerCreator(int layerZOrder)
Create a LayerCreator object with the specified Z order value.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(GeographicalMap.LayerCreator o)
Compares this object with the specified object for order.
|
void |
doPostProcForLayer(com.bbn.openmap.MapBean mapBean,
com.bbn.openmap.Layer newlyCreatedLayer)
Does any post-processing needed after the Layer obtained from the
getLayer(com.bbn.openmap.MapBean, GeographicalMap, com.bbn.openmap.MouseDelegator, java.util.prefs.Preferences)
method is added to the MapHandler. |
boolean |
equals(java.lang.Object obj)
Indicates whether some other object is "equal to" this one.
|
abstract com.bbn.openmap.Layer |
getLayer(com.bbn.openmap.MapBean mapBean,
GeographicalMap geoMap,
com.bbn.openmap.MouseDelegator mouseDelegator,
java.util.prefs.Preferences prefs)
Create a layer object using the specified context values.
|
protected LayerCreator(int layerZOrder)
layerZOrder
- int Z order value, arbitrary value with higher numbers added later to the mappublic abstract com.bbn.openmap.Layer getLayer(com.bbn.openmap.MapBean mapBean, GeographicalMap geoMap, com.bbn.openmap.MouseDelegator mouseDelegator, java.util.prefs.Preferences prefs)
mapBean
- MapBean which will contain the generated LayergeoMap
- GeographicalMap object containing the MapBeanmouseDelegator
- MouseDelegator for the MapBeanprefs
- Preferences object for this profile of YAACpublic void doPostProcForLayer(com.bbn.openmap.MapBean mapBean, com.bbn.openmap.Layer newlyCreatedLayer)
getLayer(com.bbn.openmap.MapBean, GeographicalMap, com.bbn.openmap.MouseDelegator, java.util.prefs.Preferences)
method is added to the MapHandler. By default, this does nothing.mapBean
- MapBean newly containing the LayernewlyCreatedLayer
- the newly added Layerpublic final int compareTo(GeographicalMap.LayerCreator o)
compareTo
in interface java.lang.Comparable<GeographicalMap.LayerCreator>
o
- the object to be compared.java.lang.ClassCastException
- if the specified object's type prevents it
from being compared to this object.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if this object is the same as the obj
argument; false
otherwise.