Package gaiasky.event

Enum Events

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Events>

    public enum Events
    extends java.lang.Enum<Events>
    Contains all the events
    • Enum Constant Detail

      • 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
      • 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_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
  • Method Detail

    • values

      public static Events[] values()
      Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
      for (Events c : Events.values())
          System.out.println(c);
      
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Events valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null