public class PreviewMouseEvent extends Object
Mouse event for preview. Contains the event type and graph coordinates for the event.
If you attend a PreviewMouseEvent
, it should be marked as consumed.
The public keyEvent field contains the keyboard state for the given mouse event. Can be null.
Modifier and Type | Class and Description |
---|---|
static class |
PreviewMouseEvent.Button |
static class |
PreviewMouseEvent.Type |
Modifier and Type | Field and Description |
---|---|
PreviewMouseEvent.Button |
button |
KeyEvent |
keyEvent
Contains the keyboard state for the given mouse event.
|
PreviewMouseEvent.Type |
type |
int |
x |
int |
y |
Constructor and Description |
---|
PreviewMouseEvent(int x,
int y,
PreviewMouseEvent.Type type,
PreviewMouseEvent.Button button,
KeyEvent keyEvent) |
Modifier and Type | Method and Description |
---|---|
boolean |
isConsumed() |
void |
setConsumed(boolean consumed) |
public final PreviewMouseEvent.Type type
public final PreviewMouseEvent.Button button
public final int x
public final int y
public final KeyEvent keyEvent
public PreviewMouseEvent(int x, int y, PreviewMouseEvent.Type type, PreviewMouseEvent.Button button, KeyEvent keyEvent)
Copyright © 2007–2015 Gephi Consortium. All rights reserved.