Search in sources :

Example 26 with HitInfo

use of y.view.HitInfo in project binnavi by google.

the class CEdgeClickedRightState method mouseMoved.

@Override
public IMouseStateChange mouseMoved(final MouseEvent event, final AbstractZyGraph<?, ?> graph) {
    final double x = graph.getEditMode().translateX(event.getX());
    final double y = graph.getEditMode().translateY(event.getY());
    final HitInfo hitInfo = graph.getGraph().getHitInfo(x, y);
    if (hitInfo.hasHitEdges()) {
        return CHitEdgesTransformer.changeEdge(m_factory, event, hitInfo, m_edge);
    } else {
        m_factory.createEdgeExitState(m_edge, event);
        return CHitEdgesTransformer.exitEdge(m_factory, event, hitInfo, this);
    }
}
Also used : HitInfo(y.view.HitInfo)

Aggregations

HitInfo (y.view.HitInfo)26 CStateChange (com.google.security.zynamics.zylib.gui.zygraph.editmode.CStateChange)13 Edge (y.base.Edge)3 Node (y.base.Node)3 EdgeLabel (y.view.EdgeLabel)3 ZyGraphEdge (com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.edges.ZyGraphEdge)2 ZyGraphNode (com.google.security.zynamics.zylib.yfileswrap.gui.zygraph.nodes.ZyGraphNode)2 Bend (y.view.Bend)1 Graph2DView (y.view.Graph2DView)1 HitInfoFactory (y.view.HitInfoFactory)1