public class PDFFunction extends PDFObject
Constructor and Description |
---|
PDFFunction(Function function) |
PDFFunction(Function function,
java.util.List<PDFFunction> pdfFunctions) |
PDFFunction(java.util.List<java.lang.Double> domain,
java.util.List<java.lang.Double> range,
float[] cZero,
float[] cOne,
double interpolationExponentN)
create an complete Function object of Type 2, an Exponential Interpolation function.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
contentEquals(PDFObject obj)
Check if the other PDFObject has the same content as the current object.
|
Function |
getFunction() |
byte[] |
toByteString() |
byte[] |
toPDF()
represent as PDF.
|
encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getChildren, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent, toPDFString
public PDFFunction(java.util.List<java.lang.Double> domain, java.util.List<java.lang.Double> range, float[] cZero, float[] cOne, double interpolationExponentN)
domain
- List objects of Double objects.
This is the domain of the function.
See page 264 of the PDF 1.3 Spec.range
- List of Doubles that is the Range of the function.
See page 264 of the PDF 1.3 Spec.cZero
- This is a vector of Double objects which defines the function result
when x=0.
This attribute is optional.
It's described on page 268 of the PDF 1.3 spec.cOne
- This is a vector of Double objects which defines the function result
when x=1.
This attribute is optional.
It's described on page 268 of the PDF 1.3 spec.interpolationExponentN
- This is the inerpolation exponent.
This attribute is required.
PDF Spec page 268public PDFFunction(Function function)
public PDFFunction(Function function, java.util.List<PDFFunction> pdfFunctions)
public Function getFunction()
public byte[] toPDF()
public byte[] toByteString()
protected boolean contentEquals(PDFObject obj)
Note: This function has a contract which is less binding than
Object.equals(Object)
. Whereas equals would require all values to be
identical, this method is not required to check everything. In the case
of PDFObjects, this means that the overriding function does not have to
check for PDFObject.getObjectID()
.
contentEquals
in class PDFObject
obj
- object to compare to.Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.