if(debug) System.err.println("edge: (" + getFrom().name + ": " + getFrom().getCenterX() + "," + getFrom().getCenterY() + ") -> (" +
to.name + ": " + to.getCenterX() + "," + to.getCenterY() + ")");
double globalX = globalLocation.getX();
double globalY = globalLocation.getY();
Coordinate centerFrom = getFrom().figure.getGlobalCenter();
Coordinate centerTo = getTo().figure.getGlobalCenter();
applyProperties(gc);
gc.line(centerFrom.getX(), centerFrom.getY(), centerTo.getX(), centerTo.getY());
if(toArrow != null){
getTo().figure.connectArrowFrom(
globalX + getTo().getCenterX(), globalY + getTo().getCenterY(),
globalX + getFrom().getCenterX(), globalY + getFrom().getCenterY(),