Class FrameRateControlAdapter

  • All Implemented Interfaces:
    javax.media.Control, javax.media.control.FrameRateControl

    public class FrameRateControlAdapter
    extends Object
    implements javax.media.control.FrameRateControl
    Provides a default implementation of FrameRateControl.
    Author:
    Lyubomir Marinov
    • Constructor Detail

      • FrameRateControlAdapter

        public FrameRateControlAdapter()
    • Method Detail

      • getControlComponent

        public Component getControlComponent()
        Gets the UI Component associated with this Control object. FrameRateControlAdapter always returns null.
        Specified by:
        getControlComponent in interface javax.media.Control
        Returns:
        the UI Component associated with this Control object
        See Also:
        Control.getControlComponent()
      • getFrameRate

        public float getFrameRate()
        Gets the current output frame rate. FrameRateControlAdapter always returns -1.
        Specified by:
        getFrameRate in interface javax.media.control.FrameRateControl
        Returns:
        the current output frame rate if it is known; otherwise, -1
        See Also:
        FrameRateControl.getFrameRate()
      • getMaxSupportedFrameRate

        public float getMaxSupportedFrameRate()
        Gets the maximum supported output frame rate. FrameRateControlAdapter always returns -1.
        Specified by:
        getMaxSupportedFrameRate in interface javax.media.control.FrameRateControl
        Returns:
        the maximum supported output frame rate if it is known; otherwise, -1
        See Also:
        FrameRateControl.getMaxSupportedFrameRate()
      • getPreferredFrameRate

        public float getPreferredFrameRate()
        Gets the default/preferred output frame rate. FrameRateControlAdapter always returns -1.
        Specified by:
        getPreferredFrameRate in interface javax.media.control.FrameRateControl
        Returns:
        the default/preferred output frame rate if it is known; otherwise, -1
        See Also:
        FrameRateControl.getPreferredFrameRate()
      • setFrameRate

        public float setFrameRate​(float frameRate)
        Sets the output frame rate. FrameRateControlAdapter always returns -1.
        Specified by:
        setFrameRate in interface javax.media.control.FrameRateControl
        Parameters:
        frameRate - the output frame rate to change the current one to
        Returns:
        the actual current output frame rate or -1 if it is unknown or not controllable
        See Also:
        FrameRateControl.setFrameRate(float)