public class JIPipeDummyGraphHistoryJournal extends Object implements JIPipeHistoryJournal
JIPipeHistoryJournal.ChangedEvent
Constructor and Description |
---|
JIPipeDummyGraphHistoryJournal() |
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
|
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, wait
redo, snapshotBeforeAddCompartment, snapshotBeforeAddNode, snapshotBeforeAddNodes, snapshotBeforeAddSlot, snapshotBeforeConnect, snapshotBeforeCutCompartment, snapshotBeforeCutNodes, snapshotBeforeDisconnect, snapshotBeforeDisconnectAll, snapshotBeforeEditSlot, snapshotBeforeLabelSlot, snapshotBeforeMoveNodes, snapshotBeforeMoveSlot, snapshotBeforePasteNodes, snapshotBeforeRemoveCompartment, snapshotBeforeRemoveNode, snapshotBeforeRemoveNodes, snapshotBeforeRemoveSlot, undo
public void snapshot(String name, String description, UUID compartment, Icon icon)
JIPipeHistoryJournal
snapshot
in interface JIPipeHistoryJournal
name
- 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()
JIPipeHistoryJournal
getSnapshots
in interface JIPipeHistoryJournal
public boolean goToSnapshot(JIPipeHistoryJournalSnapshot snapshot, UUID compartment)
JIPipeHistoryJournal
goToSnapshot
in interface JIPipeHistoryJournal
snapshot
- the snapshotcompartment
- the compartment. can be null.public JIPipeHistoryJournalSnapshot getUndoSnapshot()
JIPipeHistoryJournal
getUndoSnapshot
in interface JIPipeHistoryJournal
public JIPipeHistoryJournalSnapshot getRedoSnapshot()
JIPipeHistoryJournal
getRedoSnapshot
in interface JIPipeHistoryJournal
public JIPipeHistoryJournalSnapshot getCurrentSnapshot()
JIPipeHistoryJournal
getCurrentSnapshot
in interface JIPipeHistoryJournal
public void clear()
JIPipeHistoryJournal
clear
in interface JIPipeHistoryJournal
public EventBus getEventBus()
JIPipeHistoryJournal
getEventBus
in interface JIPipeHistoryJournal
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.