188189190191192193194195196
return scene; } @Override public Scene popScene() { Scene scene = sceneStack.pop(); remove(scene); return scene; }
217218219220221222223224225
} @Override public Scene removeSceneAboveScene(final Scene reference) { int index = sceneStack.indexOf(reference) + 1; Scene scene = sceneStack.remove(index); remove(scene); return scene; }
225226227228229230231232233
} @Override public Scene removeSceneBelow(final Scene reference) { int index = sceneStack.indexOf(reference) - 1; Scene scene = sceneStack.remove(index); remove(scene); return scene; }