Class ButtonMarker
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.markerlayer.Marker
-
- org.openstreetmap.josm.gui.layer.markerlayer.ButtonMarker
-
- All Implemented Interfaces:
ILatLon
,IQuadBucketType
,Destroyable
,TemplateEngineDataProvider
- Direct Known Subclasses:
AudioMarker
,ImageMarker
,WebMarker
public class ButtonMarker extends Marker
Marker class with button look-and-feel.
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.Rectangle
buttonRectangle
-
Fields inherited from class org.openstreetmap.josm.gui.layer.markerlayer.Marker
LABEL_PATTERN_AUTO, LABEL_PATTERN_DESC, LABEL_PATTERN_NAME, MARKER_FORMATTED_OFFSET, MARKER_OFFSET, offset, parentLayer, symbol, time
-
Fields inherited from interface org.openstreetmap.josm.data.coor.ILatLon
MAX_SERVER_PRECISION
-
-
Constructor Summary
Constructors Constructor 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
containsPoint(java.awt.Point p)
Checks whether the marker display area contains the given point.void
paint(java.awt.Graphics2D g, MapView mv, boolean mousePressed, boolean showTextOrIcon)
Paints the marker.-
Methods inherited from class org.openstreetmap.josm.gui.layer.markerlayer.Marker
actionPerformed, appendMarkerProducer, convertToWayPoint, createMarkers, destroy, evaluateCondition, getBBox, getCoor, getTemplateKeys, getTemplateValue, getText, getTextTemplateKey, isErroneous, lat, lon, paintIcon, prependMarkerProducer, setCoor, setEastNorth, setErroneous, updateText
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openstreetmap.josm.data.coor.ILatLon
bearing, distanceSq, distanceSq, equalsEpsilon, equalsEpsilon, getEastNorth, greatCircleDistance, interpolate, isLatLonKnown
-
-
-
-
Field Detail
-
buttonRectangle
private final java.awt.Rectangle buttonRectangle
-
-
Constructor Detail
-
ButtonMarker
public ButtonMarker(LatLon ll, java.lang.String buttonImage, MarkerLayer parentLayer, double time, double offset)
-
ButtonMarker
public ButtonMarker(LatLon ll, TemplateEngineDataProvider dataProvider, java.lang.String buttonImage, MarkerLayer parentLayer, double time, double offset)
-
-
Method Detail
-
containsPoint
public boolean containsPoint(java.awt.Point p)
Description copied from class:Marker
Checks whether the marker display area contains the given point. Markers not interested in mouse clicks may always return false.- Overrides:
containsPoint
in classMarker
- Parameters:
p
- The point to check- Returns:
true
if the marker "hotspot" contains the point.
-
-