public class PickerCMouseWheelEvent extends java.awt.event.MouseWheelEvent implements PickerCEvent
BUTTON1, BUTTON2, BUTTON3, MOUSE_CLICKED, MOUSE_DRAGGED, MOUSE_ENTERED, MOUSE_EXITED, MOUSE_FIRST, MOUSE_LAST, MOUSE_MOVED, MOUSE_PRESSED, MOUSE_RELEASED, MOUSE_WHEEL, NOBUTTON
ALT_DOWN_MASK, ALT_GRAPH_DOWN_MASK, ALT_GRAPH_MASK, ALT_MASK, BUTTON1_DOWN_MASK, BUTTON1_MASK, BUTTON2_DOWN_MASK, BUTTON2_MASK, BUTTON3_DOWN_MASK, BUTTON3_MASK, CTRL_DOWN_MASK, CTRL_MASK, META_DOWN_MASK, META_MASK, SHIFT_DOWN_MASK, SHIFT_MASK
COMPONENT_FIRST, COMPONENT_HIDDEN, COMPONENT_LAST, COMPONENT_MOVED, COMPONENT_RESIZED, COMPONENT_SHOWN
ACTION_EVENT_MASK, ADJUSTMENT_EVENT_MASK, COMPONENT_EVENT_MASK, CONTAINER_EVENT_MASK, FOCUS_EVENT_MASK, HIERARCHY_BOUNDS_EVENT_MASK, HIERARCHY_EVENT_MASK, INPUT_METHOD_EVENT_MASK, INVOCATION_EVENT_MASK, ITEM_EVENT_MASK, KEY_EVENT_MASK, MOUSE_EVENT_MASK, MOUSE_MOTION_EVENT_MASK, MOUSE_WHEEL_EVENT_MASK, PAINT_EVENT_MASK, RESERVED_ID_MAX, TEXT_EVENT_MASK, WINDOW_EVENT_MASK, WINDOW_FOCUS_EVENT_MASK, WINDOW_STATE_EVENT_MASK
Constructor and Description |
---|
PickerCMouseWheelEvent(java.awt.Component source,
CShape picked,
Picker picker,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger,
int scrollType,
int scrollAmount,
int wheelRotation)
Builds a
PickerCEvent . |
PickerCMouseWheelEvent(java.awt.Component source,
Picker picker,
int id,
long when,
int modifiers,
int x,
int y,
int clickCount,
boolean popupTrigger,
int scrollType,
int scrollAmount,
int wheelRotation)
Builds a
PickerCEvent . |
Modifier and Type | Method and Description |
---|---|
CShape |
getPicked() |
Picker |
getPicker() |
void |
setPicked(CShape picked)
Sets the picked element for this event.
|
getPreciseWheelRotation, getScrollAmount, getScrollType, getUnitsToScroll, getWheelRotation, paramString
getButton, getClickCount, getLocationOnScreen, getModifiersEx, getMouseModifiersText, getPoint, getX, getXOnScreen, getY, getYOnScreen, isPopupTrigger, translatePoint
consume, getMaskForButton, getModifiers, getModifiersExText, getWhen, isAltDown, isAltGraphDown, isConsumed, isControlDown, isMetaDown, isShiftDown
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getID, getSource
getPoint
public PickerCMouseWheelEvent(java.awt.Component source, CShape picked, Picker picker, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation)
PickerCEvent
.source
- The source of the eventpicked
- The shape on which this event occurspicker
- The picker that originates this eventid
- The id of this eventwhen
- The time at which this event occursmodifiers
- The modifiers of this eventx
- The x-location of this eventy
- The y-location of this eventclickCount
- The number of clicks of this eventpopupTrigger
- If this event triggers a popupscrollType
- The type of scrolling which should take place in response to this event; valid values are WHEEL_UNIT_SCROLL
and WHEEL_BLOCK_SCROLL
(in class java.awt.MouseWheelEvent)scrollAmount
- for scrollType WHEEL_UNIT_SCROLL
, the number of units to be scrolledwheelRotation
- The amount that the mouse wheel was rotated (the number of "clicks")public PickerCMouseWheelEvent(java.awt.Component source, Picker picker, int id, long when, int modifiers, int x, int y, int clickCount, boolean popupTrigger, int scrollType, int scrollAmount, int wheelRotation)
PickerCEvent
.source
- The source of the eventpicker
- The picker that originates this eventid
- The id of this eventwhen
- The time at which this event occursmodifiers
- The modifiers of this eventx
- The x-location of this eventy
- The y-location of this eventclickCount
- The number of clicks of this eventpopupTrigger
- If this event triggers a popupscrollType
- The type of scrolling which should take place in response to this event; valid values are WHEEL_UNIT_SCROLL
and WHEEL_BLOCK_SCROLL
(in class java.awt.MouseWheelEvent)scrollAmount
- for scrollType WHEEL_UNIT_SCROLL
, the number of units to be scrolledwheelRotation
- The amount that the mouse wheel was rotated (the number of "clicks")public Picker getPicker()
getPicker
in interface PickerEvent<CShape>
public CShape getPicked()
getPicked
in interface PickerEvent<CShape>
public void setPicked(CShape picked)
PickerEvent
setPicked
in interface PickerEvent<CShape>
picked
- The picked element.