Class MarkerLayer.ShowHideMarkerText
- java.lang.Object
-
- javax.swing.AbstractAction
-
- org.openstreetmap.josm.gui.layer.markerlayer.MarkerLayer.ShowHideMarkerText
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action,Layer.LayerAction
- Enclosing class:
- MarkerLayer
public static final class MarkerLayer.ShowHideMarkerText extends javax.swing.AbstractAction implements Layer.LayerAction
Toggle visibility of the marker text and icons- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private MarkerLayerlayer
-
Constructor Summary
Constructors Constructor Description ShowHideMarkerText(MarkerLayer layer)Create a newMarkerLayer.ShowHideMarkerTextaction
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)java.awt.ComponentcreateMenuComponent()Creates and return the menu component.booleansupportLayers(java.util.List<Layer> layers)Determines if this action supports a given list of layers.-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Field Detail
-
layer
private final transient MarkerLayer layer
-
-
Constructor Detail
-
ShowHideMarkerText
public ShowHideMarkerText(MarkerLayer layer)
Create a newMarkerLayer.ShowHideMarkerTextaction- Parameters:
layer- The layer to toggle the visible state of the marker text and icons
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Specified by:
actionPerformedin interfacejava.awt.event.ActionListener
-
createMenuComponent
public java.awt.Component createMenuComponent()
Description copied from interface:Layer.LayerActionCreates and return the menu component.- Specified by:
createMenuComponentin interfaceLayer.LayerAction- Returns:
- the menu component
-
supportLayers
public boolean supportLayers(java.util.List<Layer> layers)
Description copied from interface:Layer.LayerActionDetermines if this action supports a given list of layers.- Specified by:
supportLayersin interfaceLayer.LayerAction- Parameters:
layers- list of layers- Returns:
trueif this action supports the given list of layers,falseotherwise
-
-