com.sun.j2ee.blueprints.ui.mapviewer
Class MapMarker

java.lang.Object
  extended by com.sun.j2ee.blueprints.ui.mapviewer.MapPoint
      extended by com.sun.j2ee.blueprints.ui.mapviewer.MapMarker
All Implemented Interfaces:
java.io.Serializable

public class MapMarker
extends MapPoint

MapMarker is a MapPoint that also contains an optional markup property containing the HTML markup to be displayed for this point.

See Also:
Serialized Form

Constructor Summary
MapMarker()
          Construct an unconfigured MapMarker instance.
MapMarker(double latitude, double longitude, java.lang.String markup)
          Construct a configured MapMarker instance.
MapMarker(MapPoint point)
          Construct a MapMarker configured from the specified point.
MapMarker(MapPoint point, java.lang.String markup)
          Construct a MapMarker configured from the specified point and HTML markup.
 
Method Summary
 java.lang.String getMarkup()
          Return the optional HTML markup associated with this marker.
 void setMarkup(java.lang.String markup)
          Set the optional HTML markup associated with this marker.
 
Methods inherited from class com.sun.j2ee.blueprints.ui.mapviewer.MapPoint
getLatitude, getLongitude, setLatitude, setLongitude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapMarker

public MapMarker()

Construct an unconfigured MapMarker instance.


MapMarker

public MapMarker(MapPoint point)

Construct a MapMarker configured from the specified point.

Parameters:
point - MapPoint from which to configure this marker

MapMarker

public MapMarker(MapPoint point,
                 java.lang.String markup)

Construct a MapMarker configured from the specified point and HTML markup.

Parameters:
point - MapPoint from which to configure this marker
markup - Optional HTML markup describing the point referenced by this marker

MapMarker

public MapMarker(double latitude,
                 double longitude,
                 java.lang.String markup)

Construct a configured MapMarker instance.

Parameters:
latitude - Latitude of the point referenced by this marker
longitude - Longitude of the point referenced by this marker
markup - Optional HTML markup describing the point referenced by this marker
Method Detail

getMarkup

public java.lang.String getMarkup()

Return the optional HTML markup associated with this marker.


setMarkup

public void setMarkup(java.lang.String markup)

Set the optional HTML markup associated with this marker.

Parameters:
markup - The optional HTML markup, or null if there is no such markup