Class SplitMode.SplitWayActionConcrete

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
    Enclosing class:
    SplitMode

    private static class SplitMode.SplitWayActionConcrete
    extends javax.swing.AbstractAction
    Split a specified Way at the given nodes

    Does not attempt to figure out which ways to split based on selection like SplitWayAction and instead works on specified ways given in constructor

    Since:
    18759
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.List<OsmPrimitive> selection  
      private java.util.List<Node> splitNodes  
      private Way splitWay  
      • Fields inherited from class javax.swing.AbstractAction

        changeSupport, enabled
      • Fields 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 
      Constructor Description
      SplitWayActionConcrete​(Way splitWay, java.util.List<Node> splitNodes, java.util.List<OsmPrimitive> selection)
      Construct an action to split way splitWay at nodes splitNodes
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent e)  
      boolean isEnabled()  
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener, setEnabled
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.Action

        accept
    • Constructor Detail

      • SplitWayActionConcrete

        SplitWayActionConcrete​(Way splitWay,
                               java.util.List<Node> splitNodes,
                               java.util.List<OsmPrimitive> selection)
        Construct an action to split way splitWay at nodes splitNodes
        Parameters:
        splitWay - The way to split
        splitNodes - The nodes the way should be split at
        selection - (Optional, can be null) Selection which should be updated
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface javax.swing.Action
        Overrides:
        isEnabled in class javax.swing.AbstractAction