|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Object java.awt.image.BufferStrategy java.awt.Component.FlipBufferStrategy
protected class 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
°¡ ¾Æ´Ñ °æ¿ì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
³»ÀÇ 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
¿¡
ÀÇ ¸¶Áö¸· È£ÃâÀ» À§Çؼ ¼Ò½Ç »óÅ¿¡ ÀÖ´ø Ç¥¸éÀÌ ÃÖ±Ù º¹¿øµÇ¾úÀ» °æ¿ì´Â ÀçÆäÀÎÆ®°¡ ÇÊ¿äÇÑ Àϵµ ÀÖ½À´Ï´Ù. ¼Ò½Ç ¹öÆÛ¿¡ ´ëÇؼ´Â VolatileImage
¸¦ ÂüÁ¶ÇϽʽÿÀ.
BufferStrategy
³»ÀÇ contentsRestored
VolatileImage
public void show()
BufferStrategy
³»ÀÇ show
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.