JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf
Ŭ·¡½º ListUI

java.lang.Object 
  »óÀ§¸¦ È®Àå javax.swing.plaf.ComponentUI 
      »óÀ§¸¦ È®Àå javax.swing.plaf.ListUI
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
BasicListUI, MultiListUI

public abstract class ListUI
extends ComponentUI

JList Ç÷¯±× ÀÎ °¡´ÉÇÑ Look & Feel À§¾çÀÔ´Ï´Ù. ÀÌ ÀÎÅÍÆäÀ̽º´Â JList ÄÄÆÛ³ÍÆ®°¡ ¸¶¿ì½º ÁÂÇ¥µîÀÇ À§Ä¡¸¦ ¼¿¿¡ ¸ÅÇÎ ÇÏ´Â ¸Þ¼­µå³ª, ¼¿ÀÇ À妽º·ÎºÎÅÍ ±× °æ°è¿¡ ¸ÅÇÎ ÇÏ´Â ¸Þ¼­µå¸¦ Ãß°¡ÇÕ´Ï´Ù.


»ý¼ºÀÚ °³¿ä
ListUI ()
           
 
¸Þ¼­µå °³¿ä
abstract  Rectangle getCellBounds (JList  list, int index1, int index2)
          ÁöÁ¤µÈ Ç׸ñÀÇ JList ÁÂÇ¥¿¡ À־ÀÇ °æ°è¸¦ ¸®ÅÏÇÕ´Ï´Ù.
abstract  Point indexToLocation (JList  list, int index)
          ÁöÁ¤µÈ Ç׸ñÀÇ JList ÁÂÇ¥¿¡ À־ÀÇ ¿øÁ¡À» ¸®ÅÏÇÕ´Ï´Ù.
abstract  int locationToIndex (JList  list, Point  location)
          JList ÁÂÇ¥»óÀÇ Á¡À» ±× À§Ä¡¿¡ ÀÖ´Â ¼¿ÀÇ À妽º·Î º¯È¯ÇÕ´Ï´Ù.
 
Ŭ·¡½º javax.swing.plaf. ComponentUI ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

ListUI

public ListUI()
¸Þ¼­µåÀÇ »ó¼¼

locationToIndex

public abstract int locationToIndex(JList  list,
                                    Point  location)
JList ÁÂÇ¥»óÀÇ Á¡À» ±× À§Ä¡¿¡ ÀÖ´Â ¼¿ÀÇ À妽º·Î º¯È¯ÇÕ´Ï´Ù. ¼¿ÀÌ ½ÇÁ¦·Î ±× À§Ä¡¸¦ Æ÷ÇÔÇÒÁö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÏ·Á¸é, ÀÌ ¸Þ¼­µå¿Í getCellBounds¸¦ Á¶ÇÕÇØ »ç¿ëÇÕ´Ï´Ù. ¸ðµ¨ÀÌ ºñ¾îÀÖ´Â °æ¿ì´Â -1À» ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
location - ¼¿ÀÇ JList »óÀÇ »ó´ë ÁÂÇ¥
¹Ýȯ°ª:
ÁöÁ¤µÈ À§Ä¡¿¡ ÀÖ´Â ¼¿ÀÇ À妽º, ¶Ç´Â -1

indexToLocation

public abstract Point  indexToLocation(JList  list,
                                      int index)
ÁöÁ¤µÈ Ç׸ñÀÇ JList ÁÂÇ¥¿¡ À־ÀÇ ¿øÁ¡À» ¸®ÅÏÇÕ´Ï´Ù. ¹«È¿ÀÎ À妽º¸¦ ÁöÁ¤ÇßÀ» °æ¿ì´Â nullÀ» ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
index - JList ¼¿ÀÇ À妽º
¹Ýȯ°ª:
index ·Î ÁöÁ¤µÈ ¹øÈ£ÀÇ ¼¿ÀÇ ¿øÁ¡

getCellBounds

public abstract Rectangle  getCellBounds(JList  list,
                                        int index1,
                                        int index2)
ÁöÁ¤µÈ Ç׸ñÀÇ JList ÁÂÇ¥¿¡ À־ÀÇ °æ°è¸¦ ¸®ÅÏÇÕ´Ï´Ù. ¹«È¿ÀÎ À妽º¸¦ ÁöÁ¤ÇßÀ» °æ¿ì´Â nullÀ» ¸®ÅÏÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
index - JList ¼¿ÀÇ À妽º
¹Ýȯ°ª:
index ·Î ÁöÁ¤µÈ ¹øÈ£ÀÇ ¼¿ÀÇ °æ°è

JavaTM 2 Platform
Standard Ed. 5.0

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