Geometric shapes are organized in an object-oriented fashion
To draw a shape, create an object of a class that implements the Shape interface and then call the draw() or fill() method of the Graphics2D class.
setStroke() - Set the line width.
Rectangle2D.Double(double x, double y, double w, double h)
Rectangle2D.Float(float x, float y, float w, float h)
Ellipse2D.Double(double x, double y, double w, double h)
Ellipse2D.Float(float x, float y, float w, float h)
Point2D.Double(double x, double y)
Line2D.Double(Point2D start, Point2D end)
Line2D.Double(double startX, double startY, double endX, double endY)
Arc2D.Double(double x, double y, double w, double h, double start, double extent, int type)
Arc2D.Float(float x, float y, float w, float h, float start, float extent, int type)
RoundRectangle2D.Double(double x, double y, double w, double h, double arcw, double arch)
RoundRectangle2D.Float(float x, float y, float w, float h, float arcw, float arch)