private class MemberTable.ZoomToGapAction extends javax.swing.AbstractAction implements MapView.LayerChangeListener, javax.swing.event.ListSelectionListener
Modifier and Type | Field and Description |
---|---|
private java.util.Collection<WayConnectionType.Direction> |
connectionTypesOfInterest |
Constructor and Description |
---|
MemberTable.ZoomToGapAction() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.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(javax.swing.event.ListSelectionEvent e) |
private final java.util.Collection<WayConnectionType.Direction> connectionTypesOfInterest
public MemberTable.ZoomToGapAction()
private WayConnectionType getConnectionType()
private boolean hasGap()
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
private void updateEnabledState()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void activeLayerChange(Layer oldLayer, Layer newLayer)
MapView.LayerChangeListener
activeLayerChange
in interface MapView.LayerChangeListener
oldLayer
- The previous active layernewLayer
- The new activer layerpublic void layerAdded(Layer newLayer)
MapView.LayerChangeListener
layerAdded
in interface MapView.LayerChangeListener
newLayer
- The new added layerpublic void layerRemoved(Layer oldLayer)
MapView.LayerChangeListener
layerRemoved
in interface MapView.LayerChangeListener
oldLayer
- The old removed layer