Package gaiasky.event

Enum Class Event

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

public enum Event extends Enum<Event>
This enum defines all the events in Gaia Sky. Each event may have data associated with it, which is typically required by the event listeners. The entry point to the event system functionality (subscription, posting, etc.) is EventManager.
  • Enum Constant Details

    • ADD_CUSTOM_IMAGE

      public static final Event 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 Event 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 Event 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 Event ADD_GUI_COMPONENT
      Adds the GUI component identified by the given name.
    • AMBIENT_LIGHT_CMD

      public static final Event AMBIENT_LIGHT_CMD
      Contains a float with the intensity of the light in [0,1].
    • ANTIALIASING_CMD

      public static final Event ANTIALIASING_CMD
      Anti aliasing changed, contains the new anti-aliasing value.
    • SHOW_ADD_POSITION_BOOKMARK

      public static final Event SHOW_ADD_POSITION_BOOKMARK
      Shows window to give a name to the new position bookmark.
    • BOOKMARKS_ADD

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

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

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

      public static final Event BOOKMARKS_MOVE
      Moves the bookmark 1 to a child of bookmark 2.
    • BOOKMARKS_MOVE_UP

      public static final Event BOOKMARKS_MOVE_UP
      Moves the bookmark up in the list of its parent.
    • BOOKMARKS_MOVE_DOWN

      public static final Event BOOKMARKS_MOVE_DOWN
      Moves the bookmark down in the list of its parent.
    • BACKGROUND_LOADING_INFO

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

      public static final Event BLOOM_CMD
      Contains the intensity value in [0,1].
    • UNSHARP_MASK_CMD

      public static final Event UNSHARP_MASK_CMD
      Contains the sharpen factor in [0,2].
    • CHROMATIC_ABERRATION_CMD

      public static final Event CHROMATIC_ABERRATION_CMD
      Contains the amount of chromatic aberration in [0,0.2].
    • FILM_GRAIN_CMD

      public static final Event FILM_GRAIN_CMD
      Contains the intensity of the film grain effect as a float.
    • BRIGHTNESS_CMD

      public static final Event BRIGHTNESS_CMD
      Contains the brightness level (float) in [-1,1].
    • CAMERA_CENTER

      public static final Event CAMERA_CENTER
      Removes the turn off the camera in focus mode.
    • CAMERA_CENTER_FOCUS_CMD

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

      public static final Event CAMERA_CINEMATIC_CMD
      Contains a boolean with the cinematic mode state (on/off).
    • CAMERA_CLOSEST_INFO

      public static final Event 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 Event 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 Event CAMERA_DIR_CMD
      Contains a double[] with the new direction.
    • CAMERA_FWD

      public static final Event CAMERA_FWD
      Contains the forward force in [0,1].
    • CAMERA_MODE_CMD

      public static final Event CAMERA_MODE_CMD
      Contains the new CameraMode object.
    • CAMERA_MOTION_UPDATE

      public static final Event 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