|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bbn.openmap.MapHandlerChild
com.bbn.openmap.OMComponent
com.bbn.openmap.layer.event.CSVEventImporter
public class CSVEventImporter
A data importer for the EventLayer. The location file should contain information about objects that will be moving on the map. The activity file will contain information about where and when the objects moved. Sample properties:
eventLayer.class=com.bbn.openmap.layer.time.EventLayer eventLayer.importer=com.bbn.openmap.layer.time.CSVEventImporter eventLayer.prettyName=Test Event eventLayer.locationFile=org-list.csv eventLayer.locationFileHasHeader=true eventLayer.nameIndex=0 eventLayer.iconIndex=5 eventLayer.activityFile=org-activities.csv eventLayer.activityFileHasHeader=true eventLayer.activityNameIndex=1 eventLayer.latIndex=9 eventLayer.lonIndex=10 eventLayer.timeFormat=d-MMM-yyyy HH:mm eventLayer.timeIndex=7 # If no icon defined, used for location markers edge. eventLayer.lineColor=aaaaaa33 # If no icon defined, used for location markers fill. eventLayer.fillColor=aaaaaa33
Field Summary | |
---|---|
protected java.lang.String |
activityFile
|
static java.lang.String |
ActivityFileProperty
activityFile |
protected boolean |
activityHeader
|
static java.lang.String |
ActivityHeaderProperty
activityFileHasHeader |
protected int |
activityNameIndex
|
static java.lang.String |
ActivityNameIndexProperty
activityNameIndex |
protected java.lang.String |
defaultIconURL
Icon URL for points to use as default. |
static java.lang.String |
DefaultIconURLProperty
defaultURL |
protected DrawingAttributes |
drawingAttributes
|
protected boolean |
eastIsNeg
|
static java.lang.String |
EastIsNegProperty
eastIsNeg |
protected int |
iconIndex
|
static java.lang.String |
IconIndexProperty
iconIndex |
protected int |
latIndex
|
static java.lang.String |
LatIndexProperty
latIndex |
protected java.lang.String |
locationFile
|
static java.lang.String |
LocationFileProperty
locationFile |
protected boolean |
locationHeader
|
static java.lang.String |
LocationHeaderProperty
locationFileHasHeader |
static java.util.logging.Logger |
logger
|
protected int |
lonIndex
|
static java.lang.String |
LonIndexProperty
lonIndex |
protected int |
nameIndex
|
static java.lang.String |
NameIndexProperty
nameIndex |
protected int |
orientation
|
protected boolean |
showNames
|
static java.lang.String |
ShowNamesProperty
showNames |
protected java.text.SimpleDateFormat |
timeFormat
TimeFormat default is similar to IETF standard date syntax: "Sat, 12 Aug 1995 13:30:00 GMT" represented by (EEE, d MMM yyyy HH:mm:ss z), except for the local timezone. |
static java.lang.String |
TimeFormatProperty
timeFormat |
protected int |
timeIndex
|
static java.lang.String |
TimeIndexProperty
timeIndex |
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 | |
---|---|
CSVEventImporter()
|
Method Summary | |
---|---|
TemporalOMGraphicList |
createData(EventLayer callback)
Read the data files and construct the TemporalOMGraphics. |
java.util.Properties |
getProperties(java.util.Properties props)
PropertyConsumer method, to fill in a Properties object, reflecting the current values of the layer. |
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. |
void |
setProperties(java.lang.String prefix,
java.util.Properties properties)
The properties and prefix are managed and decoded here, for the standard uses of the EventLayer. |
Methods inherited from class com.bbn.openmap.OMComponent |
---|
getPropertyPrefix, setProperties, setPropertyPrefix |
Methods inherited from class com.bbn.openmap.MapHandlerChild |
---|
addPropertyChangeListener, addVetoableChangeListener, childrenAdded, childrenRemoved, findAndInit, findAndInit, findAndUndo, firePropertyChange, fireVetoableChange, getBeanContext, isIsolated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, setIsolated |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.util.logging.Logger logger
public static final java.lang.String LocationFileProperty
public static final java.lang.String LocationHeaderProperty
public static final java.lang.String IconIndexProperty
public static final java.lang.String NameIndexProperty
public static final java.lang.String ActivityFileProperty
public static final java.lang.String ActivityNameIndexProperty
public static final java.lang.String ActivityHeaderProperty
public static final java.lang.String LatIndexProperty
public static final java.lang.String LonIndexProperty
public static final java.lang.String TimeIndexProperty
public static final java.lang.String EastIsNegProperty
public static final java.lang.String ShowNamesProperty
public static final java.lang.String DefaultIconURLProperty
public static final java.lang.String TimeFormatProperty
protected java.text.SimpleDateFormat timeFormat
protected java.lang.String locationFile
protected boolean locationHeader
protected int nameIndex
protected int iconIndex
protected java.lang.String activityFile
protected boolean activityHeader
protected int activityNameIndex
protected int latIndex
protected int lonIndex
protected int timeIndex
protected boolean eastIsNeg
protected int orientation
protected java.lang.String defaultIconURL
protected boolean showNames
protected DrawingAttributes drawingAttributes
Constructor Detail |
---|
public CSVEventImporter()
Method Detail |
---|
public TemporalOMGraphicList createData(EventLayer callback)
Read the data files and construct the TemporalOMGraphics. There are four things you need to do in this method.
createData
in interface EventImporter
public void setProperties(java.lang.String prefix, java.util.Properties properties)
setProperties
in interface PropertyConsumer
setProperties
in class OMComponent
prefix
- string prefix used in the properties file for this layer.properties
- the properties set in the properties file.public java.util.Properties getProperties(java.util.Properties props)
getProperties
in interface PropertyConsumer
getProperties
in class OMComponent
props
- a Properties object to load the PropertyConsumer properties into.
public java.util.Properties getPropertyInfo(java.util.Properties list)
getPropertyInfo
in interface PropertyConsumer
getPropertyInfo
in class OMComponent
list
- a Properties object to load the PropertyConsumer properties
into. If getList equals null, then a new Properties object should
be created.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |