Package org.cytoscape.view.layout
Class LayoutEdit
- java.lang.Object
-
- org.cytoscape.work.undo.AbstractCyEdit
-
- org.cytoscape.view.layout.LayoutEdit
-
public final class LayoutEdit extends AbstractCyEdit
An undoable edit that will undo and redo of a layout algorithm applied to a network view.Module:
layout-apiTo use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>layout-api</artifactId> </dependency>
Cytoscape Backwards Compatibility (Final Class): This class is final and therefore can't be extended by users. This means that we may add methods for minor version updates. Methods will only be removed for major version updates.
-
-
Constructor Summary
Constructors Constructor Description LayoutEdit(String name, CyNetworkView view)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidredo()The method that performs the redo.voidundo()The method that performs the undo.-
Methods inherited from class org.cytoscape.work.undo.AbstractCyEdit
getPresentationName, getRedoPresentationName, getUndoPresentationName
-
-
-
-
Constructor Detail
-
LayoutEdit
public LayoutEdit(String name, CyNetworkView view)
Constructor.- Parameters:
name- The name that will appear in the undo menu.view- The view whose current position will be tracked.
-
-
Method Detail
-
redo
public void redo()
Description copied from class:AbstractCyEditThe method that performs the redo.- Specified by:
redoin classAbstractCyEdit
-
undo
public void undo()
Description copied from class:AbstractCyEditThe method that performs the undo.- Specified by:
undoin classAbstractCyEdit
-
-