public class MarkerLayer extends Layer implements JumpToMarkerActions.JumpToMarkerLayer
Modifier and Type | Class and Description |
---|---|
private class |
MarkerLayer.MoveAudio |
static class |
MarkerLayer.ShowHideMarkerText |
private class |
MarkerLayer.SynchronizeAudio |
Layer.LayerAction, Layer.LayerGpxExportAction, Layer.LayerSaveAction, Layer.LayerSaveAsAction, Layer.MultiLayerAction, Layer.SeparatorLayerAction
Modifier and Type | Field and Description |
---|---|
private Marker |
currentMarker |
List<Marker> |
data
A list of markers.
|
GpxLayer |
fromLayer |
private boolean |
mousePressed |
ICON_SIZE, NAME_PROP, OPACITY_PROP, propertyChangeSupport, VISIBLE_PROP
Constructor and Description |
---|
MarkerLayer(GpxData indata,
String name,
File associatedFile,
GpxLayer fromLayer) |
Modifier and Type | Method and Description |
---|---|
AudioMarker |
addAudioMarker(double time,
LatLon coor) |
private static Marker |
getAdjacentMarker(Marker startMarker,
boolean next,
Layer layer) |
Color |
getColor(boolean ignoreCustom)
Return a Color for this layer.
|
static Color |
getGenericColor() |
Icon |
getIcon()
Return a static icon.
|
Object |
getInfoComponent() |
Action[] |
getMenuEntries()
Returns list of actions.
|
String |
getToolTipText() |
void |
hookUpMapView()
Initialization code, that depends on Main.map.mapView.
|
boolean |
isMergable(Layer other) |
private boolean |
isTextOrIconShown()
Get state of text display.
|
void |
jumpToNextMarker() |
void |
jumpToPreviousMarker() |
void |
mergeFrom(Layer from)
Merges the given layer into this layer.
|
void |
paint(Graphics2D g,
MapView mv,
Bounds box)
Paint the dataset using the engine set.
|
private static void |
playAdjacentMarker(Marker startMarker,
boolean next) |
static void |
playAudio() |
static void |
playNextMarker() |
static void |
playPreviousMarker() |
boolean |
synchronizeAudioMarkers(AudioMarker startMarker) |
void |
visitBoundingBox(BoundingXYVisitor v) |
addPropertyChangeListener, checkSaveConditions, createAndOpenSaveFileChooser, destroy, fireOpacityChanged, fireVisibleChanged, getAssociatedFile, getName, getOpacity, isBackgroundLayer, isChanged, isProjectionSupported, isSavable, isVisible, nameSupportedProjections, onPostLoadFromFile, projectionChanged, removePropertyChangeListener, setAssociatedFile, setBackgroundLayer, setName, setOpacity, setVisible, toggleVisible
private boolean mousePressed
private Marker currentMarker
public MarkerLayer(GpxData indata, String name, File associatedFile, GpxLayer fromLayer)
public void hookUpMapView()
Layer
hookUpMapView
in class Layer
public Color getColor(boolean ignoreCustom)
Layer
public static Color getGenericColor()
public void paint(Graphics2D g, MapView mv, Bounds box)
Layer
paint
in interface MapViewPaintable
paint
in class Layer
mv
- The object that can translate GeoPoints to screen coordinates.public String getToolTipText()
getToolTipText
in class Layer
public void mergeFrom(Layer from)
Layer
public boolean isMergable(Layer other)
isMergable
in class Layer
other
- The other layer that is tested to be mergable with this.public void visitBoundingBox(BoundingXYVisitor v)
visitBoundingBox
in class Layer
public Object getInfoComponent()
getInfoComponent
in class Layer
public Action[] getMenuEntries()
Layer
getMenuEntries
in class Layer
public boolean synchronizeAudioMarkers(AudioMarker startMarker)
public AudioMarker addAudioMarker(double time, LatLon coor)
public void jumpToNextMarker()
jumpToNextMarker
in interface JumpToMarkerActions.JumpToMarkerLayer
public void jumpToPreviousMarker()
jumpToPreviousMarker
in interface JumpToMarkerActions.JumpToMarkerLayer
public static void playAudio()
public static void playNextMarker()
public static void playPreviousMarker()
private static Marker getAdjacentMarker(Marker startMarker, boolean next, Layer layer)
private static void playAdjacentMarker(Marker startMarker, boolean next)
private boolean isTextOrIconShown()
true
if text should be shown, false
otherwise.