Class AbstractLayoutTool.AbstractNudgeAction

    • Field Summary

      • 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 
      Modifier Constructor Description
      protected AbstractNudgeAction​(java.lang.String name, boolean superAction)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      void actionPerformed​(java.awt.event.ActionEvent ae)  
      protected DesignableDelegate delegate()  
      protected abstract void nudge​(java.util.List<javax.swing.JComponent> items, int dist)  
      protected double snap​(double d)
      Specialized version of snap, preserves fractional info (unless the snap actually did something, of course)
      protected int snap​(int i)
      Snaps to the grid
      • Methods inherited from class javax.swing.AbstractAction

        addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, 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

      • AbstractNudgeAction

        protected AbstractNudgeAction​(java.lang.String name,
                                      boolean superAction)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent ae)
      • snap

        protected int snap​(int i)
        Snaps to the grid
      • snap

        protected double snap​(double d)
        Specialized version of snap, preserves fractional info (unless the snap actually did something, of course)
      • nudge

        protected abstract void nudge​(java.util.List<javax.swing.JComponent> items,
                                      int dist)