|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.util.EventObject
java.awt.AWTEvent
java.awt.event.ComponentEvent
java.awt.event.PaintEvent
public class PaintEvent
ÄÄÆÛ³ÍÆ® ·¹º§ÀÇ ·»´õ¸µ À̺¥Æ®ÀÔ´Ï´Ù. À̰ÍÀº Ư¼öÇÑ ÇüÅÂÀÇ À̺¥Æ®À̸ç, À̺¥Æ® Å¥·ÎºÎÅÍ º¸³»Áö´Â °Í ¿ÜÀÇ À̺¥Æ®¿Í ÇÔ²², paint/update ¸Þ¼µåÀÇ È£ÃâÀ» È®½ÇÈ÷ Á÷·ÄÈÇϱâ À§Çؼ »ç¿ëµË´Ï´Ù. ÀÌ À̺¥Æ®´Â Event Listener ¸ðµ¨°ú ÇÔ²² »ç¿ëÇϵµ·Ï´Â ¼³°èµÇÁö ¾Ê½À´Ï´Ù. Áï, ¿Ã¹Ù¸£°Ô Ç¥½ÃÇϱâ À§Çؼ´Â ÇÁ·Î±×·¥À¸·Î paint/update ¸Þ¼µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù.
ÇÊµå °³¿ä | |
---|---|
static int |
PAINT
·»´õ¸µ À̺¥Æ®ÇüÀÔ´Ï´Ù. |
static int |
PAINT_FIRST
·»´õ¸µ À̺¥Æ® ½Äº°ÀÚÀÇ ¹üÀ§¸¦ ³ªÅ¸³»´Â ÃÖÃÊÀÇ ¹øÈ£ÀÔ´Ï´Ù. |
static int |
PAINT_LAST
·»´õ¸µ À̺¥Æ® ½Äº°ÀÚÀÇ ¹üÀ§¸¦ ³ªÅ¸³»´Â ¸¶Áö¸· ¹øÈ£ÀÔ´Ï´Ù. |
static int |
UPDATE
Àç·»´õ¸µ À̺¥Æ®ÇüÀÔ´Ï´Ù. |
Ŭ·¡½º java.awt.event. ComponentEvent ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
COMPONENT_FIRST,
COMPONENT_HIDDEN,
COMPONENT_LAST,
COMPONENT_MOVED,
COMPONENT_RESIZED,
COMPONENT_SHOWN |
Ŭ·¡½º java.util. EventObject ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
source |
»ý¼ºÀÚ °³¿ä | |
---|---|
PaintEvent (Component source,
int id,
Rectangle updateRect)
ÁöÁ¤µÈ ¹ß»ý¿øÀÇ ÄÄÆÛ³ÍÆ®¿Í ÇüÅ·ΠPaintEvent °´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
Rectangle |
getUpdateRect ()
ÀÌ À̺¥Æ®¿¡ ÀÀ´äÇØ Àç·»´õ¸µ µÉ Çʿ䰡 ÀÖ´Â ¿µ¿ªÀ» ³ªÅ¸³»´Â ±¸ÇüÀ» ¸®ÅÏÇÕ´Ï´Ù. |
String |
paramString ()
ÀÌ À̺¥Æ®¸¦ ƯÁ¤ÇÏ´Â ÆÄ¶ó¹ÌÅÍÀÇ Ä³¸¯ÅÍ ¶óÀÎÀ» ¸®ÅÏÇÕ´Ï´Ù. |
void |
setUpdateRect (Rectangle updateRect)
ÀÌ À̺¥Æ®¿¡ ÀÀ´äÇØ Àç·»´õ¸µ µÉ Çʿ䰡 ÀÖ´Â ¿µ¿ªÀ» ³ªÅ¸³»´Â ±¸ÇüÀ» ¼³Á¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.awt.event. ComponentEvent ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
getComponent |
Ŭ·¡½º java.awt. AWTEvent ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
consume,
getID,
isConsumed,
setSource,
toString |
Ŭ·¡½º java.util. EventObject ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
getSource |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ÇʵåÀÇ »ó¼¼ |
---|
public static final int PAINT_FIRST
public static final int PAINT_LAST
public static final int PAINT
public static final int UPDATE
»ý¼ºÀÚ »ó¼¼ |
---|
public PaintEvent(Component source, int id, Rectangle updateRect)
PaintEvent
°´Ã¼¸¦ ±¸ÃàÇÕ´Ï´Ù.
¹«È¿ÀÎ id
¸¦ °Ç³×ÁÖ¸é, ƯÁ¤ÇÒ ¼ö ¾ø´Â µ¿ÀÛÀÌ ¹ß»ýÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â source
°¡ null
ÀÎ °æ¿ì¿¡ IllegalArgumentException
À»
Throw ÇÕ´Ï´Ù.
source
- À̺¥Æ®ÀÇ ¹ß»ý¿ø°´Ã¼id
- À̺¥Æ®ÀÇ ÇüÅÂupdateRect
- Àç·»´õ¸µ°¡ ÇÊ¿äÇÑ ±¸ÇüÀÇ ¿µ¿ª
IllegalArgumentException
- source
°¡ nullÀÎ °æ¿ì¸Þ¼µåÀÇ »ó¼¼ |
---|
public Rectangle getUpdateRect()
public void setUpdateRect(Rectangle updateRect)
updateRect
- Àç·»´õ¸µ°¡ ÇÊ¿äÇÑ ±¸ÇüÀÇ ¿µ¿ªpublic String paramString()
ComponentEvent
񃬣:
ComponentEvent
³»ÀÇ paramString
|
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 µµ ÂüÁ¶ÇϽʽÿÀ.