|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.layer.vpf.LibraryBean
public class LibraryBean
A bean to be used for sharing LibrarySelectionTable objects between instances of VPFLayer.
# 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.
Field Summary | |
---|---|
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). |
Fields inherited from interface com.bbn.openmap.PropertyConsumer |
---|
EditorProperty, initPropertiesProperty, LabelEditorProperty, ScopedEditorProperty |
Constructor Summary | |
---|---|
LibraryBean()
Construct an empty bean. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public LibraryBean()
Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |