Package javax.media

Examples of javax.media.Control


            return null;
        }

        synchronized(controls) {
            for(int i = 0, n = controls.size(); i < n; i++) {
                Control control = (Control)controls.elementAt(i);
                if( c.isInstance(control) ) {
                    return control;
                }
            }
        }
View Full Code Here


    final Object[] controls = getControls();
    if (controls == null)
      return null;
    for (Object o : controls)
    {
      final Control control = (Control) o;
      if (c.isInstance(control))
        return control;
    }

    return null;
View Full Code Here

      // If monitor is on, try to obtain any monitor controls
      // from the processor and display them.

      setLayout(new BorderLayout());

      Control controls[] = p.getControls();
      Panel monitorPanel = null;
      Component monitorComp = null;

      for (int i = 0; i < controls.length; i++) {
    if (controls[i] instanceof MonitorControl) {
View Full Code Here

     * Setting the encoding quality to the specified value on the JPEG encoder.
     * 0.5 is a good default.
     */
    void setJPEGQuality(Player p, float val) {

  Control cs[] = p.getControls();
  QualityControl qc = null;
  VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);

  // Loop through the controls to find the Quality control for
   // the JPEG encoder.
View Full Code Here

            return null;
        }

        synchronized(controls) {
            for(int i = 0, n = controls.size(); i < n; i++) {
                Control control = (Control)controls.elementAt(i);
                if( c.isInstance(control) ) {
                    return control;
                }
            }
        }
View Full Code Here

     * Setting the encoding quality to the specified value on the JPEG encoder.
     * 0.5 is a good default.
     */
    void setJPEGQuality(Player p, float val) {

  Control cs[] = p.getControls();
  QualityControl qc = null;
  VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);

  // Loop through the controls to find the Quality control for
   // the JPEG encoder.
View Full Code Here

   */
  public Control getControl(String controlType) {
    try {
      Class cls = Class.forName(controlType);
      synchronized (controls) {
        Control cs[] = getControls();
        for (int i = 0; i < cs.length; i++) {
          if (cls.isInstance(cs[i])) {
            return cs[i];
          }
        }
View Full Code Here

    * 0.5 is a good default.
    */
   //------------------------------------------------------------------------------------------
    void setJPEGQuality(Player p, float val) {

    Control cs[] = p.getControls();
    QualityControl qc = null;
    VideoFormat jpegFmt = new VideoFormat(VideoFormat.JPEG);

    // Loop through the controls to find the Quality control for
     // the JPEG encoder.
View Full Code Here

TOP

Related Classes of javax.media.Control

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.