|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
public interface PaintContext
PaintContext
ÀÎÅÍÆäÀ̽º´Â Graphics2D
¿¡¼ÀÇ ÀüºÎ Ä¥ÇØ Á¶ÀÛ¿ë ¶Ç´Â stroke Á¶ÀÛ¿ëÀ¸·Î¼ µð¹ÙÀ̽º °ø°£¿¡¼ Ä÷¯ ÆÐÅÏÀ» »ý¼ºÇϱâ À§ÇÑ,
ĸ½¶È ¹× ÃÖÀûÈÇÑ È¯°æÀ» Á¤ÀÇÇÕ´Ï´Ù. PaintContext
´Â
ColorModel
¿¡ °ü·ÃÇÑ Raster
Çü½Ä¿¡¼
Graphics2D
Á¶ÀÛ¿¡ ÇÊ¿äÇÑ »öÀ» Á¦°øÇÕ´Ï´Ù. PaintContext
´Â
ƯÁ¤ÀÇ ÆäÀÎÆ® Á¶ÀÛ »óŸ¦ À¯ÁöÇÕ´Ï´Ù. multi-thread ȯ°æ¿¡¼´Â 1°³
Paint
°´Ã¼¿¡ ´ëÇØ¼ µ¿½Ã¿¡ º¹¼öÀÇ ÄÁÅØ½ºÆ®°¡ Á¸ÀçÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
Paint
¸Þ¼µå °³¿ä | |
---|---|
void |
dispose ()
Á¶ÀÛ¿¡ ÇÒ´çÇÒ ¼ö ÀÖ´Â ÀÚ¿øÀ» ÇØ¹æÇÕ´Ï´Ù. |
ColorModel |
getColorModel ()
Ãâ·ÂÀÇ ColorModel À»
¸®ÅÏÇÕ´Ï´Ù. |
Raster |
getRaster (int x,
int y,
int w,
int h)
±×·¡ÇÈ Á¶ÀÛ¿ëÀ¸·Î »ý¼ºµÈ »öÀ» Æ÷ÇÔÇÏ´Â Raster ¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
¸Þ¼µåÀÇ »ó¼¼ |
---|
void dispose()
ColorModel getColorModel()
ColorModel
À»
¸®ÅÏÇÕ´Ï´Ù. ÀÌ ColorModel
´Â
Paint
createContext
¸Þ¼µå·Î ÁöÁ¤µÈ ÈùÆ®¿Í´Â ´Ù¸¥ °æ¿ì°¡ ÀÖ½À´Ï´Ù. ¸ðµç PaintContext
°´Ã¼°¡ ÀÓÀÇÀÇ ColorModel
·Î Ä÷¯ ÆÐÅÏÀ» »ý¼ºÇÒ ¼ö ÀÖ´Â °ÍÀº ¾Æ´Õ´Ï´Ù.
ColorModel
Raster getRaster(int x, int y, int w, int h)
Raster
¸¦ ¸®ÅÏÇÕ´Ï´Ù.
x
- »öÀÌ »ý¼ºµÇ´Â µð¹ÙÀ̽º °ø°£¿¡¼ÀÇ ¿µ¿ªÀÇ x ÁÂÇ¥y
- »öÀÌ »ý¼ºµÇ´Â µð¹ÙÀ̽º °ø°£¿¡¼ÀÇ ¿µ¿ªÀÇ y ÁÂÇ¥w
- µð¹ÙÀ̽º °ø°£¿¡¼ÀÇ ¿µ¿ªÀÇ Æøh
- µð¹ÙÀ̽º °ø°£¿¡¼ÀÇ ¿µ¿ªÀÇ ³ôÀÌ
Raster
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | »ý¼ºÀÚ | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.