|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<Object>
org.cip4.jdflib.datatypes.JDFNumList
org.cip4.jdflib.datatypes.JDFTransferFunction
public class JDFTransferFunction
This class is a representation of a whitespace separated list of numbers representing a set of XY coordinates of a transfer function. The total number of x y values must be even because of the pairs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
JDFBaseDataTypes.EnumFitsValue |
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Fields inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.cip4.jdflib.datatypes.JDFNumList |
|---|
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, unify |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, get, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public JDFTransferFunction()
throws DataFormatException
DataFormatException - - if the String has not a valid format
public JDFTransferFunction(String s)
throws DataFormatException
s - the given String in number list format
DataFormatException - - if the String has not a valid format
@Deprecated
public JDFTransferFunction(Vector v)
throws DataFormatException
v - the number list as a vector
DataFormatException - - if the Vector has not a valid format
public JDFTransferFunction(JDFNumList nl)
throws DataFormatException
nl - the given number list
DataFormatException - - if the String has not a valid formatpublic JDFTransferFunction(JDFTransferFunction tf)
tf - the given number list
DataFormatException - - if the String has not a valid format| Method Detail |
|---|
public static JDFTransferFunction createTransferFunction(String s)
s - the string to parse
public 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 add
public void add(Double x,
Double y)
x - the x coordinate to addy - the y coordinate to add
public void add(double x,
double y)
x - the x coordinate to addy - the y coordinate to add
public void add(String s)
throws DataFormatException
s - a string with the x and y coordinate to add
DataFormatException - - if the String has not a valid formatpublic void add(JDFTransferFunction tf)
tf - the given transfer function to add
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||