|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
java.lang.Objectjava.awt.image.BufferStrategy
java.awt.Component.FlipBufferStrategy
protected class Component.FlipBufferStrategy
컴퍼넌트의 버퍼 반전용 내부 클래스. 컴퍼넌트는 Canvas
또는 Window
의 어느 쪽인지일 필요가 있습니다.
Canvas
,
Window
,
BufferStrategy
필드의 개요 | |
---|---|
protected BufferCapabilities |
caps
버퍼 기능 |
protected Image |
drawBuffer
draw 버퍼 |
protected VolatileImage |
drawVBuffer
volatile 이미지로서의 draw 버퍼 |
protected int |
numBuffers
버퍼수 |
protected boolean |
validatedContents
draw 버퍼가 소실한 상태로부터 최근 복원되었는지의 여부를 나타냅니다. |
생성자 의 개요 | |
---|---|
protected |
Component.FlipBufferStrategy (int numBuffers,
BufferCapabilities caps)
컴퍼넌트의 버퍼 반전 방침을 새롭게 생성합니다. |
메소드의 개요 | |
---|---|
boolean |
contentsLost ()
getDrawGraphics 에의 마지막 호출을 위해서(때문에) draw 버퍼가 소실했는지의 여부를 돌려줍니다. |
boolean |
contentsRestored ()
draw 버퍼가 소실 상태로부터 최근 복원되어 디폴트의 백그라운드 칼라 (흰색)에 재초기화되었는지의 여부를 돌려줍니다. |
protected void |
createBuffers (int numBuffers,
BufferCapabilities caps)
1 개이상의 복합 반전 버퍼가 지정된 용량으로 생성합니다. |
protected void |
destroyBuffers ()
이 객체로 생성된 버퍼를 파기합니다. |
void |
dispose ()
이 BufferStrategy 가 현재 사용하고 있는 system resource를 해제해, 관련하는 Component 로부터 삭제합니다. |
protected void |
flip (BufferCapabilities.FlipContents flipAction)
비디오 포인터의 카피 또는 이동으로, 백 버퍼와 프런트 버퍼의 내용을 반전합니다. |
protected Image |
getBackBuffer ()
|
BufferCapabilities |
getCapabilities ()
이 BufferStrategy 의 BufferCapabilities 를 돌려줍니다. |
Graphics |
getDrawGraphics ()
draw 버퍼의 그래픽스 문맥을 작성합니다. |
protected void |
revalidate ()
draw 버퍼가 소실하고 있는 경우는 복원합니다. |
void |
show ()
다음의 이용 가능한 버퍼를 Blit 또는 반전으로 가시 상태로 합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait |
필드의 상세 |
---|
protected int numBuffers
protected BufferCapabilities caps
protected Image drawBuffer
protected VolatileImage drawVBuffer
protected boolean validatedContents
생성자 의 상세 |
---|
protected Component.FlipBufferStrategy(int numBuffers, BufferCapabilities caps) throws AWTException
Canvas
또는 Window
의 어느 쪽인지일 필요가 있습니다.
numBuffers
- 버퍼수caps
- 버퍼의 용량
AWTException
- 제공되는 기능이 지원되지 않는가
또는 대응하지 않는 경우
ClassCastException
- 컴퍼넌트가 canvas 또는
window 가 어느 쪽도 아닌 경우Canvas
,
Window
메소드의 상세 |
---|
protected void createBuffers(int numBuffers, BufferCapabilities caps) throws AWTException
numBuffers
- 생성하는 버퍼수.
2 이상의 값을 지정caps
- 버퍼의 용량.
BufferCapabilities.isPageFlipping
는
true
가 아니면 안된다
- 예외:
AWTException
- 제공되는 기능이 지원되지 않는가
또는 대응하지 않는 경우
IllegalStateException
- 컴퍼넌트가 피어를 가지지 않는 경우
IllegalArgumentException
- numBuffers 가 1 이하의 경우,
또는 BufferCapabilities.isPageFlipping
가
true
가 아닌 경우- 관련 항목:
BufferCapabilities.isPageFlipping()
protected Image getBackBuffer()
IllegalStateException
- 버퍼가
아직 태어나지 않음성의 경우protected void flip(BufferCapabilities.FlipContents flipAction)
flipAction
- 백 버퍼의 내용의
반전 액션을 기술하는 정수치. 이것은
BufferCapabilities.FlipContents
프로퍼티의
값의 어떤 것인가
IllegalStateException
- 버퍼가
아직 태어나지 않음성의 경우BufferCapabilities.getFlipContents()
protected void destroyBuffers()
public BufferCapabilities getCapabilities()
BufferStrategy
의 기술:BufferStrategy
의 BufferCapabilities
를 돌려줍니다.
BufferStrategy
내의 getCapabilities
public Graphics getDrawGraphics()
BufferStrategy
의 기술:
BufferStrategy
내의 getDrawGraphics
protected void revalidate()
public boolean contentsLost()
BufferStrategy
의 기술:getDrawGraphics
에의 마지막 호출을 위해서(때문에) draw 버퍼가 소실했는지의 여부를 돌려줍니다. 버퍼 스트래터지내의 버퍼는 일반적으로,VolatileImage
형이기 (위해)때문에 소실하는 일이 있습니다. 소실 버퍼에 대해서는,VolatileImage
를 참조해 주세요.
- 정의:
- 클래스
BufferStrategy
내의 contentsLost
- 반환값:
- draw 버퍼가 마지막
getDrawGraphics
호출해 이후 소실하고 있을지 어떨지
- 관련 항목:
VolatileImage
public boolean contentsRestored()
BufferStrategy
의 기술:VolatileImage
형이기 (위해)때문에 소실하는 일이 있습니다. getDrawGraphics
에의 마지막 호출을 위해서(때문에) 소실 상태에 있던 표면이 최근 복원되었을 경우는, 재페인트가 필요한 일도 있습니다. 소실 버퍼에 대해서는,VolatileImage
를 참조해 주세요.
BufferStrategy
내의 contentsRestored
VolatileImage
public void show()
BufferStrategy
내의 show
public void dispose()
BufferStrategy
가 현재 사용하고 있는 system resource를 해제해, 관련하는 Component 로부터 삭제합니다. 이 메소드를 호출한 뒤,getBufferStrategy
는 null 를 돌려줍니다. BufferStrategy
를 파기한 후에 재차 사용하려고 하면(자), 정의되어 있지 않은 동작이 발생합니다.
BufferStrategy
내의 dispose
Component.createBufferStrategy(int)
,
Component.getBufferStrategy()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
앞의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세 : 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.