Package gaiasky.gui.components
Class VisibilityComponent
java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.VisibilityComponent
- All Implemented Interfaces:
IObserver
-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
ConstructorDescriptionVisibilityComponent
(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes the component.void
initialize
(float componentWidth) Initialises the component.void
Event notification call.void
setVisibilityEntitites
(ComponentTypes.ComponentType[] ve, boolean[] v) Methods inherited from class gaiasky.gui.components.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:GuiComponent
Initialises the component.- Specified by:
initialize
in classGuiComponent
- Parameters:
componentWidth
- The target width of the component.
-
notify
Description copied from interface:IObserver
Event notification call. -
dispose
public void dispose()Description copied from class:GuiComponent
Disposes the component.- Specified by:
dispose
in classGuiComponent
-