|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pdfclown.objects.PdfObjectWrapper<TDataObject> org.pdfclown.documents.functions.Function<TDataObject>
@PDF(value=PDF12) public abstract class Function<TDataObject extends PdfDataObject>
Function [PDF:1.6:3.9].
Nested Class Summary | |
---|---|
protected static interface |
Function.IDefaultIntervalsCallback<T extends Comparable<T>>
Default intervals callback. |
Constructor Summary | |
---|---|
protected |
Function(Document context,
TDataObject baseDataObject)
|
protected |
Function(PdfDirectObject baseObject)
|
Method Summary | ||
---|---|---|
abstract double[] |
calculate(double[] inputs)
Gets the result of the calculation applied by this function to the specified input values. |
|
List<PdfDirectObject> |
calculate(List<PdfDirectObject> inputs)
Gets the result of the calculation applied by this function to the specified input values. |
|
protected PdfDictionary |
getDictionary()
Gets this function's dictionary. |
|
List<Interval<Double>> |
getDomains()
Gets the (inclusive) domains of the input values. |
|
int |
getInputCount()
Gets the number of input values (parameters) of this function. |
|
protected
|
getIntervals(PdfName key,
Function.IDefaultIntervalsCallback<T> defaultIntervalsCallback)
Gets the intervals corresponding to the specified key. |
|
int |
getOutputCount()
Gets the number of output values (results) of this function. |
|
List<Interval<Double>> |
getRanges()
Gets the (inclusive) ranges of the output values. |
|
static Function<?> |
wrap(PdfDirectObject baseObject)
Wraps a function base object into a function object. |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
---|
checkCompatibility, clone, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Function(Document context, TDataObject baseDataObject)
protected Function(PdfDirectObject baseObject)
Method Detail |
---|
public static final Function<?> wrap(PdfDirectObject baseObject)
baseObject
- Function base object.
public abstract double[] calculate(double[] inputs)
inputs
- Input values.public final List<PdfDirectObject> calculate(List<PdfDirectObject> inputs)
inputs
- Input values.public List<Interval<Double>> getDomains()
Input values outside the declared domains are clipped to the nearest boundary value.
public int getInputCount()
public int getOutputCount()
public List<Interval<Double>> getRanges()
Output values outside the declared ranges are clipped to the nearest boundary value; if this entry is absent, no clipping is done.
null
in case of unbounded ranges.protected final PdfDictionary getDictionary()
protected final <T extends Comparable<T>> List<Interval<T>> getIntervals(PdfName key, Function.IDefaultIntervalsCallback<T> defaultIntervalsCallback)
|
PDF Clown 0.1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |