Point2D pt) {
// Edges have different editor position and size
CellView view = graphLayoutCache.getMapping(cell, false);
if (view instanceof EdgeView) {
EdgeView edgeView = (EdgeView) view;
CellViewRenderer renderer = edgeView.getRenderer();
if (renderer instanceof EdgeRenderer) {
Point2D tmp = ((EdgeRenderer) renderer).getLabelPosition(edgeView);
if (tmp != null) {
pt = tmp;
pt.setLocation(Math.max(0, pt.getX() - editorSize.getWidth()