| java.lang.Object org.pdfbox.pdmodel.common.function.PDFunction org.pdfbox.pdmodel.common.function.PDStreamFunction
All known Subclasses: org.pdfbox.pdmodel.common.function.PDFunctionType4, org.pdfbox.pdmodel.common.function.PDFunctionType0,
PDStreamFunction | abstract public class PDStreamFunction extends PDFunction (Code) | | This class represents a function in a PDF document.
author: Ben Litchfield version: $Revision: 1.3 $ |
PDStreamFunction | protected PDStreamFunction(PDDocument doc, int functionType)(Code) | | Constructor to create a new blank function, should only be called by
subclasses.
Parameters: doc - The document that this function is part of. Parameters: functionType - An integer describing the function type, only 0,2,3,4are defined by the PDF sepc. |
PDStreamFunction | public PDStreamFunction(PDStream functionDictionary)(Code) | | Constructor.
Parameters: functionDictionary - The prepopulated function dictionary. |
getCOSObject | public COSBase getCOSObject()(Code) | | Convert this standard java object to a COS object.
The cos object that matches this Java object. |
getCOSStream | public COSStream getCOSStream()(Code) | | This will get the underlying array value.
The cos object that this object wraps. |
getDomainForInput | public PDRange getDomainForInput(int n)(Code) | | This will get the range for a certain input parameter. This is will never
return null. If it is not present then the range 0 to 0 will
be returned.
Parameters: n - The parameter number to get the domain for. The domain range for this component. |
getNumberOfInputParameters | public int getNumberOfInputParameters()(Code) | | This will get the number of input parameters that
have a domain specified.
The number of input parameters that have a domainspecified. |
getNumberOfOutputParameters | public int getNumberOfOutputParameters()(Code) | | This will get the number of output parameters that
have a range specified. A range for output parameters
is optional so this may return zero for a function
that does have output parameters, this will simply return the
number that have the rnage specified.
The number of input parameters that have a rangespecified. |
getRangeForOutput | public PDRange getRangeForOutput(int n)(Code) | | This will get the range for a certain output parameters. This is will never
return null. If it is not present then the range 0 to 0 will
be returned.
Parameters: n - The output parameter number to get the range for. The range for this component. |
setDomainForInput | public void setDomainForInput(PDRange range, int n)(Code) | | This will set the domain for the input values.
Parameters: range - The new range for the input. Parameters: n - The number of the input parameter to set the domain for. |
setRangeForOutput | public void setRangeForOutput(PDRange range, int n)(Code) | | This will set the a range for output parameter.
Parameters: range - The new range for the output parameter. Parameters: n - The ouput parameter number to set the range for. |
|
|