nl.idgis.giserver
Class MapTipManager

java.lang.Object
  extended by nl.idgis.giserver.MapTipManager

public class MapTipManager
extends java.lang.Object

This class is collects map tips and able to translate them in a SWF action list bytestream code. The map tips will be extracted from feature by mapTip property naam. Duplications will be ignored.
The container content may be flushed to an outputmedium at any time. The signature of the output will be SWF action list record.

Author:
bretelerjj

Constructor Summary
MapTipManager(org.deegree.datatypes.QualifiedName mapTipProperty)
          constructor map Tip management class
 
Method Summary
 void add(org.deegree.model.feature.Feature feature)
          add for a feature the concerned property value as a map Tip
 void add(org.deegree.model.feature.Feature feature, java.lang.String mapTipMnemonic)
          Add for a feature its map Tip.
 void out(java.io.ByteArrayOutputStream content)
          All the map Tips for this map will be written to the output medium
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapTipManager

public MapTipManager(org.deegree.datatypes.QualifiedName mapTipProperty)
constructor map Tip management class

Parameters:
mapTipProperty - the property identification for this tool tip category
Method Detail

add

public void add(org.deegree.model.feature.Feature feature)
add for a feature the concerned property value as a map Tip

Parameters:
feature - the concerning feature

add

public void add(org.deegree.model.feature.Feature feature,
                java.lang.String mapTipMnemonic)
Add for a feature its map Tip. The final map tip will construct as a string defined by the mapTipProperty from given feature append with the given mapTipMnemonic. This string is the property for the SWF action list. The list will be construct using hashing with no duplication. No duplicates are allowed in this list, so the info for this list is stored using hashing with the map tip string as hash key.

An exception will be raised if the feature doesn't contains a map tip property. Duplication will be ignored without exception raising or reports.

Parameters:
feature - the concerning fature
mapTipMnemonic - the name used as prefix for tip in property setting actionlist for SWF doaction facility.

out

public void out(java.io.ByteArrayOutputStream content)
         throws java.io.IOException
All the map Tips for this map will be written to the output medium

Throws:
java.io.IOException