Class GuiComponent
java.lang.Object
gaiasky.gui.components.GuiComponent
- Direct Known Subclasses:
BookmarksComponent, CameraComponent, CubemapComponent, DatasetsComponent, LocationLogComponent, StereoComponent, TimeComponent, VisibilityComponent, VisualSettingsComponent
Abstract base class for all control panel components in Gaia Sky.
Provides common infrastructure for UI construction including skin, stage,
and padding constants. Subclasses implement
initialize(float)
and dispose() to define their specific behavior.-
Field Summary
FieldsModifier 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
ConstructorsModifierConstructorDescriptionprotectedGuiComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage) -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddispose()Disposes the component.com.badlogic.gdx.scenes.scene2d.ActorgetActor()protected com.badlogic.gdx.scenes.scene2d.ui.VerticalGroupgroup(com.badlogic.gdx.scenes.scene2d.Actor ac1, com.badlogic.gdx.scenes.scene2d.Actor ac2, float sp) abstract voidinitialize(float componentWidth) Initialises the component.
-
Field Details
-
component
protected com.badlogic.gdx.scenes.scene2d.Actor component -
skin
protected com.badlogic.gdx.scenes.scene2d.ui.Skin skin -
stage
protected com.badlogic.gdx.scenes.scene2d.Stage stage -
pad30
protected float pad30 -
pad20
protected float pad20 -
pad12
protected float pad12 -
pad9
protected float pad9 -
pad8
protected float pad8 -
pad6
protected float pad6 -
pad4
protected float pad4 -
pad3
protected float pad3 -
pad1
protected float pad1
-
-
Constructor Details
-
GuiComponent
protected GuiComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
-
Method Details
-
initialize
public abstract void initialize(float componentWidth) Initialises the component.- Parameters:
componentWidth- The target width of the component.
-
getActor
public com.badlogic.gdx.scenes.scene2d.Actor getActor() -
dispose
public abstract void dispose()Disposes the component. -
group
protected com.badlogic.gdx.scenes.scene2d.ui.VerticalGroup group(com.badlogic.gdx.scenes.scene2d.Actor ac1, com.badlogic.gdx.scenes.scene2d.Actor ac2, float sp)
-