}
// layout.getLocation applies the layout transformer so
// q is transformed by the layout transformer only
Point2D q = layout.getLocation(vertex);
// transform the mouse point to graph coordinate system
Point2D gp = vv.inverseLayoutTransform(ip);
offsetx = (float) (gp.getX()-q.getX());
offsety = (float) (gp.getY()-q.getY());
} else if(isPickingEdges() &&
(edge = pickSupport.getEdge(ip.getX(), ip.getY())) != null) {