Class VisualSettingsComponent

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

public class VisualSettingsComponent extends GuiComponent implements IObserver
GUI component that allows to change various visual settings in Gaia Sky, such as star brightness, magnitude multiplier, glow factor, label sizes, and line widths.

This component provides sliders and buttons that interact with the EventManager to publish commands to the rest of the application. It also supports resetting these values to their defaults by reading from the internal configuration file.

  • Constructor Details

    • VisualSettingsComponent

      public VisualSettingsComponent(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: 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