Package com.assemblyrobot.ui.views
Class StationViewer
java.lang.Object
com.assemblyrobot.simulator.core.clock.TickAdvanceListener
com.assemblyrobot.ui.views.StationViewer
- All Implemented Interfaces:
View,javafx.fxml.Initializable
public class StationViewer extends TickAdvanceListener implements javafx.fxml.Initializable, View
-
Constructor Summary
Constructors Constructor Description StationViewer() -
Method Summary
Modifier and Type Method Description voidafterInitialize()voidinitialize(java.net.URL location, java.util.ResourceBundle resources)protected voidonTickAdvance(long ticksAdvanced)Callback method for when the clock moves forward.protected voidonTickReset()Callback method for when the clock tick was reset to 0.voidrefresh()voidreset()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
StationViewer
public StationViewer()
-
-
Method Details
-
initialize
public void initialize(java.net.URL location, java.util.ResourceBundle resources)- Specified by:
initializein interfacejavafx.fxml.Initializable
-
afterInitialize
public void afterInitialize()- Specified by:
afterInitializein interfaceView
-
refresh
public void refresh() -
reset
public void reset() -
onTickAdvance
protected void onTickAdvance(long ticksAdvanced)Description copied from class:TickAdvanceListenerCallback method for when the clock moves forward.- Specified by:
onTickAdvancein classTickAdvanceListener- Parameters:
ticksAdvanced- The amount of ticks that the clock moved forward by.
-
onTickReset
protected void onTickReset()Description copied from class:TickAdvanceListenerCallback method for when the clock tick was reset to 0.- Specified by:
onTickResetin classTickAdvanceListener
-