samples.preview_new_graphdraw.impl
Class GraphLayoutPanelMouseListener.EdgeAndVertexPolicy
java.lang.Object
samples.preview_new_graphdraw.impl.GraphLayoutPanelMouseListener.EdgeAndVertexPolicy
- All Implemented Interfaces:
- samples.preview_new_graphdraw.impl.GraphLayoutPanelMouseListener.ClickPolicy
- Enclosing class:
- GraphLayoutPanelMouseListener
- public static final class GraphLayoutPanelMouseListener.EdgeAndVertexPolicy
- extends Object
- implements samples.preview_new_graphdraw.impl.GraphLayoutPanelMouseListener.ClickPolicy
Either an edge event or a vertex event is fired from this panel.
If the click is close to a vertex, a vertex event is fired;
otherwise, if the click is close to an edge, the edge event.
GraphLayoutPanelMouseListener.EdgeAndVertexPolicy
public GraphLayoutPanelMouseListener.EdgeAndVertexPolicy()
toString
public String toString()
shouldCheckVertexDistance
public boolean shouldCheckVertexDistance()
- Specified by:
shouldCheckVertexDistance
in interface samples.preview_new_graphdraw.impl.GraphLayoutPanelMouseListener.ClickPolicy
shouldCheckEdgeDistance
public boolean shouldCheckEdgeDistance()
- Specified by:
shouldCheckEdgeDistance
in interface samples.preview_new_graphdraw.impl.GraphLayoutPanelMouseListener.ClickPolicy
fireEvents
public void fireEvents(GraphLayoutPanelMouseListener gmpl,
MouseEvent me,
VisEdge ve,
double edgeDist,
VisVertex vv,
double vertexDistance)
- Specified by:
fireEvents
in interface samples.preview_new_graphdraw.impl.GraphLayoutPanelMouseListener.ClickPolicy