public class JIPipeDedicatedGraphHistoryJournal extends Object implements JIPipeHistoryJournal
| Modifier and Type | Class and Description |
|---|---|
static class |
JIPipeDedicatedGraphHistoryJournal.Snapshot
Stores all information about the state of a
|
JIPipeHistoryJournal.ChangedEvent| Constructor and Description |
|---|
JIPipeDedicatedGraphHistoryJournal(JIPipeGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the journal
|
JIPipeHistoryJournalSnapshot |
getCurrentSnapshot()
Gets the snapshot that represents the current state of the data
|
EventBus |
getEventBus()
The event bus
|
JIPipeGraph |
getGraph() |
JIPipeHistoryJournalSnapshot |
getRedoSnapshot()
Gets the snapshot for the next redo operation
|
List<JIPipeHistoryJournalSnapshot> |
getSnapshots()
Gets the list of all snapshots.
|
JIPipeHistoryJournalSnapshot |
getUndoSnapshot()
Gets the snapshot for the next undo operation
|
boolean |
goToSnapshot(JIPipeHistoryJournalSnapshot snapshot,
UUID compartment)
Attempts to go to a specified snapshot
|
void |
snapshot(String name,
String description,
UUID compartment,
Icon icon)
Creates a new snapshot in the history journal
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitredo, snapshotBeforeAddCompartment, snapshotBeforeAddNode, snapshotBeforeAddNodes, snapshotBeforeAddSlot, snapshotBeforeConnect, snapshotBeforeCutCompartment, snapshotBeforeCutNodes, snapshotBeforeDisconnect, snapshotBeforeDisconnectAll, snapshotBeforeEditSlot, snapshotBeforeLabelSlot, snapshotBeforeMoveNodes, snapshotBeforeMoveSlot, snapshotBeforePasteNodes, snapshotBeforeRemoveCompartment, snapshotBeforeRemoveNode, snapshotBeforeRemoveNodes, snapshotBeforeRemoveSlot, undopublic JIPipeDedicatedGraphHistoryJournal(JIPipeGraph graph)
public void snapshot(String name, String description, UUID compartment, Icon icon)
JIPipeHistoryJournalsnapshot in interface JIPipeHistoryJournalname - the name of the snapshotdescription - the description of the snapshotcompartment - the compartment. can be null.icon - an icon. can be null.public List<JIPipeHistoryJournalSnapshot> getSnapshots()
JIPipeHistoryJournalgetSnapshots in interface JIPipeHistoryJournalpublic void clear()
JIPipeHistoryJournalclear in interface JIPipeHistoryJournalpublic boolean goToSnapshot(JIPipeHistoryJournalSnapshot snapshot, UUID compartment)
JIPipeHistoryJournalgoToSnapshot in interface JIPipeHistoryJournalsnapshot - the snapshotcompartment - the compartment. can be null.public JIPipeHistoryJournalSnapshot getCurrentSnapshot()
JIPipeHistoryJournalgetCurrentSnapshot in interface JIPipeHistoryJournalpublic JIPipeHistoryJournalSnapshot getUndoSnapshot()
JIPipeHistoryJournalgetUndoSnapshot in interface JIPipeHistoryJournalpublic JIPipeHistoryJournalSnapshot getRedoSnapshot()
JIPipeHistoryJournalgetRedoSnapshot in interface JIPipeHistoryJournalpublic EventBus getEventBus()
JIPipeHistoryJournalgetEventBus in interface JIPipeHistoryJournalpublic JIPipeGraph getGraph()
Copyright © 2020–2023 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.