graphlab.graph.event
Class EdgeEvent
java.lang.Object
graphlab.graph.event.EdgeEvent
public class EdgeEvent
- extends java.lang.Object
An event which indicates that a Edge action occurred.
- Author:
- Azin Azadi ,roozbeh ebrahimi
- See Also:
GraphEvent
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
RELEASED
public static final int RELEASED
- See Also:
- Constant Field Values
DRAGGING
public static final int DRAGGING
- See Also:
- Constant Field Values
DRAGGING_STARTED
public static final int DRAGGING_STARTED
- See Also:
- Constant Field Values
eventType
public int eventType
- dropped is not implemented yet
e
public EdgeModel e
mousePos
public GraphPoint mousePos
mouseBtn
public int mouseBtn
isMouseEntered
public boolean isMouseEntered
- in the case that event occurs because of a EDGE_MOUSE_ENTERED_EXITED event
isMouseEntered will show that is mouse entered to the vertex (true) otherwise mouse exited
from the vertex (false)
EdgeEvent
public EdgeEvent(int eventType,
EdgeModel e,
GraphPoint mousePos,
int mouseBtn,
boolean isNotified,
boolean isMouseEntered)
clicked
public static EdgeEvent clicked(EdgeModel e,
GraphPoint mousePos,
int mouseBtn)
released
public static EdgeEvent released(EdgeModel e,
GraphPoint mousePos,
int mouseBtn)
draggingStarted
public static EdgeEvent draggingStarted(EdgeModel e,
GraphPoint mousePos,
int mouseBtn)
dragging
public static EdgeEvent dragging(EdgeModel e,
GraphPoint mousePos,
int mouseBtn)