|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.image.BufferStrategy | +--java.awt.Component.FlipBufferStrategy
ÄÄÆÛ³ÍÆ®ÀÇ ¹öÆÛ ¹ÝÀü¿ë ³»ºÎ Ŭ·¡½º. ÄÄÆÛ³ÍÆ®´Â Canvas
¶Ç´Â Window
ÀÇ ¾î´À ÂÊÀÎÁöÀÏ Çʿ䰡 ÀÖ½À´Ï´Ù.
Canvas
,
Window
,
BufferStrategy
ÇʵåÀÇ °³¿ä | |
protected BufferCapabilities |
caps
¹öÆÛ ±â´É |
protected Image |
drawBuffer
Ç¥Çö ¹öÆÛ |
protected VolatileImage |
drawVBuffer
volatile À̹ÌÁö·Î¼ÀÇ Ç¥Çö ¹öÆÛ |
protected int |
numBuffers
¹öÆÛ¼ö |
protected boolean |
validatedContents
Ç¥Çö ¹öÆÛ°¡ ¼Ò½ÇÇÑ »óÅ·κÎÅÍ ÃÖ±Ù º¹¿øµÇ¾ú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ ³ªÅ¸³À´Ï´Ù. |
»ý¼ºÀÚÀÇ °³¿ä | |
protected |
Component.FlipBufferStrategy (int numBuffers,
BufferCapabilities caps)
ÄÄÆÛ³ÍÆ®ÀÇ ¹öÆÛ ¹ÝÀü ¹æÄ§À» »õ·Ó°Ô »ý¼ºÇÕ´Ï´Ù. |
¸Þ¼ÒµåÀÇ °³¿ä | |
boolean |
contentsLost ()
getDrawGraphics ¿¡ÀÇ ¸¶Áö¸· È£ÃâÀ» À§Çؼ(¶§¹®¿¡) Ç¥Çö ¹öÆÛ°¡ ¼Ò½ÇÇß´ÂÁö ¾î¶°Çß´ÂÁö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
boolean |
contentsRestored ()
Ç¥Çö ¹öÆÛ°¡ ¼Ò½Ç »óÅ·κÎÅÍ ÃÖ±Ù º¹¿øµÇ¾î µðÆúÆ®ÀÇ ¹é±×¶ó¿îµå Ä®¶ó (Èò»ö)¿¡ ÀçÃʱâȵǾú´ÂÁö ¾î¶°Çß´ÂÁö¸¦ µ¹·ÁÁÝ´Ï´Ù. |
protected void |
createBuffers (int numBuffers,
BufferCapabilities caps)
1 °³ÀÌ»óÀÇ º¹ÇÕ ¹ÝÀü ¹öÆÛ°¡ ÁöÁ¤µÈ ¿ë·®À¸·Î »ý¼ºÇÕ´Ï´Ù. |
protected void |
destroyBuffers ()
ÀÌ ¿ÀºêÁ§Æ®·Î »ý¼ºµÈ ¹öÆÛ¸¦ ÆÄ±âÇÕ´Ï´Ù. |
protected void |
flip (BufferCapabilities.FlipContents flipAction)
ºñµð¿À Æ÷ÀÎÅÍÀÇ Ä«ÇÇ ¶Ç´Â À̵¿À¸·Î, ¹é ¹öÆÛ¿Í ÇÁ·±Æ® ¹öÆÛÀÇ ³»¿ëÀ» ¹ÝÀüÇÕ´Ï´Ù. |
protected Image |
getBackBuffer ()
|
BufferCapabilities |
getCapabilities ()
|
Graphics |
getDrawGraphics ()
|
protected void |
revalidate ()
Ç¥Çö ¹öÆÛ°¡ ¼Ò½ÇÇϰí ÀÖ´Â °æ¿ì´Â º¹¿øÇÕ´Ï´Ù. |
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
°¡ ¾Æ´Ñ °æ¿ìjava.awt.image.BufferCapabilities#isPageFlipping
protected Image getBackBuffer()
IllegalStateException
- ¹öÆÛ°¡ ¾ÆÁ÷ žÁö ¾ÊÀ½¼ºÀÇ °æ¿ìprotected void flip(BufferCapabilities.FlipContents flipAction)
flipAction
- ¹é ¹öÆÛÀÇ ³»¿ëÀÇ ¹ÝÀü ¾×¼ÇÀ» ±â¼úÇÏ´Â Á¤¼öÄ¡. BufferCapabilities.FlipContents
ÇÁ·ÎÆÛƼÀÇ °ªÀÇ ¾î¶² °ÍÀΰ¡
IllegalStateException
- ¹öÆÛ°¡ ¾ÆÁ÷ žÁö ¾ÊÀ½¼ºÀÇ °æ¿ìjava.awt.image.BufferCapabilities#FlipContents
protected void destroyBuffers()
public BufferCapabilities getCapabilities()
BufferStrategy
³»ÀÇ getCapabilities
public Graphics getDrawGraphics()
BufferStrategy
³»ÀÇ getDrawGraphics
protected void revalidate()
public boolean contentsLost()
BufferStrategy
ÀÇ ±â¼ú: getDrawGraphics
¿¡ÀÇ ¸¶Áö¸· È£ÃâÀ» À§Çؼ(¶§¹®¿¡) Ç¥Çö ¹öÆÛ°¡ ¼Ò½ÇÇß´ÂÁö ¾î¶°Çß´ÂÁö¸¦ µ¹·ÁÁÝ´Ï´Ù. ¹öÆÛ ½ºÆ®·¡ÅÍÁö³»ÀÇ ¹öÆÛ´Â Åë»ó,VolatileImage
ÇüÀ̱â (À§ÇØ)¶§¹®¿¡ ¼Ò½ÇÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. ¼Ò½Ç ¹öÆÛ¿¡ ´ëÇØ¼´Â VolatileImage
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
BufferStrategy
³»ÀÇ contentsLost
getDrawGraphics
È£ÃâÇØ ÀÌÈÄ ¼Ò½ÇÇϰí ÀÖÀ»Áö ¾î¶³ÁöVolatileImage
public boolean contentsRestored()
BufferStrategy
ÀÇ ±â¼ú: VolatileImage
ÇüÀ̱â (À§ÇØ)¶§¹®¿¡ ¼Ò½ÇÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. getDrawGraphics
¿¡ÀÇ ¸¶Áö¸· È£ÃâÀ» À§Çؼ(¶§¹®¿¡) ¼Ò½Ç »óÅ¿¡ ÀÖ´ø Ç¥¸éÀÌ ÃÖ±Ù º¹¿øµÇ¾úÀ» °æ¿ì´Â Àçpaint°¡ ÇÊ¿äÇÑ Àϵµ ÀÖ½À´Ï´Ù. ¼Ò½Ç ¹öÆÛ¿¡ ´ëÇØ¼´Â VolatileImage
¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä.
BufferStrategy
³»ÀÇ contentsRestored
VolatileImage
public void show()
BufferStrategy
³»ÀÇ show
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.