JavaTM 2 Platform
Standard Ed. 5.0

javax.swing.text.html
Ŭ·¡½º HTMLEditorKit.LinkController

java.lang.Object 
  »óÀ§¸¦ È®Àå java.awt.event.MouseAdapter 
      »óÀ§¸¦ È®Àå javax.swing.text.html.HTMLEditorKit.LinkController
¸ðµç ±¸ÇöµÈ ÀÎÅÍÆäÀ̽º:
MouseListener, MouseMotionListener, Serializable, EventListener
Æ÷ÇԵǾî Àִ Ŭ·¡½º:
HTMLEditorKit

public static class HTMLEditorKit.LinkController
extends MouseAdapter
implements MouseMotionListener, Serializable

°ü·ÃµÈ ÄÄÆÛ³ÍÆ®¸¦ °¨½ÃÇØ, ÇÊ¿ä¿¡ µû¶ó¼­ ÇÏÀÌÆÛ ¸µÅ© À̺¥Æ®¸¦ ¹ß»ý½ÃÅ°´Â Ŭ·¡½ºÀÔ´Ï´Ù.


»ý¼ºÀÚ °³¿ä
HTMLEditorKit.LinkController ()
           
 
¸Þ¼­µå °³¿ä
protected  void activateLink (int pos, JEditorPane  editor)
          ÁöÁ¤µÈ À§°ªÀÌ ¸µÅ©¸¦ ³ªÅ¸³»´Â °æ¿ì´Â ´ëÀÀÇÏ´Â JEditorPane linkActivated¸¦ È£ÃâÇÕ´Ï´Ù.
 void mouseClicked (MouseEvent  e)
          ¸¶¿ì½º Ŭ¸¯ À̺¥Æ®·Î È£ÃâÇÕ´Ï´Ù.
 void mouseDragged (MouseEvent  e)
          ÄÄÆÛ³ÍÆ®»ó¿¡¼­ ¸¶¿ì½ºÀÇ ¹öÆ°À» ´­·¯ µå·¡±× Çϸé È£ÃâÇÕ´Ï´Ù.
 void mouseMoved (MouseEvent  e)
          ¹öÆ°À» ´©¸£Áö ¾Ê°í, ¸¶¿ì½º Ä¿¼­¸¦ ÄÄÆÛ³ÍÆ®»óÀ¸·Î À̵¿Çϸé È£ÃâÇÕ´Ï´Ù.
 
Ŭ·¡½º java.awt.event. MouseAdapter ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
mouseEntered, mouseExited, mousePressed, mouseReleased
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

HTMLEditorKit.LinkController

public HTMLEditorKit.LinkController()
¸Þ¼­µåÀÇ »ó¼¼

mouseClicked

public void mouseClicked(MouseEvent  e)
¸¶¿ì½º Ŭ¸¯ À̺¥Æ®·Î È£ÃâÇÕ´Ï´Ù. ÄÄÆÛ³ÍÆ®°¡ Àбâ Àü¿ë (ºê¶ó¿ìÀú)ÀÇ °æ¿ì´Â À̺¥Æ®´Â ¸µÅ©ÀÇ ÁöÁ¤ÇÏ´Â ÂüÁ¶¿¡ µû¸£µµ·Ï »ç¿ëµË´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MouseListener ³»ÀÇ mouseClicked
¿À¹ö¶óÀ̵å(override):
Ŭ·¡½º MouseAdapter ³»ÀÇ mouseClicked
ÆĶó¹ÌÅÍ:
e - ¸¶¿ì½º À̺¥Æ®
°ü·Ã Ç׸ñ:
MouseListener.mouseClicked(java.awt.event.MouseEvent)

mouseDragged

public void mouseDragged(MouseEvent  e)
ÀÎÅÍÆäÀ̽º MouseMotionListener ±â¼ú:
ÄÄÆÛ³ÍÆ®»ó¿¡¼­ ¸¶¿ì½ºÀÇ ¹öÆ°À» ´­·¯ µå·¡±× Çϸé È£ÃâÇÕ´Ï´Ù. MOUSE_DRAGGED À̺¥Æ®´Â ¸¶¿ì½ºÀÇ ¹öÆ°À» ¶¼¾î ³õÀ» ¶§±îÁö, µå·¡±× À̺¥Æ®°¡ ¹ß»ýÇÑ ÄÄÆÛ³ÍÆ®¿¡ (¸¶¿ì½ºÀÇ À§°ªÀÌ ±× ÄÄÆÛ³ÍÆ®ÀÇ °æ°è³»¿¡ ÀÖÀ»Áö ¾î¶³Áö¿¡ °ü°è¾øÀÌ) °è¼ÓÇØ º¸³»Áý´Ï´Ù.

µå·¡±×£¦µå·ÓÀÇ ±¸ÇöÀº Ç÷§Æû¿¡ µû¶ó¼­ ´Ù¸£±â ¶§¹®¿¡ ³×ÀÌƼºêÀÇ µå·¡±×£¦µå·ÓÀÇ Á¶ÀÛÁß¿¡ MOUSE_DRAGGED À̺¥Æ®´Â Àü¼Û µÇÁö ¾Ê½À´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MouseMotionListener ³»ÀÇ mouseDragged

mouseMoved

public void mouseMoved(MouseEvent  e)
ÀÎÅÍÆäÀ̽º MouseMotionListener ±â¼ú:
¹öÆ°À» ´©¸£Áö ¾Ê°í, ¸¶¿ì½º Ä¿¼­¸¦ ÄÄÆÛ³ÍÆ®»óÀ¸·Î À̵¿Çϸé È£ÃâÇÕ´Ï´Ù.

Á¤ÀÇ:
ÀÎÅÍÆäÀ̽º MouseMotionListener ³»ÀÇ mouseMoved

activateLink

protected void activateLink(int pos,
                            JEditorPane  editor)
ÁöÁ¤µÈ À§°ªÀÌ ¸µÅ©¸¦ ³ªÅ¸³»´Â °æ¿ì´Â ´ëÀÀÇÏ´Â JEditorPane linkActivated¸¦ È£ÃâÇÕ´Ï´Ù.

À̸§ÀÌ °°¾Æ ¾Æ·¡ÀÇ Àμö°¡ ¾î´ÀÂÊÀ̳ª -1¿¡ µ¿ÀÏÇÑ ¸Þ¼­µå¿¡ Àü¼Û Çϱâ À§Çؼ­ ±¸ÇöµË´Ï´Ù.

ÆĶó¹ÌÅÍ:
pos - À§Ä¡
editor - ¿¡µðÅÍ ±¸È¹

JavaTM 2 Platform
Standard Ed. 5.0

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