Overview
Package
Class
Use
Tree
Deprecated
Index
All Classes
Help
Prev Class
Next Class
Sample
Document
Class java.awt.Component.BltBufferStrategy
Inherited members: ShowHide
Deprecated: ShowHide
View: ClientSubclassPackageImplementation
java.awt

Class Component.BltBufferStrategy

  • java.lang.Object
    • java.awt.image.BufferStrategy
      • java.awt.Component.BltBufferStrategy
  • Enclosing class:
    Component
    protected class Component.BltBufferStrategy extends java.awt.image.BufferStrategy
    Inner class for blitting offscreen surfaces to a component.
    Since:
    1.4
    • Fields 
      Modifier and Type Field and Description
      Ordinary member indicator backBuffers Reveal DetailHide Detail
      protected java.awt.image.VolatileImage[] backBuffers
      The back buffers
      protected java.awt.image.VolatileImage[] backBuffers
      The back buffers
      Ordinary member indicator caps Reveal DetailHide Detail
      protected BufferCapabilities caps
      The buffering capabilities
      protected BufferCapabilities caps
      The buffering capabilities
      Ordinary member indicator height Reveal DetailHide Detail
      protected int height
       
      protected int height
      Ordinary member indicator validatedContents Reveal DetailHide Detail
      protected boolean validatedContents
      Whether or not the drawing buffer has been recently restored from a lost state.
      protected boolean validatedContents
      Whether or not the drawing buffer has been recently restored from a lost state.
      Ordinary member indicator width Reveal DetailHide Detail
      protected int width
      Size of the back buffers
      protected int width
      Size of the back buffers
    • Constructors 
      Modifier Constructor and Description
      Ordinary member indicator Component.BltBufferStrategy Reveal DetailHide Detail
      protected Component.BltBufferStrategy(int numBuffers, BufferCapabilities caps)
      Creates a new blt buffer strategy around a component
      protected Component.BltBufferStrategy(int numBuffers, BufferCapabilities caps)
      Creates a new blt buffer strategy around a component
      Parameters:
      numBuffers - number of buffers to create, including the front buffer
      caps - the capabilities of the buffers
    • Methods 
      Modifier and Type Method and Description
      Overridden member indicator contentsLost Reveal DetailHide Detail
      boolean contentsLost()
      Returns whether the drawing buffer was lost since the last call to getDrawGraphics.
      public boolean contentsLost()
      Description copied from class: java.awt.image.BufferStrategy
      Returns whether the drawing buffer was lost since the last call to getDrawGraphics. Since the buffers in a buffer strategy are usually type VolatileImage, they may become lost. For a discussion on lost buffers, see VolatileImage.
      Specified by:
      contentsLost in class java.awt.image.BufferStrategy
      Returns:
      whether the drawing buffer was lost since the last call to getDrawGraphics
      See Also:
      VolatileImage
      Overridden member indicator contentsRestored Reveal DetailHide Detail
      boolean contentsRestored()
      Returns whether the drawing buffer was recently restored from a lost state and reinitialized to the default background color (white).
      public boolean contentsRestored()
      Description copied from class: java.awt.image.BufferStrategy
      Returns whether the drawing buffer was recently restored from a lost state and reinitialized to the default background color (white). Since the buffers in a buffer strategy are usually type VolatileImage, they may become lost. If a surface has been recently restored from a lost state since the last call to getDrawGraphics, it may require repainting. For a discussion on lost buffers, see VolatileImage.
      Specified by:
      contentsRestored in class java.awt.image.BufferStrategy
      Returns:
      whether the drawing buffer was recently restored from a lost state and reinitialized to the default background color (white)
      See Also:
      VolatileImage
      Ordinary member indicator createBackBuffers Reveal DetailHide Detail
      protected void createBackBuffers(int numBuffers)
      Creates the back buffers
      protected void createBackBuffers(int numBuffers)
      Creates the back buffers
      Overridden member indicator dispose Reveal DetailHide Detail
      void dispose()
      Releases system resources currently consumed by this BufferStrategy and removes it from the associated Component.
      public void dispose()
      Releases system resources currently consumed by this BufferStrategy and removes it from the associated Component. After invoking this method, getBufferStrategy will return null. Trying to use a BufferStrategy after it has been disposed will result in undefined behavior.
      Overrides:
      dispose in class java.awt.image.BufferStrategy
      Since:
      1.6
      See Also:
      Window.createBufferStrategy(int), Canvas.createBufferStrategy(int), Window.getBufferStrategy(), Canvas.getBufferStrategy()
      Overridden member indicator getCapabilities Reveal DetailHide Detail
      BufferCapabilities getCapabilities()
      Returns the BufferCapabilities for this BufferStrategy.
      public BufferCapabilities getCapabilities()
      Description copied from class: java.awt.image.BufferStrategy
      Returns the BufferCapabilities for this BufferStrategy.
      Specified by:
      getCapabilities in class java.awt.image.BufferStrategy
      Returns:
      the buffering capabilities of this strategy
      Overridden member indicator getDrawGraphics Reveal DetailHide Detail
      Graphics getDrawGraphics()
      Creates a graphics context for the drawing buffer.
      public Graphics getDrawGraphics()
      Description copied from class: java.awt.image.BufferStrategy
      Creates a graphics context for the drawing buffer. This method may not be synchronized for performance reasons; use of this method by multiple threads should be handled at the application level. Disposal of the graphics object obtained must be handled by the application.
      Specified by:
      getDrawGraphics in class java.awt.image.BufferStrategy
      Returns:
      the draw graphics
      Ordinary member indicator revalidate Reveal DetailHide Detail
      protected void revalidate()
      Restore the drawing buffer if it has been lost
      protected void revalidate()
      Restore the drawing buffer if it has been lost
      Overridden member indicator show Reveal DetailHide Detail
      void show()
      Makes the next available buffer visible.
      public void show()
      Makes the next available buffer visible.
      Specified by:
      show in class java.awt.image.BufferStrategy
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
This document was created by Dulcet from the OpenJDK sources. Copyright © 1993, 2012 Oracle and/or its affiliates. All rights reserved.

SourceForge