Package com.nnamo.view.painter
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
FieldsModifier and TypeFieldDescriptionprotected BufferedImage
protected final HashMap
<IconSize, BufferedImage> protected final org.jxmapviewer.JXMapViewer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HashMap
<IconSize, BufferedImage> getIcons()
abstract void
repaint()
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
-
Field Details
-
map
protected final org.jxmapviewer.JXMapViewer map -
icons
-
currentIcon
-
-
Constructor Details
-
CustomPainter
- Throws:
IOException
-
-
Method Details
-
getIcon
-
getCurrentIcon
-
getIcons
-
repaint
public abstract void repaint()
-