GraphLab Project

graphlab.graph.event
Class EdgeEvent

java.lang.Object
  extended by 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

Field Summary
static int CLICKED
           
static int DRAGGING
           
static int DRAGGING_STARTED
           
 EdgeModel e
           
static java.lang.String EVENT_KEY
           
 int eventType
          dropped is not implemented yet
 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)
 int mouseBtn
           
 GraphPoint mousePos
           
static int RELEASED
           
 
Constructor Summary
EdgeEvent(int eventType, EdgeModel e, GraphPoint mousePos, int mouseBtn, boolean isNotified, boolean isMouseEntered)
           
 
Method Summary
static EdgeEvent clicked(EdgeModel e, GraphPoint mousePos, int mouseBtn)
           
static EdgeEvent dragging(EdgeModel e, GraphPoint mousePos, int mouseBtn)
           
static EdgeEvent draggingStarted(EdgeModel e, GraphPoint mousePos, int mouseBtn)
           
static EdgeEvent released(EdgeModel e, GraphPoint mousePos, int mouseBtn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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)

Constructor Detail

EdgeEvent

public EdgeEvent(int eventType,
                 EdgeModel e,
                 GraphPoint mousePos,
                 int mouseBtn,
                 boolean isNotified,
                 boolean isMouseEntered)
Method Detail

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)

GraphLab Project