站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc (Current Development Version)

WidgetAction.WidgetMouseEvent (Visual Library API) - NetBeans API Javadoc (Current Development Version)

org.netbeans.api.visual 2.2

org.netbeans.api.visual.action
Class WidgetAction.WidgetMouseEvent

java.lang.Object
  extended by org.netbeans.api.visual.action.WidgetAction.WidgetMouseEvent
All Implemented Interfaces:
WidgetAction.WidgetEvent, WidgetAction.WidgetLocationEvent
Enclosing interface:
WidgetAction

public static final class WidgetAction.WidgetMouseEvent
extends Object
implements WidgetAction.WidgetLocationEvent

Represents a mouse event.


Constructor Summary
WidgetAction.WidgetMouseEvent(long id, MouseEvent event)
          Creates a mouse event.
 
Method Summary
 int getButton()
           
 int getClickCount()
           
 long getEventID()
          Returns an event id.
 int getModifiers()
           
 int getModifiersEx()
           
 Point getPoint()
          Returns stored location.
 long getWhen()
           
 boolean isAltDown()
           
 boolean isAltGraphDown()
           
 boolean isControlDown()
           
 boolean isMetaDown()
           
 boolean isPopupTrigger()
           
 boolean isShiftDown()
           
 void setPoint(Point point)
          Sets a new location.
 void translatePoint(int x, int y)
          Translates the stored location.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WidgetAction.WidgetMouseEvent

public WidgetAction.WidgetMouseEvent(long id,
                                     MouseEvent event)
Creates a mouse event.

Parameters:
id - the event id
event - the Swing event
Method Detail

getEventID

public long getEventID()
Returns an event id.

Specified by:
getEventID in interface WidgetAction.WidgetEvent
Returns:
the event id

getPoint

public Point getPoint()
Returns stored location.

Specified by:
getPoint in interface WidgetAction.WidgetLocationEvent
Returns:
the location

setPoint

public void setPoint(Point point)
Sets a new location. This is called by a event provider only. Do not call this method unless you know what it does exactly.

Specified by:
setPoint in interface WidgetAction.WidgetLocationEvent
Parameters:
point - the new location

translatePoint

public void translatePoint(int x,
                           int y)
Translates the stored location. Do not call this method unless you know what it does exactly.

Specified by:
translatePoint in interface WidgetAction.WidgetLocationEvent
Parameters:
x - the x-axis addition
y - the y-axis addition

getClickCount

public int getClickCount()
See Also:
MouseEvent

getButton

public int getButton()
See Also:
MouseEvent

isPopupTrigger

public boolean isPopupTrigger()
See Also:
MouseEvent

isShiftDown

public boolean isShiftDown()
See Also:
MouseEvent

isControlDown

public boolean isControlDown()
See Also:
MouseEvent

isMetaDown

public boolean isMetaDown()
See Also:
MouseEvent

isAltDown

public boolean isAltDown()
See Also:
MouseEvent

isAltGraphDown

public boolean isAltGraphDown()
See Also:
MouseEvent

getWhen

public long getWhen()
See Also:
MouseEvent

getModifiers

public int getModifiers()
See Also:
MouseEvent

getModifiersEx

public int getModifiersEx()
See Also:
MouseEvent

org.netbeans.api.visual 2.2

Built on May 28 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.