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 |
private boolean |
consumed |
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) |
public final PreviewMouseEvent.Type type
public final PreviewMouseEvent.Button button
public final int x
public final int y
private boolean consumed
public final KeyEvent keyEvent
public PreviewMouseEvent(int x,
int y,
PreviewMouseEvent.Type type,
PreviewMouseEvent.Button button,
KeyEvent keyEvent)
Copyright © 2007–2016 Gephi Consortium. All rights reserved.