Class DrawShape

    • Field Detail

      • shape

        protected final Shape<?,​?> shape
    • Constructor Detail

      • DrawShape

        public DrawShape​(Shape<?,​?> shape)
    • Method Detail

      • applyTransform

        public void applyTransform​(Graphics2D graphics)
        Apply 2-D transforms before drawing this shape. This includes rotation and flipping.
        Specified by:
        applyTransform in interface Drawable
        Parameters:
        graphics - the graphics whose transform matrix will be modified
      • draw

        public void draw​(Graphics2D graphics)
        Description copied from interface: Drawable
        Draw this shape into the supplied canvas
        Specified by:
        draw in interface Drawable
        Parameters:
        graphics - the graphics to draw into
      • drawContent

        public void drawContent​(Graphics2D graphics)
        Description copied from interface: Drawable
        draw any content within this shape (image, text, etc.).
        Specified by:
        drawContent in interface Drawable
        Parameters:
        graphics - the graphics to draw into
      • getShape

        protected Shape<?,​?> getShape()