Class GRectangle

  • All Implemented Interfaces:
    Serializable

    public class GRectangle
    extends GObject
    The rectangle objects
    Author:
    Zhijie Lan

    create date: 2020/11/1

    See Also:
    Serialized Form
    • Constructor Detail

      • GRectangle

        public GRectangle​(double x,
                          double y,
                          double w,
                          double h,
                          Color col,
                          Boolean filled,
                          int lineWidth)
    • Method Detail

      • draw

        public void draw​(Graphics2D g)
        generate the shape to draw
        Specified by:
        draw in class GObject
        Parameters:
        g - the Graphics to paint