java.lang.Object
com.portingdeadmods.researchd.client.screens.research.graph.GraphStateManager

public class GraphStateManager extends Object
Simplified state manager that only caches the most recent graph layout
  • Method Details

    • getInstance

      public static GraphStateManager getInstance()
    • saveLastSessionState

      public void saveLastSessionState(ResearchGraph graph)
      Save the current graph state when closing the window
    • tryRestoreLastSessionState

      public boolean tryRestoreLastSessionState(ResearchGraph graph)
      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