W - the waypoint typepublic class WaypointPainter<W extends Waypoint> extends AbstractPainter<JXMapViewer>
AbstractPainter.Interpolation| Constructor and Description |
|---|
WaypointPainter()
Creates a new instance of WaypointPainter
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doPaint(Graphics2D g,
JXMapViewer map,
int width,
int height)
Subclasses must implement this method and perform custom painting operations
here.
|
Set<W> |
getWaypoints()
Gets the current set of waypoints to paint
|
void |
setRenderer(WaypointRenderer<W> r)
Sets the waypoint renderer to use when painting waypoints
|
void |
setWaypoints(Set<? extends W> waypoints)
Sets the current set of waypoints to paint
|
clearCache, configureGraphics, getFilters, getInterpolation, isAntialiasing, isCacheable, isDirty, isVisible, paint, setAntialiasing, setCacheable, setDirty, setFilters, setInterpolation, setVisible, shouldUseCache, validateaddPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListenerpublic WaypointPainter()
public void setRenderer(WaypointRenderer<W> r)
r - the new WaypointRenderer to usepublic Set<W> getWaypoints()
public void setWaypoints(Set<? extends W> waypoints)
waypoints - the new Set of Waypoints to useprotected void doPaint(Graphics2D g, JXMapViewer map, int width, int height)
AbstractPainterdoPaint in class AbstractPainter<JXMapViewer>g - The Graphics2D object in which to paintmap - an optional configuration parameterwidth - the widthheight - the heightCopyright © 2014. All Rights Reserved.