Package org.openstreetmap.josm.gui.layer
Class AbstractTileSourceLayer.OffsetMenuBookmarkEntry
- java.lang.Object
-
- org.openstreetmap.josm.gui.layer.AbstractTileSourceLayer.OffsetMenuBookmarkEntry
-
- All Implemented Interfaces:
ImageryLayer.OffsetMenuEntry
- Enclosing class:
- AbstractTileSourceLayer<T extends org.openstreetmap.gui.jmapviewer.tilesources.AbstractTMSTileSource>
private class AbstractTileSourceLayer.OffsetMenuBookmarkEntry extends java.lang.Object implements ImageryLayer.OffsetMenuEntry
An entry for a bookmark in the offset menu.
-
-
Field Summary
Fields Modifier and Type Field Description private OffsetBookmark
bookmark
-
Constructor Summary
Constructors Constructor Description OffsetMenuBookmarkEntry(OffsetBookmark bookmark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed()
Load this bookmarkjava.lang.String
getLabel()
Get the label to use for this menu itemboolean
isActive()
Test whether this bookmark is currently active
-
-
-
Field Detail
-
bookmark
private final OffsetBookmark bookmark
-
-
Constructor Detail
-
OffsetMenuBookmarkEntry
OffsetMenuBookmarkEntry(OffsetBookmark bookmark)
-
-
Method Detail
-
getLabel
public java.lang.String getLabel()
Description copied from interface:ImageryLayer.OffsetMenuEntry
Get the label to use for this menu item- Specified by:
getLabel
in interfaceImageryLayer.OffsetMenuEntry
- Returns:
- The label to display in the menu.
-
isActive
public boolean isActive()
Description copied from interface:ImageryLayer.OffsetMenuEntry
Test whether this bookmark is currently active- Specified by:
isActive
in interfaceImageryLayer.OffsetMenuEntry
- Returns:
true
if it is active
-
actionPerformed
public void actionPerformed()
Description copied from interface:ImageryLayer.OffsetMenuEntry
Load this bookmark- Specified by:
actionPerformed
in interfaceImageryLayer.OffsetMenuEntry
-
-