|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
java.lang.Objectjavax.swing.RepaintManager
public class RepaintManager
이 클래스는 재페인트 요구를 관리해, 컴퍼넌트 트리의 멤버에 대한 복수의 요구를 1 회의 재페인트에 정리하는 것 등에 의해, 재페인트의 회수를 최소한으로 억제합니다.
1.6 이후,RepaintManager
는, Swing 의 톱 레벨 컴퍼넌트 (JApplet
,JWindow
,JFrame
, 및 JDialog
)의 재페인트 요구를 처리하게 되었습니다. 이러한 컴퍼넌트로 repaint
를 호출하면(자), 적절한 addDirtyRegion
메소드가 불려 갑니다.
생성자 의 개요 | |
---|---|
RepaintManager ()
새로운 RepaintManager 의 인스턴스를 생성합니다. |
메소드의 개요 | |
---|---|
void |
addDirtyRegion (Applet applet,
int x,
int y,
int w,
int h)
재페인트 할 필요가 있는 Component 의 리스트에 applet 를 추가합니다. |
void |
addDirtyRegion (JComponent c,
int x,
int y,
int w,
int h)
재표시되는 컴퍼넌트의 리스트에 컴퍼넌트를 추가합니다. |
void |
addDirtyRegion (Window window,
int x,
int y,
int w,
int h)
재페인트 할 필요가 있는 Component 의 리스트에 window 를 추가합니다. |
void |
addInvalidComponent (JComponent invalidComponent)
레이아웃의 필요에 따라서 컴퍼넌트를 마크 해, 컴퍼넌트의 최초의 isValidateRoot()의 상위 객체를 검증하는 이벤트발송쓰레드를 위해서(때문에) 실행 가능한 컴퍼넌트를 기다리는 행렬에 넣습니다. |
static RepaintManager |
currentManager (Component c)
Component 를 지정해, 호출측 thread의 RepaintManager 를 돌려줍니다. |
static RepaintManager |
currentManager (JComponent c)
JComponent 를 지정해, 호출측 thread의 RepaintManager 를 돌려줍니다. |
Rectangle |
getDirtyRegion (JComponent aComponent)
컴퍼넌트의 현재의 더티 리젼을 돌려줍니다. |
Dimension |
getDoubleBufferMaximumSize ()
최대의 더블 버퍼 사이즈를 돌려줍니다. |
Image |
getOffscreenBuffer (Component c,
int proposedWidth,
int proposedHeight)
더블 버퍼로서 컴퍼넌트 c 와 함께 사용되는 오프 스크린 버퍼를 돌려줍니다. |
Image |
getVolatileOffscreenBuffer (Component c,
int proposedWidth,
int proposedHeight)
더블 버퍼로서 지정의 컴퍼넌트 c 와 함께 사용되는 volatile 의 오프 스크린 버퍼를 돌려줍니다. |
boolean |
isCompletelyDirty (JComponent aComponent)
다음의 paintDirtyRegions()로 aComponent 가 완전하게 페인트 되는 경우에 true 를 돌려주는 편리한 메소드입니다. |
boolean |
isDoubleBufferingEnabled ()
이 RepaintManager 에 대해서 더블 버퍼링을 하는 경우에 true 를 돌려줍니다. |
void |
markCompletelyClean (JComponent aComponent)
완전하게 깨끗한 컴퍼넌트를 마크 합니다. |
void |
markCompletelyDirty (JComponent aComponent)
완전하게 더티인 컴퍼넌트를 마크 합니다. |
void |
paintDirtyRegions ()
더티로서 마크 된 컴퍼넌트를 모두 그립니다. |
void |
removeInvalidComponent (JComponent component)
무효인 컴퍼넌트의 리스트로부터 컴퍼넌트를 삭제합니다. |
static void |
setCurrentManager (RepaintManager aRepaintManager)
호출측 thread로 사용되는 RepaintManager 를 설정합니다. |
void |
setDoubleBufferingEnabled (boolean aFlag)
이 RepaintManager 에서의 더블 버퍼링을 유효 또는 무효로 합니다. |
void |
setDoubleBufferMaximumSize (Dimension d)
최대의 더블 버퍼 사이즈를 설정합니다. |
String |
toString ()
이 객체의 프로퍼티을 표시 및 식별하는 캐릭터 라인을 돌려줍니다. |
void |
validateInvalidComponents ()
무효로서 마크 된 컴퍼넌트를 모두 검증합니다. |
클래스 java.lang. Object 로부터 상속된 메소드 |
---|
clone , equals , finalize , getClass , hashCode , notify , notifyAll , wait , wait , wait |
생성자 의 상세 |
---|
public RepaintManager()
메소드의 상세 |
---|
public static RepaintManager currentManager(Component c)
c
- Component. 디폴트의 구현에서는 사용되지 않지만, 오버라이드(override)판으로 사용하면(자)
다른 RepaintManager 를 돌려준다
가능성이 있다
public static RepaintManager currentManager(JComponent c)
주:이 메소드는, 구버젼의 Swing 라이브러리의 바이너리와의 하위 호환성을 위해서(때문에) 제공됩니다. 이 메소드는, 단지 currentManager(Component)
에 의해 반환되는 결과를 돌려줍니다.
c
- JComponent. 사용되지 않는다
public static void setCurrentManager(RepaintManager aRepaintManager)
aRepaintManager
- 사용하는 RepaintManager 객체public void addInvalidComponent(JComponent invalidComponent)
JComponent.isValidateRoot()
,
removeInvalidComponent(javax.swing.JComponent)
public void removeInvalidComponent(JComponent component)
addInvalidComponent(javax.swing.JComponent)
public void addDirtyRegion(JComponent c, int x, int y, int w, int h)
c
- 재페인트 하는 컴퍼넌트. null 의 경우는 아무것도 행해지지 않는x
- 재페인트 하는 영역의 X 좌표y
- 재페인트 하는 영역의 Y 좌표w
- 재페인트 하는 영역의 폭h
- 재페인트 하는 영역의 높이JComponent.repaint(long, int, int, int, int)
public void addDirtyRegion(Window window, int x, int y, int w, int h)
Component
의 리스트에 window
를 추가합니다.
window
- 재페인트 하는 윈도우. null 의 경우는 아무것도 행해지지 않는x
- 재페인트 하는 영역의 X 좌표y
- 재페인트 하는 영역의 Y 좌표w
- 재페인트 하는 영역의 폭h
- 재페인트 하는 영역의 높이JFrame.repaint(long, int, int, int, int)
,
JWindow.repaint(long, int, int, int, int)
,
JDialog.repaint(long, int, int, int, int)
public void addDirtyRegion(Applet applet, int x, int y, int w, int h)
Component
의 리스트에 applet
를 추가합니다.
applet
- 재페인트 하는 애플릿. null 의 경우는 아무것도 행해지지 않는x
- 재페인트 하는 영역의 X 좌표y
- 재페인트 하는 영역의 Y 좌표w
- 재페인트 하는 영역의 폭h
- 재페인트 하는 영역의 높이JApplet.repaint(long, int, int, int, int)
public Rectangle getDirtyRegion(JComponent aComponent)
public void markCompletelyDirty(JComponent aComponent)
public void markCompletelyClean(JComponent aComponent)
public boolean isCompletelyDirty(JComponent aComponent)
public void validateInvalidComponents()
addInvalidComponent(javax.swing.JComponent)
public void paintDirtyRegions()
addDirtyRegion(javax.swing.JComponent, int, int, int, int)
public String toString()
Object
내의 toString
public Image getOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)
c
와 함께 사용되는 오프 스크린 버퍼를 돌려줍니다. 디폴트에서는, RepaintManager 마다 더블 버퍼가 있습니다. 버퍼는,(proposedWidth, proposedHeight)
보다 작은 경우가 있습니다. 이것이 발생하는 것은, 수취하는 측의 재페인트 매니저에 대해서 최대의 더블 버퍼 사이즈가 설정되었을 경우입니다.
public Image getVolatileOffscreenBuffer(Component c, int proposedWidth, int proposedHeight)
c
와 함께 사용되는 volatile 의 오프 스크린 버퍼를 돌려줍니다. 반환되는 이미지는 VolatileImage 의 인스턴스이며, VolatileImage 객체를 인스턴스화할 수 없었던 경우는 null 가 돌려주어집니다. 버퍼는,(proposedWidth, proposedHeight)
보다 작은 경우가 있습니다. 이것이 발생하는 것은, 수취하는 측의 재페인트 매니저에 대해서 최대의 더블 버퍼 사이즈가 설정되었을 경우입니다.
VolatileImage
public void setDoubleBufferMaximumSize(Dimension d)
public Dimension getDoubleBufferMaximumSize()
public void setDoubleBufferingEnabled(boolean aFlag)
aFlag
- 더블 버퍼링을 유효하게 하는 경우는 trueisDoubleBufferingEnabled()
public boolean isDoubleBufferingEnabled()
false
로 설정됩니다. 네이티브인 더블 버퍼링이 지원되어 있지 않은 플랫폼에서는, 디폴트 값가 true
로 설정됩니다.
|
JavaTM Platform Standard Ed. 6 |
|||||||||
전의 클래스 다음의 클래스 | 프레임 있어 프레임 없음 | |||||||||
개요: 상자 | 필드 | 생성자 | 메소드 | 상세: 필드 | 생성자 | 메소드 |
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy 도 참조해 주세요.