public class LibraryBean extends java.lang.Object implements PropertyConsumer, java.io.Serializable
# Assuming that you have a VPF Layer specifying a .libraryBean property # with a value of "VMAPData", you need to specify the following properties: # Required - the java class information VMAPData.class=com.bbn.openmap.layer.vpf.LibraryBean # as in the layer .vpfPath, a ';' separated list of paths to VPF data VMAPData.vpfPath=e:/VMAPLV0 # the name of the library bean, used by the VPFLayers to identify # this bean as the one they want to use. VMAPData.name=VMAPLEVEL0 # Maximum number of tiles to cache. VMAPData.cacheSize=25The VMAPData maker name, or whatever other name you decide to name it, has to be added to the openmap.components property list so the LibraryBean will be created and added to the MapHandler. Of course, you could add the LibraryBean to the MapHandler programmatically if you wanted to.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
cacheSizeProperty
Maximum size of tile cache (cacheSize).
|
protected VPFFeatureCache |
featureCache
The VPFFeatureCache to use for cached features.
|
static java.lang.String |
nameProperty
used for explicitly naming a library bean (name).
|
static java.lang.String |
pathProperty
property extension used to set the VPF root directory (vpfPath).
|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty
Constructor and Description |
---|
LibraryBean()
Construct an empty bean.
|
Modifier and Type | Method and Description |
---|---|
LibrarySelectionTable |
getLibrarySelectionTable()
Returns the LST for the path of this object.
|
java.lang.String |
getName()
Gets the name of the component - if the name was explicitly set, then
return that, otherwise return the property prefix.
|
java.util.Properties |
getProperties(java.util.Properties getList)
Not a good PropertyConsumer yet, doesn't return values.
|
java.util.Properties |
getPropertyInfo(java.util.Properties list)
Method to fill in a Properties object with values reflecting
the properties able to be set on this PropertyConsumer.
|
java.lang.String |
getPropertyPrefix()
Get the property key prefix that is being used to prepend to the property
keys for Properties lookups.
|
VPFCachedFeatureGraphicWarehouse |
getWarehouse()
Creates a new VPFFeatureWarehouse every time, with the shared
featureCache.
|
void |
setProperties(java.util.Properties setList)
Method to set the properties in the PropertyConsumer.
|
void |
setProperties(java.lang.String prefix,
java.util.Properties setList)
Method to set the properties in the PropertyConsumer.
|
void |
setPropertyPrefix(java.lang.String prefix)
Set the property key prefix that should be used by the PropertyConsumer.
|
public static final java.lang.String nameProperty
public static final java.lang.String pathProperty
public static final java.lang.String cacheSizeProperty
protected transient VPFFeatureCache featureCache
public void setProperties(java.util.Properties setList)
PropertyConsumer
setProperties
in interface PropertyConsumer
setList
- a properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public void setProperties(java.lang.String prefix, java.util.Properties setList)
PropertyConsumer
setProperties
in interface PropertyConsumer
prefix
- a String used by the PropertyConsumer to prepend
to each property value it wants to look up -
setList.getProperty(prefix.propertyKey). If the prefix
had already been set, then the prefix passed in should
replace that previous value.setList
- a Properties object that the PropertyConsumer
can use to retrieve expected properties it can use for
configuration.public java.lang.String getName()
public java.util.Properties getProperties(java.util.Properties getList)
getProperties
in interface PropertyConsumer
getList
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public java.util.Properties getPropertyInfo(java.util.Properties list)
PropertyConsumer
getPropertyInfo
in interface PropertyConsumer
list
- a Properties object to load the PropertyConsumer
properties into. If getList equals null, then a new
Properties object should be created.public void setPropertyPrefix(java.lang.String prefix)
setPropertyPrefix
in interface PropertyConsumer
prefix
- the prefix String.public java.lang.String getPropertyPrefix()
getPropertyPrefix
in interface PropertyConsumer
public LibrarySelectionTable getLibrarySelectionTable()
public VPFCachedFeatureGraphicWarehouse getWarehouse()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details