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 Details

  • Constructor Details

  • Method Details

    • containsPoint

      public boolean containsPoint(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 class Marker
      Parameters:
      p - The point to check
      Returns:
      true if the marker "hotspot" contains the point.
    • paint

      public void paint(Graphics2D g, MapView mv, boolean mousePressed, boolean showTextOrIcon)
      Description copied from class: Marker
      Paints the marker.
      Overrides:
      paint in class Marker
      Parameters:
      g - graphics context
      mv - map view
      mousePressed - true if the left mouse button is pressed
      showTextOrIcon - true if text and icon shall be drawn