public class ClickEvent extends BogusEvent
ClickShortcut and it's defined
by the number of clicks. A click event holds the position where the event occurred (
x() and y()).ALT, ALT_GRAPH, CTRL, META, NO_ID, NO_MODIFIER_MASK, SHIFT| Constructor and Description |
|---|
ClickEvent(float x,
float y,
int b)
Constructs a single click ClickEvent at the given position and from the given
gesture-id defining the events
shortcut() |
ClickEvent(float x,
float y,
int b,
int clicks)
Constructs a ClickEvent at the given position, from the given gesture-id defining the
events
shortcut(), and with the given number of clicks. |
ClickEvent(float x,
float y,
int modifiers,
int b,
int clicks)
Constructs a ClickEvent at the given position, from the given gesture-id and
modifiers which defines the events
shortcut(), and with the given number of
clicks. |
| Modifier and Type | Method and Description |
|---|---|
int |
clickCount() |
boolean |
equals(Object obj) |
ClickEvent |
fire()
Same as
this.get() but sets the BogusEvent.fired() flag to true. |
ClickEvent |
flush()
Same as
this.get() but sets the BogusEvent.flushed() flag to true. |
ClickEvent |
get()
Returns a deep copy of the object.
|
int |
hashCode() |
ClickShortcut |
shortcut() |
float |
x() |
float |
y() |
fired, flushed, id, isAltDown, isAltGraph, isControlDown, isMetaDown, isNull, isShiftDown, modifiers, modifiersText, timestamppublic ClickEvent(float x,
float y,
int b)
shortcut()x - y - b - public ClickEvent(float x,
float y,
int b,
int clicks)
shortcut(), and with the given number of clicks.x - y - b - clicks - public ClickEvent(float x,
float y,
int modifiers,
int b,
int clicks)
shortcut(), and with the given number of
clicks.x - y - modifiers - b - clicks - public int hashCode()
hashCode in class BogusEventpublic boolean equals(Object obj)
equals in class BogusEventpublic ClickEvent get()
Copyable
Typical implementation should simple look like: return new Object(this).
get in interface Copyableget in class BogusEventpublic ClickEvent flush()
BogusEventthis.get() but sets the BogusEvent.flushed() flag to true. Only agents
may call this.flush in class BogusEventBogusEvent.flushed()public ClickEvent fire()
BogusEventthis.get() but sets the BogusEvent.fired() flag to true. Only agents
may call this.fire in class BogusEventBogusEvent.flushed()public ClickShortcut shortcut()
shortcut in class BogusEventShortcutpublic float x()
public float y()
public int clickCount()
Processing Library proscene by Jean Pierre Charalambos. (c) 2014-2017 National University of Colombia