Class CustomPainter

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
All Implemented Interfaces:
org.jxmapviewer.painter.Painter<org.jxmapviewer.JXMapViewer>
Direct Known Subclasses:
PositionPainter, StopPainter

public abstract class CustomPainter extends org.jxmapviewer.viewer.WaypointPainter<org.jxmapviewer.viewer.Waypoint>
An abstract class that extends WaypointPainter to provide functionality for rendering waypoints on a map with different icon sizes based on the zoom level. This class manages a collection of icons and updates the displayed icon according to the map's zoom level.
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
    Modifier and Type
    Field
    Description
    protected BufferedImage
     
    protected final HashMap<IconSize,BufferedImage>
     
    protected final org.jxmapviewer.JXMapViewer
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
     
     
     
    abstract void
     

    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