Class Undo.UndoPoint

    • Field Detail

      • m_Data

        protected Object m_Data
        the undo data.
      • m_Comment

        protected String m_Comment
        the associated comment.
    • Constructor Detail

      • UndoPoint

        public UndoPoint​(Object data,
                         String comment)
        Initializes the undo point.
        Parameters:
        data - the data to store
        comment - the associated comment
    • Method Detail

      • getData

        public Object getData()
        Returns the stored data.
        Returns:
        the data
      • getComment

        public String getComment()
        Returns the comment associated with the data.
        Returns:
        the comment
      • toString

        public String toString()
        Returns a string representation of the undo point.
        Overrides:
        toString in class Object
        Returns:
        a string representation