Package gaiasky.event

Enum Events

java.lang.Object
java.lang.Enum<Events>
gaiasky.event.Events
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Events>, java.lang.constant.Constable

public enum Events
extends java.lang.Enum<Events>
Contains all the events that go through the event system.
  • Enum Constant Details

    • ADD_CUSTOM_IMAGE

      public static final Events ADD_CUSTOM_IMAGE
      Adds or modifies a custom image. Contains:
      1. id - integer
      2. tex - Texture
      3. x - X position of bottom-left corner, float in [0..1]
      4. y - Y position of bottom-left corner, float in [0..1]
      5. r - optional, float in [0..1]
      6. g - optional, float in [0..1]
      7. b - optional, float in [0..1]
      8. a - optional, float in [0..1]
    • ADD_CUSTOM_MESSAGE

      public static final Events ADD_CUSTOM_MESSAGE
      Adds or modifies a custom message. Contains:
      1. id - integer
      2. message - string
      3. x - X position of bottom-left corner, float in [0..1]
      4. y - Y position of bottom-left corner, float in [0..1]
      5. r - float in [0..1]
      6. g - float in [0..1]
      7. b - float in [0..1]
      8. a - float in [0..1]
      9. size - float
    • ADD_CUSTOM_TEXT

      public static final Events ADD_CUSTOM_TEXT
      Adds or modifies a custom message. Contains:
      1. id - integer
      2. message - string
      3. x - X position of bottom-left corner, float in [0..1]
      4. y - Y position of bottom-left corner, float in [0..1]
      5. x - maxWidth maximum width in screen percentage, float in [0..1]
      6. y - maxHeight maximum height in screen percentage, float in [0..1]
      7. r - float in [0..1]
      8. g - float in [0..1]
      9. b - float in [0..1]
      10. a - float in [0..1]
      11. size - float
    • ADD_GUI_COMPONENT

      public static final Events ADD_GUI_COMPONENT
      Adds the gui component identified by the given name
    • AMBIENT_LIGHT_CMD

      public static final Events AMBIENT_LIGHT_CMD
      Contains a float with the intensity of the light between 0 and 1
    • ANTIALIASING_CMD

      public static final Events ANTIALIASING_CMD
      Anti aliasing changed, contains the new value for aa
    • BOOKMARKS_ADD

      public static final Events BOOKMARKS_ADD
      Add bookmark. Contains the path and a boolean indicating if it is a folder
    • BOOKMARKS_REMOVE

      public static final Events BOOKMARKS_REMOVE
      Remove bookmark. Contains the path to remove
    • BOOKMARKS_REMOVE_ALL

      public static final Events BOOKMARKS_REMOVE_ALL
      Remove all bookmarks with the given name, irrespective of the path.
    • BOOKMARKS_MOVE

      public static final Events BOOKMARKS_MOVE
      Moves the bookmark 1 to a child of bookmark 2
    • BACKGROUND_LOADING_INFO

      public static final Events BACKGROUND_LOADING_INFO
      Empty event which informs that background loading is active
    • BLOOM_CMD

      public static final Events BLOOM_CMD
      Contains the intensity value between 0 and 1 and a boolean for whether it comes from the interface
    • UNSHARP_MASK_CMD

      public static final Events UNSHARP_MASK_CMD
      Contains the sharpen factor between 0 and 2 and a boolean if it comes from the UI
    • BRIGHTNESS_CMD

      public static final Events BRIGHTNESS_CMD
      Contains the brightness level (float) in [-1..1] and an optional boolean indicating whether this comes from the interface
    • CAMERA_CENTER

      public static final Events CAMERA_CENTER
      Removes the turn of the camera in focus mode
    • CAMERA_CENTER_FOCUS_CMD

      public static final Events CAMERA_CENTER_FOCUS_CMD
      Sets the 'diverted' attribute of the camera. Gets a boolean
    • CAMERA_CINEMATIC_CMD

      public static final Events CAMERA_CINEMATIC_CMD
      Contains a boolean with the cinematic mode state (on/off) and a boolean indicating if this comes from the interface
    • CAMERA_CLOSEST_INFO

      public static final Events CAMERA_CLOSEST_INFO
      Broadcasts the overall closest (in [0]), the closest non-star body (in [1]) and the closest particle (in [2]) to this camera. Happens every frame
    • CAMERA_NEW_CLOSEST

      public static final Events CAMERA_NEW_CLOSEST
      This event is broadcast whenever the closest object to the camera changes. Contains the closest object as an IFocus.
    • CAMERA_DIR_CMD

      public static final Events CAMERA_DIR_CMD
      Contains a double[] with the new direction
    • CAMERA_FWD

      public static final Events CAMERA_FWD
      Contains the value between 0 and 1
    • CAMERA_MODE_CMD

      public static final Events CAMERA_MODE_CMD
      Contains the new CameraMode object
    • CAMERA_MOTION_UPDATE

      public static final Events CAMERA_MOTION_UPDATE
      Informs of a new camera state. Contains:
      1. Vector3d with the current position of the camera
      2. Double with the speed of the camera in km/s
      3. Vector3d with the velocity vector of the camera
      4. The PerspectiveCamera