public class JDFTransferFunction extends JDFNumList
JDFNumList.NormComparator, JDFNumList.VolumeComparator
JDFBaseDataTypes.EnumFitsValue
capacityIncrement, elementCount, elementData
modCount
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION
Constructor and Description |
---|
JDFTransferFunction()
constructs a xy pair with all values set to 0.0 Double
|
JDFTransferFunction(JDFNumList nl)
constructs a number list with the given number list
|
JDFTransferFunction(JDFTransferFunction tf)
copy constructor
constructs a number list with the given transfer function |
JDFTransferFunction(String s)
constructs a number list with the given string the number of tokens must be even
|
JDFTransferFunction(Vector v)
Deprecated.
use typesafe constructors
|
Modifier and Type | Method and Description |
---|---|
void |
add(double x,
double y)
add - adds a x and a y coordinate to the vector
|
void |
add(Double x,
Double y)
add - adds a x and a y coordinate to the vector
|
void |
add(JDFTransferFunction tf)
add - adds a complete transfer function to the vector
|
void |
add(JDFXYPair xy)
add - adds a xy coordinate to the vector
|
void |
add(String s)
add - adds a x and a y coordinate to the vector
|
static JDFTransferFunction |
createTransferFunction(String s)
factory for JDFTransferFunction that silently returns null in case of illegal strings
|
boolean |
isValid()
isValid - true if the size of the vector is even and all instances are Double types
|
abs, clone, contains, containsAll, copyNumList, doubleAt, elementAt, equals, getDoubleList, getIntArray, getString, getString, hashCode, isValidString, matches, norm, removeElementAt, replaceElementAt, scale, scale, scaleFromCM, scaleFromCM, scaleFromMM, scaleFromMM, scaleToCM, scaleToCM, scaleToMM, scaleToMM, set, setString, sort, subtract, toString, unify, volume
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, forEach, get, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
parallelStream, stream
public JDFTransferFunction() throws DataFormatException
DataFormatException
- - if the String has not a valid formatpublic JDFTransferFunction(String s) throws DataFormatException
s
- the given String in number list formatDataFormatException
- - if the String has not a valid format@Deprecated public JDFTransferFunction(Vector v) throws DataFormatException
v
- the number list as a vectorDataFormatException
- - if the Vector has not a valid formatpublic JDFTransferFunction(JDFNumList nl) throws DataFormatException
nl
- the given number listDataFormatException
- - if the String has not a valid formatpublic JDFTransferFunction(JDFTransferFunction tf)
tf
- the given number listDataFormatException
- - if the String has not a valid formatpublic static JDFTransferFunction createTransferFunction(String s)
s
- the string to parsepublic boolean isValid() throws DataFormatException
isValid
in class JDFNumList
DataFormatException
- - if the Vector has not a valid formatpublic void add(JDFXYPair xy)
xy
- the xy coordinate to addpublic void add(Double x, Double y)
x
- the x coordinate to addy
- the y coordinate to addpublic void add(double x, double y)
x
- the x coordinate to addy
- the y coordinate to addpublic void add(String s) throws DataFormatException
s
- a string with the x and y coordinate to addDataFormatException
- - if the String has not a valid formatpublic void add(JDFTransferFunction tf)
tf
- the given transfer function to addCopyright © 2018. All rights reserved.