JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.plaf.basic
Ŭ·¡½º BasicTreeUI.ComponentHandler

java.lang.Object 
  »óÀ§¸¦ È®Àå java.awt.event.ComponentAdapter 
      »óÀ§¸¦ È®Àå javax.swing.plaf.basic.BasicTreeUI.ComponentHandler
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
ActionListener, ComponentListener, EventListener
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
BasicTreeUI

public class BasicTreeUI.ComponentHandler
extends ComponentAdapter
implements ActionListener

ÇÊ¿äÇϸé, ½ºÅ©·Ñ½Ã¿¡ ÀûÀýÇÑ »çÀÌÁ °»½ÅÇÕ´Ï´Ù.


ÇÊµå °³¿ä
protected  JScrollBar scrollBar
          Á¶ÀýµÇ°í ÀÖ´Â ScrollBar ÀÔ´Ï´Ù.
protected  Timer timer
          ½ºÅ©·Ñ ±¸È¹³»¿¡¼­ ½ºÅ©·Ñ ¹Ù¸¦ Á¶ÀýÇÏ°í ÀÖÀ» ¶§ »ç¿ëµÇ´Â ŸÀ̸ÓÀÔ´Ï´Ù.
 
»ý¼ºÀÚ °³¿ä
BasicTreeUI.ComponentHandler ()
           
 
¸Þ¼­µå °³¿ä
 void actionPerformed (ActionEvent  ae)
          Timer °á°ú·Î¼­ÀÇ public ÀÔ´Ï´Ù.
 void componentMoved (ComponentEvent  e)
          ÄÄÆÛ³ÍÆ®ÀÇ À§°ªÀÌ ¹Ù²î¸é È£ÃâÇÕ´Ï´Ù.
protected  JScrollPane getScrollPane ()
          JTree¸¦ ¼ö³³ÇÏ´Â JScrollPane, ¶Ç´Â ÀÌ°ÍÀÌ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì¿¡´Â nullÀ» ¸®ÅÏÇÕ´Ï´Ù.
protected  void startTimer ()
          °æ°èÀÇ Å©±â¸¦ º¯°æÇؾßÇÒ °ÍÀΰ¡ ¾î¶²°¡¸¦ üũÇϱâ À§Çؼ­ ÇÊ¿äÇϸé Timer¸¦ ÀÛ¼ºÇÏ°í ³ª¼­, ½ÃÀÛÇÕ´Ï´Ù.
 
Ŭ·¡½º java.awt.event. ComponentAdapter ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
componentHidden, componentResized, componentShown
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

ÇʵåÀÇ »ó¼¼

timer

protected Timer  timer
½ºÅ©·Ñ ±¸È¹³»¿¡¼­ ½ºÅ©·Ñ ¹Ù¸¦ Á¶ÀýÇÏ°í ÀÖÀ» ¶§ »ç¿ëµÇ´Â ŸÀ̸ÓÀÔ´Ï´Ù.


scrollBar

protected JScrollBar  scrollBar
Á¶ÀýµÇ°í ÀÖ´Â ScrollBar ÀÔ´Ï´Ù.

»ý¼ºÀÚ »ó¼¼

BasicTreeUI.ComponentHandler

public BasicTreeUI.ComponentHandler()
¸Þ¼­µåÀÇ »ó¼¼

componentMoved

public void componentMoved(ComponentEvent  e)
Ŭ·¡½º ComponentAdapter ±â¼ú:
ÄÄÆÛ³ÍÆ®ÀÇ À§°ªÀÌ ¹Ù²î¸é È£ÃâÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º ComponentListener ³»ÀÇ componentMoved
¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º ComponentAdapter ³»ÀÇ componentMoved

startTimer

protected void startTimer()
°æ°èÀÇ Å©±â¸¦ º¯°æÇؾßÇÒ °ÍÀΰ¡ ¾î¶²°¡¸¦ üũÇϱâ À§Çؼ­ ÇÊ¿äÇϸé Timer¸¦ ÀÛ¼ºÇÏ°í ³ª¼­, ½ÃÀÛÇÕ´Ï´Ù.


getScrollPane

protected JScrollPane  getScrollPane()
JTree¸¦ ¼ö³³ÇÏ´Â JScrollPane, ¶Ç´Â ÀÌ°ÍÀÌ ¹ß°ßµÇÁö ¾Ê´Â °æ¿ì¿¡´Â nullÀ» ¸®ÅÏÇÕ´Ï´Ù.


actionPerformed

public void actionPerformed(ActionEvent  ae)
Timer °á°ú·Î¼­ÀÇ public ÀÔ´Ï´Ù. scrollBar°¡ null ÀÎÁö, Á¶ÀýµÇ¾î ÀÖÁö ¾ÊÀº °æ¿ì, ŸÀ̸Ӹ¦ ¸ØÃß¾î »çÀÌÁî º¯°æÀ» °»½ÅÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º ActionListener ³»ÀÇ actionPerformed

JavaTM 2 Platform
Standard Ed. 5.0

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