Package org.jpedal.manipulator
Class AddShape
java.lang.Object
org.jpedal.manipulator.AddShape
- All Implemented Interfaces:
Manipulation
Allows for drawing shapes on a page
-
Constructor Summary
ConstructorsConstructorDescriptionAddShape
(PageRanges pages, Shape[] shapes, DrawParameters[] drawParameters) Adds shapes to the specified pages.AddShape
(PageRanges pages, Shape shape, DrawParameters drawParameters) Adds a shape to the specified pages. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(org.jpedal.io.annotation.utils.AnnotInfo info) Applies the manipulation to the current document
-
Constructor Details
-
AddShape
Adds a shape to the specified pages.- Parameters:
pages
- the pages to draw the shape onshape
- the shape to drawdrawParameters
- the drawing rules to use
-
AddShape
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 onshapes
- the shapes to drawdrawParameters
- the drawing rules to use
-
-
Method Details
-
apply
Description copied from interface:Manipulation
Applies the manipulation to the current document- Specified by:
apply
in interfaceManipulation
- Parameters:
info
- theAnnotInfo
object for the currently loaded document- Throws:
IOException
- if the manipulation cannot be applied to the document
-