private class MemberTable.ZoomToGapAction extends AbstractAction implements MapView.LayerChangeListener, ListSelectionListener
| Modifier and Type | Field and Description |
|---|---|
private Collection<WayConnectionType.Direction> |
connectionTypesOfInterest |
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
ZoomToGapAction() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
void |
activeLayerChange(Layer oldLayer,
Layer newLayer)
Notifies this listener that the active layer has changed.
|
private WayConnectionType |
getConnectionType() |
private boolean |
hasGap() |
void |
layerAdded(Layer newLayer)
Notifies this listener that a layer has been added.
|
void |
layerRemoved(Layer oldLayer)
Notifies this listener that a layer has been removed.
|
private void |
updateEnabledState() |
void |
valueChanged(ListSelectionEvent e) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledprivate final Collection<WayConnectionType.Direction> connectionTypesOfInterest
public ZoomToGapAction()
private WayConnectionType getConnectionType()
private boolean hasGap()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerprivate void updateEnabledState()
public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerpublic void activeLayerChange(Layer oldLayer, Layer newLayer)
MapView.LayerChangeListeneractiveLayerChange in interface MapView.LayerChangeListeneroldLayer - The previous active layernewLayer - The new activer layerpublic void layerAdded(Layer newLayer)
MapView.LayerChangeListenerlayerAdded in interface MapView.LayerChangeListenernewLayer - The new added layerpublic void layerRemoved(Layer oldLayer)
MapView.LayerChangeListenerlayerRemoved in interface MapView.LayerChangeListeneroldLayer - The old removed layer