Class VisibilityComponent

java.lang.Object
gaiasky.gui.components.GuiComponent
gaiasky.gui.components.VisibilityComponent
All Implemented Interfaces:
IObserver

public class VisibilityComponent extends GuiComponent implements 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 Details

    • visibilityButtonMap

      protected Map<String, com.badlogic.gdx.scenes.scene2d.ui.Button> visibilityButtonMap
  • Constructor Details

    • VisibilityComponent

      public VisibilityComponent(com.badlogic.gdx.scenes.scene2d.ui.Skin skin, com.badlogic.gdx.scenes.scene2d.Stage stage)
  • Method Details

    • setVisibilityEntitites

      public void setVisibilityEntitites(ComponentTypes.ComponentType[] ve, boolean[] v)
    • initialize

      public void initialize(float componentWidth)
      Description copied from class: GuiComponent
      Initialises the component.
      Specified by:
      initialize in class GuiComponent
      Parameters:
      componentWidth - The target width of the component.
    • notify

      public void notify(Event event, Object source, Object... data)
      Description copied from interface: IObserver
      Event notification call.
      Specified by:
      notify in interface IObserver
      Parameters:
      event - The event type.
      source - The source object, if any.
      data - The data associated with this event.
    • dispose

      public void dispose()
      Description copied from class: GuiComponent
      Disposes the component.
      Specified by:
      dispose in class GuiComponent