Examples of contentsLost()


Examples of java.awt.image.BufferStrategy.contentsLost()

                                                                }
                                                        } while (strategy.contentsRestored());
                                                        if (isDisplayable()) {
                                                                strategy.show();
                                                        }
                                                } while (strategy.contentsLost());
                                                monitor0.notify();
                                        }
                                } catch (InterruptedException e) {
                                        if (isDebugEnabled()) {
                                                e.printStackTrace();
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

    */
    public void update() {
        Window window = device.getFullScreenWindow();
        if (window != null) {
            BufferStrategy strategy = window.getBufferStrategy();
            if (!strategy.contentsLost()) {
                strategy.show();
            }
        }
        // Sync the display on some systems.
        // (on Linux, this fixes event queue problems)
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

            mainFrame.createBufferStrategy(numBuffers);
            BufferStrategy bufferStrategy = mainFrame.getBufferStrategy();
            for (float lag = 2000.0f; lag > 0.00000006f; lag = lag / 1.33f) {
                for (int i = 0; i < numBuffers; i++) {
                    Graphics g = bufferStrategy.getDrawGraphics();
                    if (!bufferStrategy.contentsLost()) {
                        g.setColor(COLORS[i]);
                        g.fillRect(0,0,bounds.width, bounds.height);
                        bufferStrategy.show();
                        g.dispose();
                    }
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

                g.drawImage(bi, 50, 50, null);

                g.dispose();
                bs.show();
            } while (bs.contentsLost()||bs.contentsRestored());
        }
    }

}
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

        do {
            Graphics bsg = bs.getDrawGraphics();
            bsg.setColor(Color.blue);
            bsg.fillRect(0, 0,
                         renderCanvas.getWidth(), renderCanvas.getHeight());
        } while (bs.contentsLost() || bs.contentsRestored());

        // grab the "unaccelerated" onscreen surface
        cachedGraphics = renderCanvas.getGraphics();
        cachedGraphics.setColor(Color.red);
        cachedGraphics.fillRect(0, 0, getWidth(), getHeight());
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

 
  public void update() {
    Window window = device.getFullScreenWindow();
    if (window != null) {
      BufferStrategy strategy = window.getBufferStrategy();
      if (!strategy.contentsLost()) {
        strategy.show();
      }
    }
   
    // Sync the display on some systems. On Linux, this fixes event queue problems.
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

   */
  public void update() {
    Window window = device.getFullScreenWindow();
    if (window != null) {
      BufferStrategy strategy = window.getBufferStrategy();
      if (!strategy.contentsLost()) {
        strategy.show();
      }
    }
    // Sync the display on some systems.
    // (on Linux, this fixes event queue problems)
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

  //updates display
  public void update() {
    Window w = vc.getFullScreenWindow();
    if(w != null) {
      BufferStrategy s = w.getBufferStrategy();
      if(!s.contentsLost()) {
        s.show();
      }
    }
  }
 
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

 
  public void update() {
    Window w = vc.getFullScreenWindow();
    if(w != null) {
      BufferStrategy s = w.getBufferStrategy();
      if(!s.contentsLost()) {
        s.show();
      }
    }
  }
 
View Full Code Here

Examples of java.awt.image.BufferStrategy.contentsLost()

 
  public void update() {
    Window w = vc.getFullScreenWindow();
    if(w != null) {
      BufferStrategy s = w.getBufferStrategy();
      if(!s.contentsLost()) {
        s.show();
      }
    }
  }
 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.