Last change
on this file since 627 was 627, checked in by framm, 16 years ago |
|
-
Property svn:eol-style
set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // License: GPL. Copyright 2007 by Immanuel Scholz and others
|
---|
2 | package org.openstreetmap.josm.gui.layer.markerlayer;
|
---|
3 |
|
---|
4 | import java.io.File;
|
---|
5 |
|
---|
6 | import org.openstreetmap.josm.data.gpx.WayPoint;
|
---|
7 |
|
---|
8 | /**
|
---|
9 | * This interface has to be implemented by anyone who wants to create markers.
|
---|
10 | *
|
---|
11 | * When reading a gpx file, all implementations of MarkerMaker registered with
|
---|
12 | * the Marker are consecutively called until one returns a Marker object.
|
---|
13 | *
|
---|
14 | * @author Frederik Ramm <frederik@remote.org>
|
---|
15 | */
|
---|
16 | public interface MarkerProducers {
|
---|
17 | /**
|
---|
18 | * Returns a Marker object if this implementation wants to create one for the
|
---|
19 | * given input data, or <code>null</code> otherwise.
|
---|
20 | *
|
---|
21 | * @param ll lat/lon for the marker position
|
---|
22 | * @param data A map of all tags found in the <wpt> node of the gpx file.
|
---|
23 | * @param relativePath An path to use for constructing relative URLs or
|
---|
24 | * <code>null</code> for no relative URLs
|
---|
25 | * @return A Marker object, or <code>null</code>.
|
---|
26 | */
|
---|
27 | public Marker createMarker(WayPoint wp, File relativePath, MarkerLayer parentLayer, double time, double offset);
|
---|
28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.