Class MemberTable.ZoomToGapAction
java.lang.Object
javax.swing.AbstractAction
org.openstreetmap.josm.gui.dialogs.relation.MemberTable.ZoomToGapAction
- All Implemented Interfaces:
ActionListener,Serializable,Cloneable,EventListener,Action,ListSelectionListener,LayerManager.LayerChangeListener,MainLayerManager.ActiveLayerChangeListener
- Enclosing class:
- MemberTable
private class MemberTable.ZoomToGapAction
extends AbstractAction
implements LayerManager.LayerChangeListener, MainLayerManager.ActiveLayerChangeListener, ListSelectionListener
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidCalled whenever the active or edit layer changed.private WayConnectionTypeprivate booleanhasGap()voidNotifies this listener that a layer has been added.voidNotifies this listener that the order of layers was changed.voidNotifies this listener that a layer was just removed.private voidvoidMethods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
Field Details
-
connectionTypesOfInterest
-
-
Constructor Details
-
ZoomToGapAction
Constructs a newZoomToGapAction.
-
-
Method Details
-
getConnectionType
-
hasGap
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
updateEnabledState
-
valueChanged
- Specified by:
valueChangedin interfaceListSelectionListener
-
activeOrEditLayerChanged
Description copied from interface:MainLayerManager.ActiveLayerChangeListenerCalled whenever the active or edit layer changed.You can be sure that this layer is still contained in this set.
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
- Specified by:
activeOrEditLayerChangedin interfaceMainLayerManager.ActiveLayerChangeListener- Parameters:
e- The change event.
-
layerAdded
Description copied from interface:LayerManager.LayerChangeListenerNotifies this listener that a layer has been added.Listeners are called in the EDT thread. You should not do blocking or long-running tasks in this method.
- Specified by:
layerAddedin interfaceLayerManager.LayerChangeListener- Parameters:
e- The new added layer event
-
layerRemoving
Description copied from interface:LayerManager.LayerChangeListenerNotifies this listener that a layer was just removed.Listeners are called in the EDT thread after the layer was removed. Use
LayerManager.LayerRemoveEvent.scheduleRemoval(Collection)to remove more layers. You should not do blocking or long-running tasks in this method.- Specified by:
layerRemovingin interfaceLayerManager.LayerChangeListener- Parameters:
e- The layer to be removed (as event)
-
layerOrderChanged
Description copied from interface:LayerManager.LayerChangeListenerNotifies this listener that the order of layers was changed.Listeners are called in the EDT thread. You should not do blocking or long-running tasks in this method.
- Specified by:
layerOrderChangedin interfaceLayerManager.LayerChangeListener- Parameters:
e- The order change event.
-