samples.preview_new_graphdraw.impl
Class GraphLayoutPanelMouseListener.VertexEventPolicy

java.lang.Object
  extended by samples.preview_new_graphdraw.impl.GraphLayoutPanelMouseListener.VertexEventPolicy
Enclosing class:
GraphLayoutPanelMouseListener

public static class GraphLayoutPanelMouseListener.VertexEventPolicy
extends Object

Only vertex events are fired from this panel. If a click isn't near a vertex, no events are fired.


Constructor Summary
GraphLayoutPanelMouseListener.VertexEventPolicy()
           
 
Method Summary
 void fireEvents(GraphLayoutPanelMouseListener gmpl, MouseEvent me, VisEdge ve, double edgeDist, VisVertex vv, double vertexDistance)
           
 boolean shouldCheckEdgeDistance()
           
 boolean shouldCheckVertexDistance()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphLayoutPanelMouseListener.VertexEventPolicy

public GraphLayoutPanelMouseListener.VertexEventPolicy()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

shouldCheckVertexDistance

public boolean shouldCheckVertexDistance()

shouldCheckEdgeDistance

public boolean shouldCheckEdgeDistance()

fireEvents

public void fireEvents(GraphLayoutPanelMouseListener gmpl,
                       MouseEvent me,
                       VisEdge ve,
                       double edgeDist,
                       VisVertex vv,
                       double vertexDistance)