Class AbstractLayoutTool.AbstractAlignmentAction

    • 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 AbstractAlignmentAction​(java.lang.String resourceBase, java.lang.String icon)  
      protected AbstractAlignmentAction​(java.lang.String resourceBase, javax.swing.Icon icon)  
    • Constructor Detail

      • AbstractAlignmentAction

        protected AbstractAlignmentAction​(java.lang.String resourceBase,
                                          java.lang.String icon)
      • AbstractAlignmentAction

        protected AbstractAlignmentAction​(java.lang.String resourceBase,
                                          javax.swing.Icon icon)
    • Method Detail

      • actionPerformed

        public void actionPerformed​(java.awt.event.ActionEvent e)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • align

        protected abstract void align​(DesignableDelegate delegate,
                                      java.util.List<javax.swing.JComponent> items)
      • evaluateEnabled

        public boolean evaluateEnabled​(DesignableDelegate delegate,
                                       java.util.List<javax.swing.JComponent> selected)
      • isMultiAlignment

        protected boolean isMultiAlignment()
        Return true if this action requires 2 or more components to be meaningful
      • isSiblingsOnly

        protected boolean isSiblingsOnly()