|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectus.zuercher.gpx2map.plotter.AbstractPlotter
us.zuercher.gpx2map.plotter.AbstractTextPlotter
us.zuercher.gpx2map.plotter.WayPointPlotter
us.zuercher.gpx2map.plotter.TrackPlotter
public class TrackPlotter
TrackPlotter extends WayPointPlotter to plot lines between track-
and route-points.
| Field Summary | |
|---|---|
private static int |
INITIAL_LINE_Z_ORDERING
Initial Z-ordering for track and route lines. |
private static int |
INITIAL_TRKPT_Z_ORDERING
Initial Z-ordering for track- and route-points. |
| Fields inherited from class us.zuercher.gpx2map.plotter.AbstractTextPlotter |
|---|
DEFAULT_FONT_NAME, DEFAULT_FONT_SIZE |
| Constructor Summary | |
|---|---|
TrackPlotter(File netpbmFile,
MapSource mapSource)
Constructs a new TrackPlotter for the given Netpbm file generated by the given MapSource. |
|
| Method Summary | |
|---|---|
void |
add(Route route,
Color color,
MarkerStyle style,
int styleRadius,
boolean drawLines,
boolean drawLabel)
Adds a Route to the plotter. |
void |
add(Track track,
Color color,
MarkerStyle style,
int styleRadius,
boolean drawLines,
boolean drawLabel)
Adds a Track to the plotter. |
void |
add(TrackSegment trackSegment,
Color color,
MarkerStyle style,
int styleRadius,
boolean drawLines)
Adds a TrackSegment to the plotter. |
private double |
computeMinLineLength(MarkerStyle style,
int styleRadius)
Computes the minimum line length to draw between two markers of a given style. |
| Methods inherited from class us.zuercher.gpx2map.plotter.WayPointPlotter |
|---|
add, add, computeDistance |
| Methods inherited from class us.zuercher.gpx2map.plotter.AbstractTextPlotter |
|---|
drawLabel, execute, setFontName, setFontSize |
| Methods inherited from class us.zuercher.gpx2map.plotter.AbstractPlotter |
|---|
addLine, addShape, getCroppingRectangle, mapLocationToPixel, setCropping |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static final int INITIAL_TRKPT_Z_ORDERING
private static final int INITIAL_LINE_Z_ORDERING
| Constructor Detail |
|---|
public TrackPlotter(File netpbmFile,
MapSource mapSource)
MapSource.
netpbmFile - the Netpbm file to plot onmapSource - the MapSource that generated the Netpbm file.| Method Detail |
|---|
public void add(Track track,
Color color,
MarkerStyle style,
int styleRadius,
boolean drawLines,
boolean drawLabel)
Track to the plotter. All
track segments are automatically joined together
by joining the last track-point in a segment with the first track-point
of the following segment.
track - the track to addcolor - the color to draw track lines and markersstyle - the style to use for drawing track markersstyleRadius - the size of the track markers, if applicabledrawLines - if true, draws lines between the track-pointsdrawLabel - if true, labels the first track-point in the Track
with the track's name
public void add(TrackSegment trackSegment,
Color color,
MarkerStyle style,
int styleRadius,
boolean drawLines)
TrackSegment to the plotter.
trackSegment - the track segment to addcolor - the color to draw track lines and markersstyle - the style to use for drawing track markersstyleRadius - the size of the track markers, if applicabledrawLines - if true, draws lines between the track-points
public void add(Route route,
Color color,
MarkerStyle style,
int styleRadius,
boolean drawLines,
boolean drawLabel)
Route to the plotter.
route - the route to addcolor - the color to draw route lines and markersstyle - the style to use for drawing route markersstyleRadius - the size of the route markers, if applicabledrawLines - if true, draws lines between the route-pointsdrawLabel - if true, labels the first route-point in the Route
with the route's name
private double computeMinLineLength(MarkerStyle style,
int styleRadius)
style - the marker style to compute a minimum line length forstyleRadius - the style size, if applicable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||