Class ComponentMoveResizeUndoAction

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(javax.swing.JComponent comp, java.awt.geom.Rectangle2D newBounds)  
      void add​(javax.swing.JComponent comp, java.awt.geom.Rectangle2D oldBounds, java.awt.geom.Rectangle2D newBounds)  
      boolean execute()
      This function executes (redoes) the action
      java.lang.String getDescription()
      The description of the action will be used to determine grouping equality as well as for display purposes.
      boolean isGroupSequenceIndependent()
      This function should return true if a group of these actions can be undone by ONLY calling undo() on the first action in the group, and redone by ONLY calling execute() on the last action in the group.
      java.lang.String toString()  
      boolean undo()
      This function will reverse the action
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ComponentMoveResizeUndoAction

        public ComponentMoveResizeUndoAction()
      • ComponentMoveResizeUndoAction

        public ComponentMoveResizeUndoAction​(java.lang.String descVerb)
    • Method Detail

      • add

        public void add​(javax.swing.JComponent comp,
                        java.awt.geom.Rectangle2D oldBounds,
                        java.awt.geom.Rectangle2D newBounds)
      • add

        public void add​(javax.swing.JComponent comp,
                        java.awt.geom.Rectangle2D newBounds)
      • getDescription

        public java.lang.String getDescription()
        Description copied from interface: UndoManager.UndoAction
        The description of the action will be used to determine grouping equality as well as for display purposes.
        Specified by:
        getDescription in interface UndoManager.UndoAction
      • isGroupSequenceIndependent

        public boolean isGroupSequenceIndependent()
        Description copied from interface: UndoManager.UndoAction
        This function should return true if a group of these actions can be undone by ONLY calling undo() on the first action in the group, and redone by ONLY calling execute() on the last action in the group.
        Specified by:
        isGroupSequenceIndependent in interface UndoManager.UndoAction
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object