public static Point2D getCenter(Rectangle2D nodeBounds) { double x = midX(nodeBounds); double y = midY(nodeBounds); return new Point2D.Double(x, y); }
public static Point2D getLeft(Rectangle2D nodeBounds) { double x = minX(nodeBounds); double y = midY(nodeBounds); return new Point2D.Double(x, y); }
public static Point2D getRight(Rectangle2D nodeBounds) { double x = maxX(nodeBounds); double y = midY(nodeBounds); return new Point2D.Double(x, y); }