|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.common.function.PDFunction
org.pdfbox.pdmodel.common.function.PDStreamFunction
This class represents a function in a PDF document.
Constructor Summary | |
protected |
PDStreamFunction(PDDocument doc,
int functionType)
Constructor to create a new blank function, should only be called by subclasses. |
|
PDStreamFunction(PDStream functionDictionary)
Constructor. |
Method Summary | |
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
COSStream |
getCOSStream()
This will get the underlying array value. |
PDRange |
getDomainForInput(int n)
This will get the range for a certain input parameter. |
int |
getNumberOfInputParameters()
This will get the number of input parameters that have a domain specified. |
int |
getNumberOfOutputParameters()
This will get the number of output parameters that have a range specified. |
PDRange |
getRangeForOutput(int n)
This will get the range for a certain output parameters. |
void |
setDomainForInput(PDRange range,
int n)
This will set the domain for the input values. |
void |
setRangeForOutput(PDRange range,
int n)
This will set the a range for output parameter. |
Methods inherited from class org.pdfbox.pdmodel.common.function.PDFunction |
create |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected PDStreamFunction(PDDocument doc, int functionType)
doc
- The document that this function is part of.functionType
- An integer describing the function type, only 0,2,3,4
are defined by the PDF sepc.public PDStreamFunction(PDStream functionDictionary)
functionDictionary
- The prepopulated function dictionary.Method Detail |
public COSBase getCOSObject()
public COSStream getCOSStream()
public int getNumberOfOutputParameters()
getNumberOfOutputParameters
in class PDFunction
public PDRange getRangeForOutput(int n)
getRangeForOutput
in class PDFunction
n
- The output parameter number to get the range for.
public void setRangeForOutput(PDRange range, int n)
setRangeForOutput
in class PDFunction
range
- The new range for the output parameter.n
- The ouput parameter number to set the range for.public int getNumberOfInputParameters()
getNumberOfInputParameters
in class PDFunction
public PDRange getDomainForInput(int n)
getDomainForInput
in class PDFunction
n
- The parameter number to get the domain for.
public void setDomainForInput(PDRange range, int n)
setDomainForInput
in class PDFunction
range
- The new range for the input.n
- The number of the input parameter to set the domain for.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |