JavaTM 2 Platform
Standard Ed. 5.0

javax.swing
ÀÎÅÍÆäÀ̽º Icon

¾Ë·ÁÁø ±¸Çö Ŭ·¡½º ¸ñ·Ï:
IconUIResource, ImageIcon, MetalCheckBoxIcon, MetalComboBoxIcon, MetalIconFactory.FileIcon16, MetalIconFactory.FolderIcon16, MetalIconFactory.PaletteCloseIcon, MetalIconFactory.TreeControlIcon, MetalIconFactory.TreeFolderIcon, MetalIconFactory.TreeLeafIcon

public interface Icon

ÀϹÝÀûÀ¸·Î ÄÄÆÛ³ÍÆ®¸¦ Àå½ÄÇϱâ À§Çؼ­ »ç¿ëÇÏ´Â °íÁ¤ »çÀÌÁîÀÇ ¼ÒÇü À̹ÌÁöÀÔ´Ï´Ù.

°ü·Ã Ç׸ñ:
ImageIcon

¸Þ¼­µå °³¿ä
 int getIconHeight ()
          ¾ÆÀÌÄÜÀÇ ³ôÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getIconWidth ()
          ¾ÆÀÌÄÜÀÇ ³ÐÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù.
 void paintIcon (Component  c, Graphics  g, int x, int y)
          ÁöÁ¤µÈ À§Ä¡¿¡ ÀÚ½Ä ¾ÆÀÌÄÜÀ» ·»´õ¸µ ÇÕ´Ï´Ù.
 

¸Þ¼­µåÀÇ »ó¼¼

paintIcon

void paintIcon(Component  c,
               Graphics  g,
               int x,
               int y)
ÁöÁ¤µÈ À§Ä¡¿¡ ÀÚ½Ä ¾ÆÀÌÄÜÀ» ·»´õ¸µ ÇÕ´Ï´Ù. Icon ±¸ÇöÀº ÄÄÆÛ³ÍÆ® Àμö¸¦ »ç¿ëÇØ, foreground Ä÷¯ ¶Ç´Â ¹é±×¶ó¿îµå Ä÷¯µîÀ» ·»´õ¸µ Çϴµ¥ »ç¿ëÇÏ´Â ÇÁ·ÎÆÛƼ¸¦ ÃëµæÇÕ´Ï´Ù.


getIconWidth

int getIconWidth()
¾ÆÀÌÄÜÀÇ ³ÐÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
¾ÆÀÌÄÜÀÇ °íÁ¤ÀÇ ³ÐÀ̸¦ ÁöÁ¤ÇÏ´Â int°ª

getIconHeight

int getIconHeight()
¾ÆÀÌÄÜÀÇ ³ôÀ̸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
¾ÆÀÌÄÜÀÇ °íÁ¤ÀÇ ³ôÀ̸¦ ÁöÁ¤ÇÏ´Â int°ª

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.