Class GraphStateManager
java.lang.Object
com.portingdeadmods.researchd.client.screens.research.graph.GraphStateManager
Simplified state manager that only caches the most recent graph layout
-
Method Summary
Modifier and TypeMethodDescriptionvoidClear cached statestatic GraphStateManagervoidSave the current graph state when closing the windowbooleanTry to restore the previous session state if this is the same graph
-
Method Details
-
getInstance
-
saveLastSessionState
Save the current graph state when closing the window -
tryRestoreLastSessionState
Try to restore the previous session state if this is the same graph- Returns:
- true if state was restored, false otherwise
-
clearState
public void clearState()Clear cached state
-