Interface UndoSupport

All Known Subinterfaces:
SwingUndoSupport

public interface UndoSupport
A simple interface that posts edits to the Cytoscape undo stack.

Module: work-api

To use this in your app, include the following dependency in your POM:

<dependency>
    <groupId>org.cytoscape</groupId>
    <artifactId>work-api</artifactId>
</dependency>

Cytoscape Backwards Compatibility (API Interface): We expect that this interface will be used but not implemented by developers using this interface. As such, we reserve the right to add methods to the interface as part of minor version upgrades. We will not remove methods for any changes other than major version upgrades.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Posts the specified edit to the Cytoscape undo stack.
    void
    Clears the undo stack.
  • Method Details

    • postEdit

      void postEdit(AbstractCyEdit edit)
      Posts the specified edit to the Cytoscape undo stack.
      Parameters:
      edit - The edit to be added to the Cytoscape undo stack.
    • reset

      void reset()
      Clears the undo stack.