Enum AnimatedPanelGraphics.Mode

java.lang.Object
java.lang.Enum<AnimatedPanelGraphics.Mode>
org.bzdev.swing.AnimatedPanelGraphics.Mode
All Implemented Interfaces:
Serializable, Comparable<AnimatedPanelGraphics.Mode>
Enclosing class:
AnimatedPanelGraphics

public static enum AnimatedPanelGraphics.Mode extends Enum<AnimatedPanelGraphics.Mode>
  • Enum Constant Details

    • AUTO_RUN_NO_CONTROLS

      public static final AnimatedPanelGraphics.Mode AUTO_RUN_NO_CONTROLS
      Once the method AnimatedPanelGraphics.close() is called the animation/video will run in the panel associated with an AnimatedPanelGraphics instance and cannot be replayed as there are no controls.
    • AUTO_RUN

      public static final AnimatedPanelGraphics.Mode AUTO_RUN
      Once the method AnimatedPanelGraphics.close() is called, the animation/video will run in the panel associated with an AnimatedPanelGraphics instance and cannot be replayed but may be paused. The controls for a frame should contain a button that will play or pause the animation or video.
    • AUTO_RUN_REPLAYABLE

      public static final AnimatedPanelGraphics.Mode AUTO_RUN_REPLAYABLE
      Once the method AnimatedPanelGraphics.close() is called, the animation/video will run in the panel associated with an AnimatedPanelGraphics instance and can be replayed once it has run to completion. The controls for a frame should contain a button that will play or pause the animation or video.
    • START_PAUSED

      public static final AnimatedPanelGraphics.Mode START_PAUSED
      Once the method AnimatedPanelGraphics.close() is called, the animation/video will be ready to run in the panel associated with an AnimatedPanelGraphics instance and cannot be replayed, but can be paused at any point. The controls for a frame should contain a button that will play or pause the animation or video. This button will have to be pushed to start the video or animation.
    • START_PAUSED_REPLAYABLE

      public static final AnimatedPanelGraphics.Mode START_PAUSED_REPLAYABLE
      Once the method AnimatedPanelGraphics.close() is called, the animation/video will be ready to run in the panel associated with an AnimatedPanelGraphics instance and can be replayed after it runs to completion and paused at any point. The controls for a frame should contain a button that will play or pause the animation or video.
    • START_PAUSED_SELECTABLE

      public static final AnimatedPanelGraphics.Mode START_PAUSED_SELECTABLE
      Once the method AnimatedPanelGraphics.close() is called, the animation/video will be ready to run in the panel associated with an AnimatedPanelGraphics instance and can be replayed after it runs to completion, paused at any point, and repositioned when paused. The controls for a frame should contain a button that will play or pause the animation or video. Additional controls should allow the animation/video to be repositioned in time and single stepped in either direction. Finally, there should be a control that provides a snapshot of a frame.
  • Method Details

    • values

      public static AnimatedPanelGraphics.Mode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AnimatedPanelGraphics.Mode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null