public class ButtonMarker extends Marker
Marker.TemplateEntryProperty
Modifier and Type | Field and Description |
---|---|
private java.awt.Rectangle |
buttonRectangle |
LABEL_PATTERN_AUTO, LABEL_PATTERN_DESC, LABEL_PATTERN_NAME, MARKER_FORMATTED_OFFSET, MARKER_OFFSET, markerProducers, offset, parentLayer, symbol, time
Constructor and Description |
---|
ButtonMarker(LatLon ll,
java.lang.String buttonImage,
MarkerLayer parentLayer,
double time,
double offset) |
ButtonMarker(LatLon ll,
TemplateEngineDataProvider dataProvider,
java.lang.String buttonImage,
MarkerLayer parentLayer,
double time,
double offset) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsPoint(java.awt.Point p)
Checks whether the marker display area contains the given point.
|
void |
paint(java.awt.Graphics g,
MapView mv,
boolean mousePressed,
boolean showTextOrIcon)
Paints the marker.
|
actionPerformed, convertToWayPoint, createMarkers, evaluateCondition, getCoor, getEastNorth, getTemplateKeys, getTemplateValue, getText, getTextTemplate, isErroneous, paintIcon, setCoor, setEastNorth, setErroneous
private java.awt.Rectangle buttonRectangle
public ButtonMarker(LatLon ll, java.lang.String buttonImage, MarkerLayer parentLayer, double time, double offset)
public ButtonMarker(LatLon ll, TemplateEngineDataProvider dataProvider, java.lang.String buttonImage, MarkerLayer parentLayer, double time, double offset)
public boolean containsPoint(java.awt.Point p)
Marker
containsPoint
in class Marker
p
- The point to checktrue
if the marker "hotspot" contains the point.