Class StopPainter

java.lang.Object
org.jxmapviewer.beans.AbstractBean
org.jxmapviewer.painter.AbstractPainter<org.jxmapviewer.JXMapViewer>
org.jxmapviewer.viewer.WaypointPainter<org.jxmapviewer.viewer.Waypoint>
com.nnamo.view.painter.CustomPainter
com.nnamo.view.painter.StopPainter
All Implemented Interfaces:
org.jxmapviewer.painter.Painter<org.jxmapviewer.JXMapViewer>

public class StopPainter extends CustomPainter
A specialized WaypointPainter for rendering stop waypoints on a map. This class manages different icon sizes and updates the displayed icon based on the map's zoom level. It also highlights a specific stop if its ID is provided during repainting by using a larger icon.
Author:
Samuele Lombardi
See Also:
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.jxmapviewer.painter.AbstractPainter

    org.jxmapviewer.painter.AbstractPainter.Interpolation
  • Field Summary

    Fields inherited from class com.nnamo.view.painter.CustomPainter

    currentIcon, icons, map
  • Constructor Summary

    Constructors
    Constructor
    Description
    StopPainter(org.jxmapviewer.JXMapViewer map)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    void
    repaint(String stopId)
     

    Methods inherited from class com.nnamo.view.painter.CustomPainter

    getCurrentIcon, getIcon, getIcons

    Methods inherited from class org.jxmapviewer.viewer.WaypointPainter

    doPaint, getWaypoints, setRenderer, setWaypoints

    Methods inherited from class org.jxmapviewer.painter.AbstractPainter

    clearCache, configureGraphics, getFilters, getInterpolation, isAntialiasing, isCacheable, isDirty, isVisible, paint, setAntialiasing, setCacheable, setDirty, setFilters, setInterpolation, setVisible, shouldUseCache, validate

    Methods inherited from class org.jxmapviewer.beans.AbstractBean

    addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details