Class ButtonMarker

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

        public void paint​(java.awt.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