Class GImage

    • Field Detail

      • image

        private final ImageIcon image
        the Image to be shown
    • Method Detail

      • draw

        public void draw​(Graphics2D g)
        draw the image to the canvas. When the Image is invisible, draw a rectangle with dash lines to represent invisible images
        Specified by:
        draw in class GObject
        Parameters:
        g - the Graphics to paint