/** * Returns the label position of the specified view in the given graph. */ public Point2D getLabelPosition(EdgeView view) { setView(view); return getLabelPosition(view.getLabelPosition()); }
double relativeX = getLabelPosition().getX()/(double)GraphConstants.PERMILLE; double labelXPositionDistance = relativeX * totalLength; totalLength = 0;
double relativeX = getLabelPosition().getX()/(double)GraphConstants.PERMILLE; double labelXPositionDistance = relativeX * totalLength; totalLength = 0;
Point2D labelPos = edge.getLabelPosition(); if (labelPos != null) { double x = labelPos.getX();
.getAllAttributes()); if (label) { location = (Point2D) edge.getLabelPosition().clone(); value = graph.convertValueToString(orig); edge.setLabelPosition(initialLabelLocation);
&& !isAddPointEvent(event) && !isRemovePointEvent(event) && graph.getEdgeLabelsMovable()) { initialLabelLocation = (Point2D) edge.getLabelPosition() .clone(); label = true;