graphlab.graph.event
Class VertexEvent
java.lang.Object
graphlab.graph.event.VertexEvent
public class VertexEvent
- extends java.lang.Object
An event which indicates that a vertex action occurred.
- Author:
- azin azadi
- See Also:
GraphEvent
Field Summary |
static int |
CLICKED
|
static int |
DOUBLECLICKED
|
static int |
DRAGGING
|
static int |
DRAGGING_STARTED
|
static int |
DROPPED
DROPPED occurs in the case that mouse started dragging from a vertex and being dropped on another one, in this case
a dropped event will be fired on the second vertex |
static java.lang.String |
EVENT_KEY
|
int |
eventType
|
boolean |
isMouseEntered
in the case that event occurs because of a VERTEX_MOUSE_ENTERED_EXITED event
isMouseEntered will show that is mouse entered to the vertex (true) otherwise mouse exited
from the vertex (false) |
int |
modifiers
|
int |
mouseBtn
|
GraphPoint |
mousePos
|
static int |
NOTIFIED
|
static int |
PRESSED
|
static int |
RELEASED
RELEASED occurs in the case that mouse started dragging from a vertex and dropped on an empty region of the graph,
in this case a RELEASED event will be fired on starting vertex |
VertexModel |
v
|
Method Summary |
static VertexEvent |
clicked(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
|
static VertexEvent |
doubleClicked(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
|
static VertexEvent |
dragging(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
|
static VertexEvent |
draggingStarted(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
|
static VertexEvent |
dropped(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
|
static VertexEvent |
released(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EVENT_KEY
public static final java.lang.String EVENT_KEY
- See Also:
- Constant Field Values
CLICKED
public static final int CLICKED
- See Also:
- Constant Field Values
DROPPED
public static final int DROPPED
- DROPPED occurs in the case that mouse started dragging from a vertex and being dropped on another one, in this case
a dropped event will be fired on the second vertex
- See Also:
- Constant Field Values
DRAGGING_STARTED
public static final int DRAGGING_STARTED
- See Also:
- Constant Field Values
DRAGGING
public static final int DRAGGING
- See Also:
- Constant Field Values
NOTIFIED
public static final int NOTIFIED
- See Also:
- Constant Field Values
PRESSED
public static final int PRESSED
- See Also:
- Constant Field Values
RELEASED
public static final int RELEASED
- RELEASED occurs in the case that mouse started dragging from a vertex and dropped on an empty region of the graph,
in this case a RELEASED event will be fired on starting vertex
- See Also:
- Constant Field Values
DOUBLECLICKED
public static final int DOUBLECLICKED
- See Also:
- Constant Field Values
eventType
public int eventType
v
public VertexModel v
modifiers
public int modifiers
- See Also:
-> getModifiersEx
mousePos
public GraphPoint mousePos
mouseBtn
public int mouseBtn
isMouseEntered
public boolean isMouseEntered
- in the case that event occurs because of a VERTEX_MOUSE_ENTERED_EXITED event
isMouseEntered will show that is mouse entered to the vertex (true) otherwise mouse exited
from the vertex (false)
VertexEvent
public VertexEvent(int eventType,
VertexModel v,
GraphPoint mousePos,
int mouseBtn,
boolean isNotified,
boolean isMouseEntered,
int modifiersEx)
clicked
public static VertexEvent clicked(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
doubleClicked
public static VertexEvent doubleClicked(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
released
public static VertexEvent released(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
dropped
public static VertexEvent dropped(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
draggingStarted
public static VertexEvent draggingStarted(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)
dragging
public static VertexEvent dragging(VertexModel v,
GraphPoint mousePos,
int mouseBtn,
int modifiersEx)