|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.awt.image.BufferStrategy
java.awt.Component.BltBufferStrategy
protected class Component.BltBufferStrategy
用於將螢幕外的畫面以位圖傳輸方式傳輸到一個元件的內部類別。
| 欄位摘要 | |
|---|---|
protected VolatileImage[] |
backBuffers
後台緩衝區 |
protected BufferCapabilities |
caps
緩衝區能力 |
protected int |
height
|
protected boolean |
validatedContents
繪製緩衝區最近是否已經從丟失狀態中恢復。 |
protected int |
width
後台緩衝區的大小 |
| 建構子摘要 | |
|---|---|
protected |
Component.BltBufferStrategy(int numBuffers,
BufferCapabilities caps)
圍繞元件創建一個新的 blt 緩衝區策略 |
| 方法摘要 | |
|---|---|
boolean |
contentsLost()
返回上次調用 getDrawGraphics 後繪製緩衝區是否丟失。 |
boolean |
contentsRestored()
返回繪製緩衝區最近是否從丟失狀態恢復,並重新初始化為預設背景色(白色)。 |
protected void |
createBackBuffers(int numBuffers)
創建後台緩衝區 |
void |
dispose()
釋放當前由此 BufferStrategy 使用的系統資源,並從關聯 Component 中移除它們。 |
BufferCapabilities |
getCapabilities()
返回此 BufferStrategy 的 BufferCapabilities。 |
Graphics |
getDrawGraphics()
創建用於繪製緩衝區的圖形上下文。 |
protected void |
revalidate()
如果繪製緩衝區已經丟失,則恢復它 |
void |
show()
使下一個有效緩衝區可見。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 欄位詳細資訊 |
|---|
protected BufferCapabilities caps
protected VolatileImage[] backBuffers
protected boolean validatedContents
protected int width
protected int height
| 建構子詳細資訊 |
|---|
protected Component.BltBufferStrategy(int numBuffers,
BufferCapabilities caps)
numBuffers - 要創建的緩衝區數,包括前台緩衝區caps - 緩衝區能力| 方法詳細資訊 |
|---|
public void dispose()
BufferStrategy 使用的系統資源,並從關聯 Component 中移除它們。在調用此方法之後,getBufferStrategy 將返回 null。試圖在釋放 BufferStrategy 後使用它將導致不確定的行為。
BufferStrategy 中的 disposeComponent.createBufferStrategy(int),
Component.getBufferStrategy()protected void createBackBuffers(int numBuffers)
public BufferCapabilities getCapabilities()
BufferStrategy 複製的描述BufferStrategy 的 BufferCapabilities。
BufferStrategy 中的 getCapabilitiespublic Graphics getDrawGraphics()
BufferStrategy 複製的描述
BufferStrategy 中的 getDrawGraphicspublic void show()
BufferStrategy 中的 showprotected void revalidate()
public boolean contentsLost()
BufferStrategy 複製的描述getDrawGraphics 後繪製緩衝區是否丟失。由於使用緩衝區策略的緩衝區通常是 VolatileImage 型別的,因此它們有可能丟失。有關對丟失緩衝區的討論,請參閱 VolatileImage。
BufferStrategy 中的 contentsLostgetDrawGraphics 之後,繪製緩衝區是否丟失VolatileImagepublic boolean contentsRestored()
BufferStrategy 複製的描述VolatileImage 型別的,因此它們有可能丟失。如果上次調用 getDrawGraphics 後,緩衝區最近已從丟失狀態恢復,則緩衝區可能要求重新繪製。有關對丟失緩衝區的討論,請參閱 VolatileImage。
BufferStrategy 中的 contentsRestoredVolatileImage
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。