public class ZoomToAction extends javax.swing.AbstractAction implements LayerManager.LayerChangeListener, MainLayerManager.ActiveLayerChangeListener, javax.swing.event.ListSelectionListener
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
descriptionInactiveLayer |
private java.lang.String |
descriptionNominal |
private java.lang.String |
descriptionNoSelection |
private OsmPrimitivesTable |
table |
Constructor and Description |
---|
ZoomToAction(MemberTable table) |
ZoomToAction(NodeListTable table) |
ZoomToAction(OsmPrimitivesTable table,
java.lang.String descriptionNominal,
java.lang.String descriptionInactiveLayer,
java.lang.String descriptionNoSelection) |
ZoomToAction(RelationMemberTable table) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
Called whenever the active or edit layer changed.
|
void |
layerAdded(LayerManager.LayerAddEvent e)
Notifies this listener that a layer has been added.
|
void |
layerOrderChanged(LayerManager.LayerOrderChangeEvent e)
Notifies this listener that the order of layers was changed.
|
void |
layerRemoving(LayerManager.LayerRemoveEvent e)
Notifies this listener that a layer is about to be removed.
|
protected void |
updateEnabledState() |
void |
valueChanged(javax.swing.event.ListSelectionEvent e) |
private final OsmPrimitivesTable table
private final java.lang.String descriptionNominal
private final java.lang.String descriptionInactiveLayer
private final java.lang.String descriptionNoSelection
public ZoomToAction(OsmPrimitivesTable table, java.lang.String descriptionNominal, java.lang.String descriptionInactiveLayer, java.lang.String descriptionNoSelection)
public ZoomToAction(MemberTable table)
public ZoomToAction(RelationMemberTable table)
public ZoomToAction(NodeListTable table)
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
protected final void updateEnabledState()
public void valueChanged(javax.swing.event.ListSelectionEvent e)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void activeOrEditLayerChanged(MainLayerManager.ActiveLayerChangeEvent e)
MainLayerManager.ActiveLayerChangeListener
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.
activeOrEditLayerChanged
in interface MainLayerManager.ActiveLayerChangeListener
e
- The change event.public void layerAdded(LayerManager.LayerAddEvent e)
LayerManager.LayerChangeListener
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
layerAdded
in interface LayerManager.LayerChangeListener
e
- The new added layer eventpublic void layerRemoving(LayerManager.LayerRemoveEvent e)
LayerManager.LayerChangeListener
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
layerRemoving
in interface LayerManager.LayerChangeListener
e
- The layer to be removed (as event)public void layerOrderChanged(LayerManager.LayerOrderChangeEvent e)
LayerManager.LayerChangeListener
Listeners are called in the EDT thread and you can manipulate the layer manager in the current thread.
layerOrderChanged
in interface LayerManager.LayerChangeListener
e
- The order change event.