|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.pd.PDObject
de.intarsys.pdf.pd.PDFunction
de.intarsys.pdf.pd.PDSampledFunction
public class PDSampledFunction
Function implementation based on samples.
Nested Class Summary | |
---|---|
static class |
PDSampledFunction.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static COSName |
DK_BitsPerSample
|
static COSName |
DK_Decode
|
static COSName |
DK_Encode
|
static COSName |
DK_Order
|
static COSName |
DK_Size
|
static PDSampledFunction.MetaClass |
META
The meta class instance |
Fields inherited from class de.intarsys.pdf.pd.PDFunction |
---|
DK_Domain, DK_FunctionType, DK_Range |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Method Summary | |
---|---|
COSArray |
cosGetDecode()
Return the Decode value array. |
COSDictionary |
cosGetDict()
Get the base object as a COSDictionary . |
COSArray |
cosGetEncode()
Return the Encode value array |
float[] |
evaluate(float[] input)
Evaluate the function for each of the input values in turn. |
int |
getBitsPerSample()
Return the BitsPerSample value. |
float |
getDecodeMax(int dimension)
Return the max value of the Decode array for the given dimension. |
float |
getDecodeMin(int dimension)
Return the min value of the Decode array for the given dimension. |
float |
getEncodeMax(int dimension)
Return the max value of the Encode array for the given dimension. |
float |
getEncodeMin(int dimension)
Return the min value of the Encode array for the given dimension. |
int |
getOutputSize()
Return the number of output values for one input value. |
COSArray |
getSize()
Return the Size value array. |
int |
getSize(int dimension)
Return the size value for the given dimension. |
Methods inherited from class de.intarsys.pdf.pd.PDFunction |
---|
cosGetDomain, getDomainMax, getDomainMin, getInputSize, getRange, getRangeMax, getRangeMin |
Methods inherited from class de.intarsys.pdf.pd.PDObject |
---|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toString |
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final COSName DK_BitsPerSample
public static final COSName DK_Decode
public static final COSName DK_Encode
public static final COSName DK_Order
public static final COSName DK_Size
public static final PDSampledFunction.MetaClass META
Method Detail |
---|
public COSDictionary cosGetDict()
COSBasedObject
COSDictionary
.
This will throw a ClassCastException
if the base type is not
appropriate!
cosGetDict
in class COSBasedObject
COSDictionary
.public float[] evaluate(float[] input)
evaluate
in class PDFunction
input
- input values to evaluate
public int getBitsPerSample()
public COSArray cosGetDecode()
public float getDecodeMax(int dimension)
dimension
- the dimension to get the max value for
public float getDecodeMin(int dimension)
dimension
- the dimension to get the min value for
public COSArray cosGetEncode()
public float getEncodeMax(int dimension)
dimension
- the dimension to get the max value for
public float getEncodeMin(int dimension)
dimension
- the dimension to get the min value for
public int getOutputSize()
getOutputSize
in class PDFunction
public COSArray getSize()
public int getSize(int dimension)
dimension
- the dimension to get the size value for
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |