|
||||||||||
| 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.JDFLabColor
public class JDFLabColor
This class is a representation of a Lab color (JDFLabColor). It is a blank separated list of double values consisting of L, a and b value.
| 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 | |
|---|---|
JDFLabColor()
constructs a Lab color with all values set to 0.0 Double |
|
JDFLabColor(double l,
double a,
double b)
constructs a new Lab color with the given double values |
|
JDFLabColor(JDFNumList nl)
constructs a Lab color with all values set via a JDFNumberList |
|
JDFLabColor(String s)
constructs a Lab color with all values set via a String |
|
JDFLabColor(Vector v)
Deprecated. use typesafe constructors |
|
| Method Summary | |
|---|---|
static JDFLabColor |
createLabColor(String s)
factory for JDFShape that silently returns null in case of illegal strings |
double |
getA()
getA - returns the value a of the Lab color |
double |
getB()
getB - returns the value b of the Lab color |
double |
getL()
getL - returns the value L of the Lab color |
boolean |
isValid()
isValid - true if the size of the vector is 3 and all objects are Double types |
void |
setA(double a)
setA - sets the value a of the Lab color |
void |
setB(double b)
setB - sets the value b of the Lab color |
void |
setL(double l)
setL - sets the value L of the Lab color |
| 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 JDFLabColor()
@Deprecated
public JDFLabColor(Vector v)
throws DataFormatException
v - the given vector
DataFormatException - - if the Vector has not a valid format
public JDFLabColor(String s)
throws DataFormatException
s - the given String
DataFormatException - - if the String has not a valid format
public JDFLabColor(JDFNumList nl)
throws DataFormatException
nl - the given number list
DataFormatException - - if the String does not have a valid format
public JDFLabColor(double l,
double a,
double b)
l - the value La - the value ab - the value b| Method Detail |
|---|
public static JDFLabColor createLabColor(String s)
s - the string to parse - if JDFXYPair compatible, a 0 z dimension value is assumed
public boolean isValid()
throws DataFormatException
isValid in class JDFNumListDataFormatException - - if the Vector has not a valid formatpublic double getL()
public void setL(double l)
l - the value L of the Lab colorpublic double getA()
public void setA(double a)
a - the value a of the Lab colorpublic double getB()
public void setB(double b)
b - the value b of the Lab color
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||