Class VisibilityComponent
java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.VisibilityComponent
- All Implemented Interfaces:
IObserver
GUI component that controls the visibility of scene entity types in Gaia Sky.
Provides toggle buttons for constellation lines, asterisms, Milky Way, and other
component types, along with proper motion vector controls (toggle, arrowheads,
number factor, length factor, color mode) and individual object visibility access.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields 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
ConstructorsConstructorDescriptionVisibilityComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Disposes the component.voidinitialize(float componentWidth) Initialises the component.voidEvent notification call.voidsetVisibilityEntitites(ComponentTypes.ComponentType[] ve, boolean[] v) Methods inherited from class GuiComponent
getActor, group
-
Field Details
-
visibilityButtonMap
-
-
Constructor Details
-
VisibilityComponent
public VisibilityComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
-
-
Method Details
-
setVisibilityEntitites
-
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
-