Class WidgetAction.WidgetMouseWheelEvent
java.lang.Object
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
ConstructorsConstructorDescriptionWidgetMouseWheelEvent
(long id, MouseWheelEvent event) Creates a mouse wheel event. -
Method Summary
Modifier and TypeMethodDescriptionint
int
long
Returns an event id.int
int
getPoint()
Returns stored location.int
int
int
int
long
getWhen()
boolean
boolean
boolean
boolean
boolean
boolean
void
Sets a new location.void
translatePoint
(int x, int y) Translates the stored location.
-
Constructor Details
-
WidgetMouseWheelEvent
Creates a mouse wheel event.- Parameters:
id
- the event idevent
- the Swing event
-
-
Method Details
-
getEventID
public long getEventID()Returns an event id.- Specified by:
getEventID
in interfaceWidgetAction.WidgetEvent
- Returns:
- the event id
-
getPoint
Returns stored location.- Specified by:
getPoint
in interfaceWidgetAction.WidgetLocationEvent
- Returns:
- the location
-
setPoint
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 interfaceWidgetAction.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 interfaceWidgetAction.WidgetLocationEvent
- Parameters:
x
- the x-axis additiony
- the y-axis addition
-
getClickCount
public int getClickCount()- See Also:
-
getButton
public int getButton()- See Also:
-
isPopupTrigger
public boolean isPopupTrigger()- See Also:
-
isShiftDown
public boolean isShiftDown()- See Also:
-
isControlDown
public boolean isControlDown()- See Also:
-
isMetaDown
public boolean isMetaDown()- See Also:
-
isAltDown
public boolean isAltDown()- See Also:
-
isAltGraphDown
public boolean isAltGraphDown()- See Also:
-
getWhen
public long getWhen()- See Also:
-
getModifiers
public int getModifiers()- See Also:
-
getModifiersEx
public int getModifiersEx()- See Also:
-
getScrollType
public int getScrollType()- See Also:
-
getScrollAmount
public int getScrollAmount()- See Also:
-
getWheelRotation
public int getWheelRotation()- See Also:
-
getUnitsToScroll
public int getUnitsToScroll()- See Also:
-