code: private static Arc2D.Double toArc(final Rectangle2D pRectangle, int pStartAngle, int pArcAngle, final boolean pClosed) {
          return new Arc2D.Double(pRectangle, 90 - pStartAngle, -pArcAngle, pClosed ? Arc2D.PIE : Arc2D.OPEN);
      }
docs: Converts a rectangle to an arc.
  
  @param pRectangle  the framing rectangle
  @param pStartAngle start angle in degrees (starting from 12'o clock, this differs from Java)
  @param pArcAngle   rotation angle in degrees (starting from {@code pStartAngle}, this differs from Java arcs)
  @param pClosed     specifies if the arc should be closed
  @return the arc