protected static void updateBezierControlPoints(CubicCurve wire){
  double yOffset=getBezierYOffset(wire);
  wire.setControlX1(wire.getStartX());
  wire.setControlY1(wire.getStartY() + yOffset);
  wire.setControlX2(wire.getEndX());
  wire.setControlY2(wire.getEndY() - yOffset);
}

protected static void updateBezierControlPoints ( CubicCurve wire ) { double yOffset = getBezierYOffset ( wire ) ; wire . setControlX1 ( wire . getStartX ( ) ) ; wire . setControlY1 ( wire . getStartY ( ) + yOffset ) ; wire . setControlX2 ( wire . getEndX ( ) ) ; wire . setControlY2 ( wire . getEndY ( ) - yOffset ) ; }
updates the bezier offset ( curviness ) according to the current start and end positions .
