Class AddShape

java.lang.Object
org.jpedal.manipulator.AddShape
All Implemented Interfaces:
Manipulation

public class AddShape extends Object implements Manipulation
Allows for drawing shapes on a page
  • Constructor Details

    • AddShape

      public AddShape(PageRanges pages, Shape shape, DrawParameters drawParameters)
      Adds a shape to the specified pages.
      Parameters:
      pages - the pages to draw the shape on
      shape - the shape to draw
      drawParameters - the drawing rules to use
    • AddShape

      public AddShape(PageRanges pages, Shape[] shapes, DrawParameters[] drawParameters)
      Adds shapes to the specified pages.

      Note: shapes and shapeParameters should be arrays of the same length as shapeParameters[i] is used to draw shapes[i].

      Parameters:
      pages - the pages to draw the shape on
      shapes - the shapes to draw
      drawParameters - the drawing rules to use
  • Method Details

    • apply

      public void apply(org.jpedal.io.annotation.utils.AnnotInfo info) throws IOException
      Description copied from interface: Manipulation
      Applies the manipulation to the current document
      Specified by:
      apply in interface Manipulation
      Parameters:
      info - the AnnotInfo object for the currently loaded document
      Throws:
      IOException - if the manipulation cannot be applied to the document