|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.war.tools.MapProviderAdapter
public abstract class MapProviderAdapter
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
MapProviderAdapter(java.lang.String name,
java.lang.String key)
Constructor |
|
MapProviderAdapter(java.lang.String name,
java.lang.String key,
long featureMask)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
_getIconLegendHtml(java.lang.String legendXml,
RequestProperties reqState,
boolean outputHtml)
|
void |
addSupportedFeature(long feature)
Adds the specified feature to the list of supported map features |
java.lang.String |
getAuthorization()
Gets this MapProvider's authorization key |
long |
getAutoUpdateCount(boolean isFleet)
Gets the auto-update count for this MapProvider |
boolean |
getAutoUpdateEnabled(boolean isFleet)
Gets the auto-update enabled state for this MapProvider |
long |
getAutoUpdateInterval(boolean isFleet)
Gets the auto-update interval for this MapProvider |
boolean |
getAutoUpdateOnLoad(boolean isFleet)
Gets the auto-update 'OnLoad' state for this MapProvider |
java.lang.String[] |
getCorridorInstructions(java.util.Locale loc)
Returns the localized GeoCorridor instructions |
GeoPoint |
getDefaultCenter(GeoPoint dft)
Gets the default center GeoPoint (when no other points are displayed) |
double |
getDefaultZoom(double dft,
boolean withPushpins)
Gets the default zoom/scale level for this MapProvider |
int |
getDefaultZoom(int dft,
boolean withPushpins)
Gets the default zoom/scale level for this MapProvider |
MapDimension |
getDimension()
Gets this MapProvider's frame dimension |
java.lang.String[] |
getGeozoneInstructions(int type,
java.util.Locale loc)
Returns instructions for manipulating a Geozone |
int |
getGeozoneSupportedPointCount(int type)
Returns the number of supported points for the specified Geozone type |
int |
getHeight()
Gets the MapProvider's frame height |
static java.lang.String |
GetIconLegendHtml(java.lang.String refName,
java.util.Locale locale,
OrderedMap<java.lang.String,PushpinIcon> pushpinMap,
java.lang.String legendType,
org.w3c.dom.Element legendElem,
boolean outputHtml)
|
java.lang.String |
getIconSelector(boolean isFleet)
Gets this MapProvider's icon selector |
java.lang.String |
getIconSelector(RequestProperties reqState)
Gets this MapProvider's icon selector |
java.lang.String |
getIconSelectorLegend(boolean isFleet)
Gets this MapProvider's icon selector legend html |
java.lang.String |
getIconSelectorLegend(RequestProperties reqState)
Gets this MapProvider's icon selector legend html |
protected java.lang.String |
getMapCellStyle(RequestProperties reqState,
MapDimension mapDim)
Returns the style attributes for the displayed map cell |
abstract java.lang.String |
getMapID()
Returns the 'id' of the html tag block contain the map image |
long |
getMaxPushpins(RequestProperties reqState)
Returns the maximum number of allowed pushpins on the map |
java.lang.String |
getName()
Gets this MapProvider's name |
RTProperties |
getProperties()
Gets this MapProvider's properties |
OrderedMap<java.lang.String,PushpinIcon> |
getPushpinIconMap(RequestProperties reqState)
Returns the PushpinIcon map |
boolean |
getReplayEnabled()
Gets the replay enabled state for this MapProvider |
long |
getReplayInterval()
Gets the replay interval for this MapProvider (in milliseconds) |
boolean |
getReplaySinglePushpin()
Returns true if only a single pushpin is to be displayed at a time during replay |
int |
getWidth()
Gets the MapProvider's frame width |
MapDimension |
getZoneDimension()
Gets this MapProvider's frame dimension for the Geozone map |
int |
getZoneHeight()
Gets the MapProvider's frame height |
int |
getZoneWidth()
Gets the MapProvider's frame width |
static java.lang.String |
ID_ZONE_LATITUDE(int ndx)
|
static java.lang.String |
ID_ZONE_LONGITUDE(int ndx)
|
boolean |
isFeatureSupported(long feature)
Returns true if the specified map feature is supported |
void |
postInit()
Called after initialization of this MapProvider. |
void |
setIconSelector(boolean isFleet,
java.lang.String iconSel)
Sets this MapProvider's icon selector |
void |
setIconSelectorLegend(boolean isFleet,
java.lang.String legend)
Sets this MapProvider's icon selector legend html |
void |
setProperties(java.lang.String props)
Sets this MapProvider's properties |
void |
setProperty(java.lang.String key,
java.lang.String val)
Adds a property key/value to this MapProvider |
void |
setSupportedFeatures(long featureMask)
Sets the supported map features |
java.lang.String |
toString()
Returns a String representation of this instance |
boolean |
validate()
Performs simple validation checks on the authorization key, etc, and returns true is the validation was successful. |
abstract void |
writeJavaScript(java.io.PrintWriter out,
RequestProperties state)
Writes any required JavaScript to the html stream |
void |
writeMapCell(java.io.PrintWriter out,
RequestProperties reqState,
MapDimension mapDim)
Writes the map table view to the http output stream |
protected void |
writeMapUpdate_precheck(RequestProperties reqState)
Allows the subclass MapProvider to adjust the session state prior to displaying the map |
void |
writeMapUpdate(int mapDataFormat,
RequestProperties reqState)
Writes the events in XML/JSON format to the http output stream. |
void |
writeMapUpdate(java.io.PrintWriter out,
int indentLevel,
int mapDataFormat,
boolean isTopLevelTag,
RequestProperties reqState)
Writes the events in XML/JSON format to the http output stream. |
void |
writeStyle(java.io.PrintWriter out,
RequestProperties reqState)
Writes any required CSS to the specified PrintWriter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MapProviderAdapter(java.lang.String name,
java.lang.String key)
name - This MapProvider namekey - This MapProvider key
public MapProviderAdapter(java.lang.String name,
java.lang.String key,
long featureMask)
name - This MapProvider namekey - This MapProvider key| Method Detail |
|---|
public static java.lang.String ID_ZONE_LATITUDE(int ndx)
public static java.lang.String ID_ZONE_LONGITUDE(int ndx)
public void postInit()
public void setSupportedFeatures(long featureMask)
featureMask - The mask containing the supported featurespublic void addSupportedFeature(long feature)
feature - The feature to add to the supported featurespublic boolean isFeatureSupported(long feature)
isFeatureSupported in interface MapProviderfeature - The feature tested for support
public boolean validate()
public java.lang.String getName()
getName in interface MapProviderpublic java.lang.String getAuthorization()
getAuthorization in interface MapProviderpublic java.lang.String toString()
toString in class java.lang.Objectpublic void setProperties(java.lang.String props)
setProperties in interface MapProviderprops - The map provider properties
public void setProperty(java.lang.String key,
java.lang.String val)
key - The property keyval - The property valuepublic RTProperties getProperties()
getProperties in interface MapProvider
public void setIconSelector(boolean isFleet,
java.lang.String iconSel)
isFleet - True if the specified icon selector is for the fleet mapsiconSel - The icon selectorpublic java.lang.String getIconSelector(boolean isFleet)
isFleet - True if the specified icon selector is for the fleet maps
public java.lang.String getIconSelector(RequestProperties reqState)
getIconSelector in interface MapProviderreqState - The RequestProperties for the current session
public java.lang.String _getIconLegendHtml(java.lang.String legendXml,
RequestProperties reqState,
boolean outputHtml)
public static java.lang.String GetIconLegendHtml(java.lang.String refName,
java.util.Locale locale,
OrderedMap<java.lang.String,PushpinIcon> pushpinMap,
java.lang.String legendType,
org.w3c.dom.Element legendElem,
boolean outputHtml)
public void setIconSelectorLegend(boolean isFleet,
java.lang.String legend)
isFleet - True if the specified legend is for the fleet mapslegend - The legend HTMLpublic java.lang.String getIconSelectorLegend(boolean isFleet)
public java.lang.String getIconSelectorLegend(RequestProperties reqState)
getIconSelectorLegend in interface MapProviderreqState - The RequestProperties for the current session
public MapDimension getZoneDimension()
getZoneDimension in interface MapProviderpublic int getZoneWidth()
getZoneWidth in interface MapProviderpublic int getZoneHeight()
getZoneHeight in interface MapProviderpublic MapDimension getDimension()
getDimension in interface MapProviderpublic int getWidth()
getWidth in interface MapProviderpublic int getHeight()
getHeight in interface MapProviderpublic long getMaxPushpins(RequestProperties reqState)
getMaxPushpins in interface MapProviderreqState - The current session RequestProperties instance
public GeoPoint getDefaultCenter(GeoPoint dft)
getDefaultCenter in interface MapProviderdft - The default GeoPoint returned if this MapProvider does not explicitly define a point
public double getDefaultZoom(double dft,
boolean withPushpins)
getDefaultZoom in interface MapProviderdft - The default zoom/scale returned if this MapProvider does not explicitly define a valuewithPushpins - True to return the default zoom when pushpins are displayed
public int getDefaultZoom(int dft,
boolean withPushpins)
dft - The default zoom/scale returned if this MapProvider does not explicitly define a valuewithPushpins - True to return the default zoom when pushpins are displayed
public boolean getAutoUpdateEnabled(boolean isFleet)
getAutoUpdateEnabled in interface MapProviderisFleet - True for fleet map
public boolean getAutoUpdateOnLoad(boolean isFleet)
getAutoUpdateOnLoad in interface MapProviderisFleet - True for fleet map
public long getAutoUpdateInterval(boolean isFleet)
getAutoUpdateInterval in interface MapProviderisFleet - True for fleet map
public long getAutoUpdateCount(boolean isFleet)
getAutoUpdateCount in interface MapProviderisFleet - True for fleet map
public boolean getReplayEnabled()
getReplayEnabled in interface MapProviderpublic long getReplayInterval()
getReplayInterval in interface MapProviderpublic boolean getReplaySinglePushpin()
getReplaySinglePushpin in interface MapProviderpublic abstract java.lang.String getMapID()
public void writeStyle(java.io.PrintWriter out,
RequestProperties reqState)
throws java.io.IOException
writeStyle in interface MapProviderout - The PrintWriterreqState - The session RequestProperties
java.io.IOException
public abstract void writeJavaScript(java.io.PrintWriter out,
RequestProperties state)
throws java.io.IOException
writeJavaScript in interface MapProviderout - The handle to the html output streamstate - The current session state
java.io.IOException
protected java.lang.String getMapCellStyle(RequestProperties reqState,
MapDimension mapDim)
reqState - The current session statemapDim - The specified map dimension
public void writeMapCell(java.io.PrintWriter out,
RequestProperties reqState,
MapDimension mapDim)
throws java.io.IOException
writeMapCell in interface MapProviderout - The http output streamreqState - The current session statemapDim - The specified map dimensions
java.io.IOExceptionprotected void writeMapUpdate_precheck(RequestProperties reqState)
reqState - The current session state
public void writeMapUpdate(int mapDataFormat,
RequestProperties reqState)
throws java.io.IOException
writeMapUpdate in interface MapProviderreqState - The current session state containing the EventData selection criteria
java.io.IOException
public void writeMapUpdate(java.io.PrintWriter out,
int indentLevel,
int mapDataFormat,
boolean isTopLevelTag,
RequestProperties reqState)
throws java.io.IOException
writeMapUpdate in interface MapProviderout - The output streamindentLevel - The indent levelmapDataFormat - The map data formatisTopLevelTag - True if top-level tagreqState - The current session state containing the EventData selection criteria
java.io.IOExceptionpublic OrderedMap<java.lang.String,PushpinIcon> getPushpinIconMap(RequestProperties reqState)
getPushpinIconMap in interface MapProviderreqState - The RequestProperties state from the current session
public int getGeozoneSupportedPointCount(int type)
getGeozoneSupportedPointCount in interface MapProvidertype - The Geozone type
public java.lang.String[] getGeozoneInstructions(int type,
java.util.Locale loc)
getGeozoneInstructions in interface MapProviderloc - The current Localetype - The Geozone type
public java.lang.String[] getCorridorInstructions(java.util.Locale loc)
getCorridorInstructions in interface MapProviderloc - The current Locale
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||