Class DrawSheet

    • Field Detail

      • sheet

        protected final Sheet<?,​?> sheet
    • Constructor Detail

      • DrawSheet

        public DrawSheet​(Sheet<?,​?> sheet)
    • Method Detail

      • 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
      • applyTransform

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

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

        protected boolean canDraw​(Graphics2D graphics,
                                  Shape<?,​?> shape)
        Checks if this sheet displays the specified shape. Subclasses can override it and skip certain shapes from drawings, for instance, slide masters and layouts don't display placeholders