|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.dnd.DragGestureRecognizer
public abstract class 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 <InputEvent > |
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 <InputEvent > 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 Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.