Enum SceneView.FrameRate

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SceneView.FrameRate>
    Enclosing class:
    SceneView

    public static enum SceneView.FrameRate
    extends java.lang.Enum<SceneView.FrameRate>
         Further limit the maximal possible frame rate.
         If the max frame rate is 60fps a factor of 1 results in 60fps,
         a factor of 2 results in 30fps and a factor of 3 results in 20fps.
    
         In overall this prevents any kind of processing with more than the
         calculated max frame rate.
     
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      FULL
      divide the maximal allowed frame rate by 1
      HALF
      divide the maximal allowed frame rate by 2
      THIRD
      divide the maximal allowed frame rate by 3
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int factor()  
      static SceneView.FrameRate valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SceneView.FrameRate[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • FULL

        public static final SceneView.FrameRate FULL
        divide the maximal allowed frame rate by 1
      • HALF

        public static final SceneView.FrameRate HALF
        divide the maximal allowed frame rate by 2
      • THIRD

        public static final SceneView.FrameRate THIRD
        divide the maximal allowed frame rate by 3
    • Method Detail

      • values

        public static SceneView.FrameRate[] 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 (SceneView.FrameRate c : SceneView.FrameRate.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SceneView.FrameRate 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
      • factor

        public int factor()