|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
java.lang.Object | +--java.awt.dnd.DragGestureRecognizer
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 |
ÇʵåÀÇ »ó¼¼ |
protected DragSource dragSource
DragGestureRecognizer
¿¡ °ü·ÃÇÑ DragSource
ÀÔ´Ï´Ù.
protected Component component
DragGestureRecognizer
¿¡ °ü·ÃÇÑ Component
ÀÔ´Ï´Ù.
protected transient DragGestureListener dragGestureListener
DragGestureRecognizer
¿¡ °ü·ÃÇÑ DragGestureListener
ÀÔ´Ï´Ù.
protected int sourceActions
int
ÀÔ´Ï´Ù.
protected ArrayList events
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
ÀÇ °æ¿ì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
ÀÇ °æ¿ìprotected DragGestureRecognizer(DragSource ds, Component c)
DragSource
, ÀÌ DragGestureRecognizer
°¡ µå·¯±× °³½Ã Á¦½ºÃ߾ ¡¸°¨½Ã¡¹ÇÒ ¼ö ÀÖ´Â Component
¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer
¸¦ ±¸ÃàÇÕ´Ï´Ù.
ds
- ÀÌ DragGestureRecognizer
°¡, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ »ç¿ëÇÏ´Â DragSource
c
- ÀÌ DragGestureRecognizer
°¡ µå·¯±× °³½Ã Á¦½ºÃ߾ °ËÃâÇϱâ À§Çؼ À̺¥Æ® ½ºÆ®¸²À» ¡¸°¨½Ã¡¹ÇÏ´Â Component
. ÀÌ °ªÀÌ null
ÀÇ °æ¿ì,DragGestureRecognizer
´Â ¾î´À Component
¿¡µµ °ü·ÃÁöÀ» ¼ö ÀÖ°í ÀÖÁö ¾Ê½À´Ï´Ù.
IllegalArgumentException
- ds °¡ null
ÀÇ °æ¿ìprotected DragGestureRecognizer(DragSource ds)
DragSource
¸¦ ÁöÁ¤ÇØ »õ·Î¿î DragGestureRecognizer
¸¦ ±¸ÃàÇÕ´Ï´Ù.
ds
- ÀÌ DragGestureRecognizer
°¡, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ »ç¿ëÇÏ´Â DragSource
IllegalArgumentException
- ds °¡ null
ÀÇ °æ¿ì¸Þ¼ÒµåÀÇ »ó¼¼ |
protected abstract void registerListeners()
protected abstract void unregisterListeners()
public DragSource getDragSource()
DragGestureRecognizer
ÀÌ, µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ó¸®Çϱâ À§Çؼ »ç¿ëÇÏ´Â DragSource
¸¦ µ¹·ÁÁÝ´Ï´Ù.
public Component getComponent()
DragGestureRecognizer
¿¡ ¡¸°¨½Ã¡¹µÇ´Â Component
¸¦ µ¹·ÁÁÝ´Ï´Ù.
public void setComponent(Component c)
c
- Component
¶Ç´Â null
public int getSourceActions()
public void setSourceActions(int actions)
actions
- Çã°¡µÇ°í ÀÖ´Â ¼Ò½º µå·¯±× ¾×¼Çpublic InputEvent getTriggerEvent()
public void resetRecognizer()
public void addDragGestureListener(DragGestureListener dgl) throws TooManyListenersException
DragGestureListener
¸¦ µî·ÏÇÕ´Ï´Ù.
dgl
- ÀÌ DragGestureRecognizer
¿¡ µ¿½Ã¿¡ µî·ÏÇÏ´Â DragGestureListener
TooManyListenersException
- DragGestureListener
°¡ ¹ú½á Ãß°¡µÇ°í ÀÖ´Â °æ¿ìpublic void removeDragGestureListener(DragGestureListener dgl)
dgl
- ÀÌ DragGestureRecognizer
·ÎºÎÅÍ µî·ÏÀ» ÇØÁ¦ÇÏ´Â DragGestureListener
IllegalArgumentException
dgl
- °¡ ÇöÀç µî·ÏµÇ¾î ÀÖ´Â DragGestureListener
°¡ ¾Æ´Ñ °æ¿ì (´Ù¸¥ °æ¿ì)protected void fireDragGestureRecognized(int dragAction, Point p)
dragAction
- À¯Àú Á¦½ºÃ߾ ÃÖÃÊ·Î ¼±ÅÃÇÑ ¾×¼Çp
- Á¦½ºÃ߾ ¹ß»ýÇÑ Æ÷ÀÎÆ® (Component ÀÇ ÁÂÇ¥)protected void appendEvent(InputEvent awtie)
ÀÌ ¸Þ¼Òµå´Â DragGestureRecognizer
±¸ÇöÀÌ InputEvent
¼ºê Ŭ·¡½º (µå·¯±×£¦µå·Ó Á¶ÀÛÀ» ±¸¼ºÇÏ´Â ÀÏ·ÃÀÇ À̺¥Æ®ÀÇ 1°³)¸¦, ÀÌ DragGestureRecognizer
ÀÌ ³»ºÎÀûÀ¸·Î À¯ÁöÇϰí ÀÖ´Â À̺¥Æ® ¹è¿¿¡ Ãß°¡ÇÒ °æ¿ì¿¡ »ç¿ëÇÕ´Ï´Ù.
awtie
- ÀÌ DragGestureRecognizer
ÀÇ ³»ºÎ À̺¥Æ® ¹è¿¿¡ Ãß°¡ÇÏ´Â InputEvent
. null
´Â À¯È¿Ä¡´Â ¾Æ´Ï°í ¹«½ÃµÈ´Ù
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
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.