org.sejda.model.parameter
Class CropParameters

java.lang.Object
  extended by org.sejda.model.parameter.base.AbstractParameters
      extended by org.sejda.model.parameter.base.AbstractPdfOutputParameters
          extended by org.sejda.model.parameter.base.SinglePdfSourceSingleOutputParameters
              extended by org.sejda.model.parameter.CropParameters
All Implemented Interfaces:
SingleOutputTaskParameters, SinglePdfSourceTaskParameters, TaskParameters

public class CropParameters
extends SinglePdfSourceSingleOutputParameters

Parameter containing rectangular selection to be cropped on an input pdf source.

Author:
Andrea Vacondio

Constructor Summary
CropParameters()
           
 
Method Summary
 void addCropArea(RectangularBox area)
          adds a area to the crop areas set.
 void clearCropAreas()
          clear crop areas
 boolean equals(Object other)
           
 Set<RectangularBox> getCropAreas()
           
 PdfSource<?> getSource()
           
 int hashCode()
           
 void setSource(PdfSource<?> source)
          Set the source for this parameter.
 
Methods inherited from class org.sejda.model.parameter.base.SinglePdfSourceSingleOutputParameters
getOutput, getOutputName, setOutput, setOutputName
 
Methods inherited from class org.sejda.model.parameter.base.AbstractPdfOutputParameters
getMinRequiredPdfVersion, getVersion, isCompressXref, setCompress, setVersion
 
Methods inherited from class org.sejda.model.parameter.base.AbstractParameters
isOverwrite, setOverwrite
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.sejda.model.parameter.base.TaskParameters
isOverwrite
 

Constructor Detail

CropParameters

public CropParameters()
Method Detail

getCropAreas

public Set<RectangularBox> getCropAreas()
Returns:
an unmodifiable view of the crop areas.

clearCropAreas

public void clearCropAreas()
clear crop areas


addCropArea

public void addCropArea(RectangularBox area)
adds a area to the crop areas set.

Parameters:
area -

hashCode

public int hashCode()
Overrides:
hashCode in class SinglePdfSourceSingleOutputParameters

equals

public boolean equals(Object other)
Overrides:
equals in class SinglePdfSourceSingleOutputParameters

getSource

public PdfSource<?> getSource()
Specified by:
getSource in interface SinglePdfSourceTaskParameters
Returns:
the source for this parameter.

setSource

public void setSource(PdfSource<?> source)
Description copied from interface: SinglePdfSourceTaskParameters
Set the source for this parameter.

Specified by:
setSource in interface SinglePdfSourceTaskParameters


Copyright © 2013 sejda. All Rights Reserved.