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

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

org.netbeans.api.visual 2.2

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

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

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


Constructor Summary
WidgetAction.WidgetMouseWheelEvent(long id, MouseWheelEvent event)
          Creates a mouse wheel event.
 
Method Summary
 int getButton()
           
 int getClickCount()
           
 long getEventID()
          Returns an event id.
 int getModifiers()
           
 int getModifiersEx()
           
 Point getPoint()
          Returns stored location.
 int getScrollAmount()
           
 int getScrollType()
           
 int getUnitsToScroll()
           
 int getWheelRotation()
           
 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.WidgetMouseWheelEvent

public WidgetAction.WidgetMouseWheelEvent(long id,
                                          MouseWheelEvent event)
Creates a mouse wheel 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

getScrollType

public int getScrollType()
See Also:
MouseWheelEvent

getScrollAmount

public int getScrollAmount()
See Also:
MouseWheelEvent

getWheelRotation

public int getWheelRotation()
See Also:
MouseWheelEvent

getUnitsToScroll

public int getUnitsToScroll()
See Also:
MouseWheelEvent

org.netbeans.api.visual 2.2

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