JavaTM 2
Platform
Std.  Ed.  v1. 4.0

java.awt.dnd
Ŭ·¡½º DragGestureRecognizer

java.lang.Object 
  |
  +--java.awt.dnd.DragGestureRecognizer
¸ðµç ±¸Çö ÀÎÅÍÆäÀ̽º:
Serializable
Á÷°èÀÇ ±âÁ¸ÀÇ ¼­ºê Ŭ·¡½º:
MouseDragGestureRecognizer

public abstract class DragGestureRecognizer
extends Object
implements Serializable

DragGestureRecognizer ´Â Ç÷§Æû ÀÇÁ¸ÀÇ µå·¯±× °³½Ã Á¦½ºÃ߾ ½Äº°Çϱâ À§Çؼ­, ƯÁ¤ÀÇ Component ¿¡ °ü·ÃÁöÀ» ¼ö°¡ ÀÖ´Â Ç÷§Æû ÀÇÁ¸ÀÇ Ã»ÃëÀÚ¸¦ ÁöÁ¤Çϱâ À§ÇÑ Ãß»ó base classÀÔ´Ï´Ù.

ÀûÀýÇÑ DragGestureRecognizer ÀÇ ¼­ºê Ŭ·¡½º´Â ƯÁ¤ÀÇ Component ¿¡ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖ´Â DragSource, ¶Ç´Â createDragGestureRecognizer() ¸Þ¼Òµå¸¦ °³ÀÔ½ÃÄÑ Toolkit ¿ÀºêÁ§Æ®·ÎºÎÅÍ ÃëµæµË´Ï´Ù.

ƯÁ¤ÀÇ Component ¿¡ °ü·ÃÁöÀ» ¼ö ÀÖÀ¸¸é(ÀÚ),DragGestureRecognizer ´Â Component ¿¡ º¸³»Áö´Â ÀÔ·Â À̺¥Æ®¸¦ ÃßÀûÇϱâ À§Çؼ­, ±× Component ¿¡ ÀûÀýÇÑ Ã»ÃëÀÚ ÀÎÅÍÆäÀ̽º¸¦ µî·ÏÇÕ´Ï´Ù.

Component ·Î À̺¥Æ®ÀÇ ¼øÂ÷ ¼ø¼­¸¦ µå·¯±× °³½Ã Á¦½ºÃß¾î·Î¼­ ½Äº°Çϸé(ÀÚ),DragGestureRecognizer ´Â gestureRecognized() ¸Þ¼Òµå¸¦ È£ÃâÇØ ±× uni-cast DragGestureListener ¿¡ ÅëÁöÇÕ´Ï´Ù.

±¸»ó DragGestureRecognizer ÀνºÅϽº°¡, °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖ´Â Component ·Î µå·¯±× °³½Ã Á¦½ºÃ߾ °ËÃâÇϸé(ÀÚ),DragGestureListener À̺¥Æ®ÀÇ uni-cast À̺¥Æ® ¼Ò½º¿¡ µî·ÏµÇ¾î ÀÖ´Â DragGestureListener ¿¡ DragGestureEvent ¸¦ ¹æ¾Æ¼è ÇÕ´Ï´Ù. ÀÌ DragGestureListener ´Â °ü·ÃÁöÀ» ¼ö ÀÖ¾ú´ø DragSource ¿¡ Çʿ信 µû¶ó¼­ µå·¯±×£¦µå·Ó Á¶ÀÛÀÇ °³½Ã¸¦ ÀçÃËÇÕ´Ï´Ù.

°ü·Ã Ç׸ñ:
DragGestureListener , DragGestureEvent , DragSource , Á÷·ÄÈ­ µÈ Çü½Ä

ÇʵåÀÇ °³¿ä
protected  Component component
          DragGestureRecognizer ¿¡ °ü·ÃÇÑ Component ÀÔ´Ï´Ù.
protected  DragGestureListener dragGestureListener
          DragGestureRecognizer ¿¡ °ü·ÃÇÑ DragGestureListener ÀÔ´Ï´Ù.
protected  DragSource dragSource
          DragGestureRecognizer ¿¡ °ü·ÃÇÑ DragSource ÀÔ´Ï´Ù.
protected  ArrayList events
          µå·¯±×¸¦ ¹æ¾Æ¼è ÇÏ´Â ¡¸Á¦½ºÃ߾·Î¼­ DragGestureRecognizer ÀÌ ¡¸Àνĵȴ١¹°°°Ô ÇÏ´Â À̺¥Æ®ÀÇ ¸®½ºÆ®ÀÔ´Ï´Ù.
protected  int sourceActions
          µå·¯±×£¦µå·Ó Á¶ÀÛÀ¸·Î »ç¿ëÇÏ´Â ¾×¼ÇÀÇ Çü½ÄÀ» ³ªÅ¸³»´Â int ÀÔ´Ï´Ù.
 
»ý¼ºÀÚÀÇ °³¿ä
protected DragGestureRecognizer (DragSource  ds)
          ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource ¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇÕ´Ï´Ù.
protected DragGestureRecognizer (DragSource  ds, Component  c)
          ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource, ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ ¡¸°¨½Ã¡¹ÇÒ ¼ö ÀÖ´Â Component ¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇÕ´Ï´Ù.
protected DragGestureRecognizer (DragSource  ds, Component  c, int sa)
          ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource, ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ ¡¸°¨½Ã¡¹ÇÒ ¼ö ÀÖ´Â Component, ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ¼­Æ÷Æ®ÇÏ´Â ¾×¼ÇÀ» ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇÕ´Ï´Ù.
protected DragGestureRecognizer (DragSource  ds, Component  c, int sa, DragGestureListener  dgl)
          ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource, ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ ¡¸°¨½Ã¡¹ÇÒ ¼ö ÀÖ´Â Component, ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ¼­Æ÷Æ®ÇÏ´Â ¾×¼Ç, ¹× DragGestureListener ¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇØ, µå·¯±× °³½Ã Á¦½ºÃ߾ °ËÃâÇÑ °ÍÀ» ÇÑ ¹ø ÅëÁöÇÕ´Ï´Ù.
 
¸Þ¼ÒµåÀÇ °³¿ä
 void addDragGestureListener (DragGestureListener  dgl)
          »õ·Î¿î DragGestureListener ¸¦ µî·ÏÇÕ´Ï´Ù.
protected  void appendEvent (InputEvent  awtie)
          ÀÌ Recognizer ¿¡ ÀÇÇØ Component ·Î µî·ÏµÈ ûÃëÀÚ´Â ÀÌ API ¸¦ °³ÀÔ½ÃÄÑ, µå·¯±×£¦µå·Ó °³½Ã Á¦½ºÃ߾ ±¸¼ºÇÏ´Â ÀÏ·ÃÀÇ À̺¥Æ®ÀÇ ÀϺημ­ ÀνĵǴ ¸ðµç À̺¥Æ®¸¦ ±â·ÏÇÕ´Ï´Ù.
protected  void fireDragGestureRecognized (int dragAction, Point  p)
          µå·¯±×£¦µå·Ó °³½Ã Á¦½ºÃ߾ ¹ß»ýÇÑ °ÍÀ» DragGestureListener ¿¡ ÅëÁöÇÕ´Ï´Ù.
 Component getComponent ()
          ÀÌ ¸Þ¼Òµå´Â µå·¯±× °³½Ã Á¦½ºÃ߾ DragGestureRecognizer ¿¡ ¡¸°¨½Ã¡¹µÇ´Â Component ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 DragSource getDragSource ()
          ÀÌ ¸Þ¼Òµå´Â ÀÌ DragGestureRecognizer ÀÌ, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â DragSource ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 int getSourceActions ()
          ÀÌ ¸Þ¼Òµå´Â ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀÌ ¼­Æ÷Æ®ÇÏ´Â ¾×¼ÇÀÇ Çü½ÄÀ» ³ªÅ¸³»´Â int ¸¦ µ¹·ÁÁÝ´Ï´Ù.
 InputEvent getTriggerEvent ()
          ÀÌ ¸Þ¼Òµå´Â µå·¯±×£¦µå·Ó Á¶ÀÛÀ» °³½ÃÇÑ ÀÏ·ÃÀÇ À̺¥Æ®ÀÇ ÃÖÃÊÀÇ À̺¥Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.
protected abstract  void registerListeners ()
          ÀÌ DragGestureRecognizer ÀÇ Ã»ÃëÀÚ¸¦ Component ¿¡ µî·ÏÇÕ´Ï´Ù.
 void removeDragGestureListener (DragGestureListener  dgl)
          ÇöÀçÀÇ DragGestureListener ÀÇ µî·ÏÀ» ÇØÁ¦ÇÕ´Ï´Ù.
 void resetRecognizer ()
          Recognizer ¸¦ Ãë¼ÒÇÕ´Ï´Ù.
 void setComponent (Component  c)
          DragGestureRecognizer ¸¦ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖ´Â Component ¸¦ ¼³Á¤ÇÕ´Ï´Ù.
 void setSourceActions (int actions)
          ÀÌ ¸Þ¼Òµå´Â µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ Çã°¡µÇ°í ÀÖ´Â ¼Ò½º µå·¯±× ¾×¼ÇÀ» ¼³Á¤ÇÕ´Ï´Ù.
protected abstract  void unregisterListeners ()
          ÀÌ DragGestureRecognizer ÀÇ Ã»ÃëÀÚ¸¦ Component ·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ¿¡¼­ »ó¼Ó¹ÞÀº ¸Þ¼Òµå
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

ÇʵåÀÇ »ó¼¼

dragSource

protected DragSource  dragSource
DragGestureRecognizer ¿¡ °ü·ÃÇÑ DragSource ÀÔ´Ï´Ù.


component

protected Component  component
DragGestureRecognizer ¿¡ °ü·ÃÇÑ Component ÀÔ´Ï´Ù.


dragGestureListener

protected transient DragGestureListener  dragGestureListener
DragGestureRecognizer ¿¡ °ü·ÃÇÑ DragGestureListener ÀÔ´Ï´Ù.


sourceActions

protected int sourceActions
µå·¯±×£¦µå·Ó Á¶ÀÛÀ¸·Î »ç¿ëÇÏ´Â ¾×¼ÇÀÇ Çü½ÄÀ» ³ªÅ¸³»´Â int ÀÔ´Ï´Ù.


events

protected ArrayList  events
µå·¯±×¸¦ ¹æ¾Æ¼è ÇÏ´Â ¡¸Á¦½ºÃ߾·Î¼­ DragGestureRecognizer ÀÌ ¡¸Àνĵȴ١¹°°°Ô ÇÏ´Â À̺¥Æ®ÀÇ ¸®½ºÆ®ÀÔ´Ï´Ù.

»ý¼ºÀÚÀÇ »ó¼¼

DragGestureRecognizer

protected DragGestureRecognizer(DragSource  ds,
                                Component  c,
                                int sa,
                                DragGestureListener  dgl)
ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource, ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ ¡¸°¨½Ã¡¹ÇÒ ¼ö ÀÖ´Â Component, ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ¼­Æ÷Æ®ÇÏ´Â ¾×¼Ç, ¹× DragGestureListener ¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇØ, µå·¯±× °³½Ã Á¦½ºÃ߾ °ËÃâÇÑ °ÍÀ» ÇÑ ¹ø ÅëÁöÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
ds - ÀÌ DragGestureRecognizer °¡, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â DragSource
c - ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ °ËÃâÇϱâ À§Çؼ­ À̺¥Æ® ½ºÆ®¸²À» ¡¸°¨½Ã¡¹ÇÏ´Â Component. ÀÌ °ªÀÌ null ÀÇ °æ¿ì,DragGestureRecognizer ´Â ¾î´À Component ¿¡µµ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖÁö ¾Ê½À´Ï´Ù.
sa - ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀÌ ¼­Æ÷Æ®ÇÏ´Â DnDConstants ¼¼Æ® (³í¸®ÇÕ)
dgl - µå·¯±× Á¦½ºÃ߾ °ËÃâµÇ¾úÀ» ¶§¿¡ ÅëÁöÇÏ´Â DragGestureRecognizer

¿¹¿Ü:
IllegalArgumentException - ds °¡ null ÀÇ °æ¿ì

DragGestureRecognizer

protected DragGestureRecognizer(DragSource  ds,
                                Component  c,
                                int sa)
ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource, ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ ¡¸°¨½Ã¡¹ÇÒ ¼ö ÀÖ´Â Component, ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ¼­Æ÷Æ®ÇÏ´Â ¾×¼ÇÀ» ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
ds - ÀÌ DragGestureRecognizer °¡, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â DragSource
c - ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ °ËÃâÇϱâ À§Çؼ­ À̺¥Æ® ½ºÆ®¸²À» ¡¸°¨½Ã¡¹ÇÏ´Â Component. ÀÌ °ªÀÌ null ÀÇ °æ¿ì,DragGestureRecognizer ´Â ¾î´À Component ¿¡µµ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖÁö ¾Ê½À´Ï´Ù.
sa - ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀÌ ¼­Æ÷Æ®ÇÏ´Â DnDConstants ¼¼Æ® (³í¸®ÇÕ)

¿¹¿Ü:
IllegalArgumentException - ds °¡ null ÀÇ °æ¿ì

DragGestureRecognizer

protected DragGestureRecognizer(DragSource  ds,
                                Component  c)
ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource, ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ ¡¸°¨½Ã¡¹ÇÒ ¼ö ÀÖ´Â Component ¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
ds - ÀÌ DragGestureRecognizer °¡, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â DragSource
c - ÀÌ DragGestureRecognizer °¡ µå·¯±× °³½Ã Á¦½ºÃ߾ °ËÃâÇϱâ À§Çؼ­ À̺¥Æ® ½ºÆ®¸²À» ¡¸°¨½Ã¡¹ÇÏ´Â Component. ÀÌ °ªÀÌ null ÀÇ °æ¿ì,DragGestureRecognizer ´Â ¾î´À Component ¿¡µµ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖÁö ¾Ê½À´Ï´Ù.

¿¹¿Ü:
IllegalArgumentException - ds °¡ null ÀÇ °æ¿ì

DragGestureRecognizer

protected DragGestureRecognizer(DragSource  ds)
ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ »ç¿ëÇÏ´Â DragSource ¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer ¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
ds - ÀÌ DragGestureRecognizer °¡, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â DragSource

¿¹¿Ü:
IllegalArgumentException - ds °¡ null ÀÇ °æ¿ì
¸Þ¼ÒµåÀÇ »ó¼¼

registerListeners

protected abstract void registerListeners()
ÀÌ DragGestureRecognizer ÀÇ Ã»ÃëÀÚ¸¦ Component ¿¡ µî·ÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ¼­ºê Ŭ·¡½º¿¡¼­ ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù.


unregisterListeners

protected abstract void unregisterListeners()
ÀÌ DragGestureRecognizer ÀÇ Ã»ÃëÀÚ¸¦ Component ·ÎºÎÅÍ µî·Ï ÇØÁ¦ÇÕ´Ï´Ù. ÀÌ ¸Þ¼Òµå´Â ¼­ºê Ŭ·¡½º¿¡¼­ ¿À¹ö¶óÀ̵å(override) µË´Ï´Ù.


getDragSource

public DragSource  getDragSource()
ÀÌ ¸Þ¼Òµå´Â ÀÌ DragGestureRecognizer ÀÌ, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ­ »ç¿ëÇÏ´Â DragSource ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
DragSource

getComponent

public Component  getComponent()
ÀÌ ¸Þ¼Òµå´Â µå·¯±× °³½Ã Á¦½ºÃ߾ DragGestureRecognizer ¿¡ ¡¸°¨½Ã¡¹µÇ´Â Component ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ DragGestureRecognizer ¸¦ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖ´Â Component

setComponent

public void setComponent(Component  c)
DragGestureRecognizer ¸¦ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖ´Â Component À» ¼³Á¤ÇÕ´Ï´Ù. registerListeners() ¹× unregisterListeners()´Â Çʿ信 µû¶ó¼­ ºÎÀÛ¿ëÀ¸·Î¼­ ºÒ·Á °©´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
c - Component ¶Ç´Â null

getSourceActions

public int getSourceActions()
ÀÌ ¸Þ¼Òµå´Â ÀÌ µå·¯±×£¦µå·Ó Á¶ÀÛÀÌ ¼­Æ÷Æ®ÇÏ´Â ¾×¼ÇÀÇ Çü½ÄÀ» ³ªÅ¸³»´Â int ¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
ÇöÀç Çã°¡µÇ°í ÀÖ´Â ¼Ò½º ¾×¼Ç

setSourceActions

public void setSourceActions(int actions)
ÀÌ ¸Þ¼Òµå´Â µå·¯±×£¦µå·Ó Á¶ÀÛ¿¡ Çã°¡µÇ°í ÀÖ´Â ¼Ò½º µå·¯±× ¾×¼ÇÀ» ¼³Á¤ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
actions - Çã°¡µÇ°í ÀÖ´Â ¼Ò½º µå·¯±× ¾×¼Ç

getTriggerEvent

public InputEvent  getTriggerEvent()
ÀÌ ¸Þ¼Òµå´Â µå·¯±×£¦µå·Ó Á¶ÀÛÀ» °³½ÃÇÑ ÀÏ·ÃÀÇ À̺¥Æ®ÀÇ ÃÖÃÊÀÇ À̺¥Æ®¸¦ µ¹·ÁÁÝ´Ï´Ù.

¹Ýȯ°ª:
µå·¯±× Á¦½ºÃ߾ ¹æ¾Æ¼è ÇÑ Ãʱâ À̺¥Æ®

resetRecognizer

public void resetRecognizer()
Recognizer ¸¦ Ãë¼ÒÇÕ´Ï´Ù. ÇöÀç Á¦½ºÃ߾ ÀνÄÇϰí ÀÖ´Â °æ¿ì´Â ¹«½ÃµË´Ï´Ù.


addDragGestureListener

public void addDragGestureListener(DragGestureListener  dgl)
                            throws TooManyListenersException 
»õ·Î¿î DragGestureListener ¸¦ µî·ÏÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
dgl - ÀÌ DragGestureRecognizer ¿¡ µ¿½Ã¿¡ µî·ÏÇÏ´Â DragGestureListener

¿¹¿Ü:
TooManyListenersException - DragGestureListener °¡ ¹ú½á Ãß°¡µÇ°í ÀÖ´Â °æ¿ì

removeDragGestureListener

public void removeDragGestureListener(DragGestureListener  dgl)
ÇöÀçÀÇ DragGestureListener ÀÇ µî·ÏÀ» ÇØÁ¦ÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
dgl - ÀÌ DragGestureRecognizer ·ÎºÎÅÍ µî·ÏÀ» ÇØÁ¦ÇÏ´Â DragGestureListener

¿¹¿Ü:
IllegalArgumentExceptiondgl - °¡ ÇöÀç µî·ÏµÇ¾î ÀÖ´Â DragGestureListener °¡ ¾Æ´Ñ °æ¿ì (´Ù¸¥ °æ¿ì)

fireDragGestureRecognized

protected void fireDragGestureRecognized(int dragAction,
                                         Point  p)
µå·¯±×£¦µå·Ó °³½Ã Á¦½ºÃ߾ ¹ß»ýÇÑ °ÍÀ» DragGestureListener ¿¡ ÅëÁöÇÕ´Ï´Ù. ´ÙÀ½¿¡, Recognizer »óŸ¦ Ãë¼ÒÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
dragAction - À¯Àú Á¦½ºÃ߾ ÃÖÃÊ·Î ¼±ÅÃÇÑ ¾×¼Ç
p - Á¦½ºÃ߾ ¹ß»ýÇÑ Æ÷ÀÎÆ® (Component ÀÇ ÁÂÇ¥)

appendEvent

protected void appendEvent(InputEvent  awtie)
ÀÌ Recognizer ¿¡ ÀÇÇØ Component ·Î µî·ÏµÈ ûÃëÀÚ´Â ÀÌ API ¸¦ °³ÀÔ½ÃÄÑ, µå·¯±×£¦µå·Ó °³½Ã Á¦½ºÃ߾ ±¸¼ºÇÏ´Â ÀÏ·ÃÀÇ À̺¥Æ®ÀÇ ÀϺημ­ ÀνĵǴ ¸ðµç À̺¥Æ®¸¦ ±â·ÏÇÕ´Ï´Ù.

ÀÌ ¸Þ¼Òµå´Â DragGestureRecognizer ±¸ÇöÀÌ InputEvent ¼­ºê Ŭ·¡½º (µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ±¸¼ºÇÏ´Â ÀÏ·ÃÀÇ À̺¥Æ®ÀÇ 1°³)¸¦, ÀÌ DragGestureRecognizer ÀÌ ³»ºÎÀûÀ¸·Î À¯ÁöÇϰí ÀÖ´Â À̺¥Æ® ¹è¿­¿¡ Ãß°¡ÇÒ °æ¿ì¿¡ »ç¿ëÇÕ´Ï´Ù.

ÆÄ¶ó¹ÌÅÍ:
awtie - ÀÌ DragGestureRecognizer ÀÇ ³»ºÎ À̺¥Æ® ¹è¿­¿¡ Ãß°¡ÇÏ´Â InputEvent. null ´Â À¯È¿Ä¡´Â ¾Æ´Ï°í ¹«½ÃµÈ´Ù

JavaTM 2
Platform
Std.  Ed.  v1. 4.0

¹ö±×ÀÇ º¸°í¿Í ±â´ÉÀÇ ¸®Äù½ºÆ®
ÀÌ¿ÜÀÇ API ·¹ÆÛ·±½º ¹× °³¹ßÀÚ¿ë ¹®¼­¿¡ ´ëÇØ¼­´Â Java 2 SDK SE °³¹ßÀÚ¿ë ¹®¼­¸¦ ÂüÁ¶ÇØ ÁÖ¼¼¿ä. °³¹ßÀÚÀü¿ëÀÇ »ó¼¼ÇÑ ÇØ¼³, °³³äÀÇ °³¿ä, ¿ë¾îÀÇ Á¤ÀÇ, ¹ö±×ÀÇ È¸ÇÇÃ¥, ¹× ÄÚµå ½Ç·Ê°¡ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.

Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ À־ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.