public class JDFTransferFunction extends JDFNumList
JDFBaseDataTypes.EnumFitsValuecapacityIncrement, elementCount, elementDatamodCountEPSILON, 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, removeElementAt, replaceElementAt, scale, scaleFromCM, scaleFromMM, scaleToCM, scaleToMM, set, setString, subtract, toString, unifyadd, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSizepublic 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 JDFNumListDataFormatException - - 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 © 2013. All Rights Reserved.