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 OffsetBookmarkbookmark
-
Constructor Summary
Constructors Constructor Description OffsetMenuBookmarkEntry(OffsetBookmark bookmark)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed()Load this bookmarkjava.lang.StringgetLabel()Get the label to use for this menu itembooleanisActive()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.OffsetMenuEntryGet the label to use for this menu item- Specified by:
getLabelin interfaceImageryLayer.OffsetMenuEntry- Returns:
- The label to display in the menu.
-
isActive
public boolean isActive()
Description copied from interface:ImageryLayer.OffsetMenuEntryTest whether this bookmark is currently active- Specified by:
isActivein interfaceImageryLayer.OffsetMenuEntry- Returns:
trueif it is active
-
actionPerformed
public void actionPerformed()
Description copied from interface:ImageryLayer.OffsetMenuEntryLoad this bookmark- Specified by:
actionPerformedin interfaceImageryLayer.OffsetMenuEntry
-
-