Package java.awt

Examples of java.awt.ImageCapabilities


  }

  public void canvasSetRenderingMode() {
    if (Monitor.MULTI_BUFFERING <= 0) return;
    BufferCapabilities desiredCaps = new BufferCapabilities(
      new ImageCapabilities(true), new ImageCapabilities(true),
      Monitor.PAGE_FLIPPING ? FlipContents.BACKGROUND : null
    );
    Class<?> extBufCapClass = null;
    try {
      // Creates ExtendedBufferCapabilities via reflection to avoid problems with AccessControl
View Full Code Here


     */
    @Override
    public ImageCapabilities getCapabilities(GraphicsConfiguration gc) {
        if (isConfigValid(gc) && isAccelerationEnabled()) {
            // accelerated but not volatile
            return new ImageCapabilities(true);
        }
        // neither accelerated nor volatile
        return new ImageCapabilities(false);
    }
View Full Code Here

        BufferCapabilities bc = gc.getBufferCapabilities();
        if (caps.getDoubleBuffered() && !bc.isPageFlipping()) return false;
        if (caps.getStereo() && !bc.isMultiBufferAvailable()) return false;
        if (!fullscreen && bc.isFullScreenRequired()) return false;
        // Check hardware acceleration
        ImageCapabilities ic = bc.getBackBufferCapabilities();
        if (caps.getHardwareAccelerated() && !ic.isAccelerated()) return false;
        if (fullscreen && !gc.getDevice().isFullScreenSupported()) return false;
        // Default: OK
        return true;
    }
View Full Code Here

TOP

Related Classes of java.awt.ImageCapabilities

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.