Interface SceneChangeListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
NodeTreeView

public interface SceneChangeListener extends EventListener
A listener for scene changes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called after the scene changes.
    void
    Called before the scene changes.
  • Method Details

    • beforeSceneChange

      void beforeSceneChange(Node oldScene)
      Called before the scene changes. This is a good time to unregister listeners.
      Parameters:
      oldScene - the scene that is about to be replaced.
    • afterSceneChange

      void afterSceneChange(Node newScene)
      Called after the scene changes. This is a good time to register listeners.
      Parameters:
      newScene - the scene that has just been added.