Class TimeComponent
java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.TimeComponent
- All Implemented Interfaces:
IObserver
GUI component that displays and controls the simulation time in Gaia Sky.
Shows the current date and time, provides a time warp slider for adjusting
simulation speed, play/pause controls, time step buttons, and a date/time
edit button. Subscribes to time-related events to update the display.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OwnLabelprotected OwnTextIconButtonprotected OwnImageButtonprotected OwnImageButtonprotected OwnImageButtonprotected OwnLabelprotected double[]protected OwnLabelprotected OwnLabelprotected OwnLabelprotected booleanprotected OwnSliderPlusFields inherited from class GuiComponent
component, pad1, pad12, pad20, pad3, pad30, pad4, pad6, pad8, pad9, skin, stageModifier and TypeFieldDescriptionprotected com.badlogic.gdx.scenes.scene2d.Actorprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected com.badlogic.gdx.scenes.scene2d.ui.Skinprotected com.badlogic.gdx.scenes.scene2d.Stage -
Constructor Summary
ConstructorsConstructorDescriptionTimeComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage) -
Method Summary
Methods inherited from class GuiComponent
getActor, group
-
Field Details
-
date
-
time
-
warp
-
warpForward
-
warpBackward
-
playPause
-
stepForward
-
stepBackward
-
dateEdit
-
warpSlider
-
timeWarpVector
protected double[] timeWarpVector -
warpGuard
protected boolean warpGuard
-
-
Constructor Details
-
TimeComponent
public TimeComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
-
Method Details
-
initialize
public void initialize(float componentWidth) Description copied from class:GuiComponentInitialises the component.- Specified by:
initializein classGuiComponent- Parameters:
componentWidth- The target width of the component.
-
notify
-
dispose
public void dispose()Description copied from class:GuiComponentDisposes the component.- Specified by:
disposein classGuiComponent
-