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, validate
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, clone, fireIndexedPropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
public 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)
AbstractPainter
doPaint
in class AbstractPainter<JXMapViewer>
g
- The Graphics2D object in which to paintmap
- an optional configuration parameterwidth
- the widthheight
- the heightCopyright © 2013. All Rights Reserved.