org.sejda.model.parameter
Class CropParameters
java.lang.Object
org.sejda.model.parameter.base.AbstractParameters
org.sejda.model.parameter.base.AbstractPdfOutputParameters
org.sejda.model.parameter.base.SinglePdfSourceSingleOutputParameters
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
CropParameters
public CropParameters()
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.