public class JDFLabColor extends JDFNumList
JDFNumList.NormComparator, JDFNumList.VolumeComparatorJDFBaseDataTypes.EnumFitsValueEPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION| Constructor and Description |
|---|
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(JDFLabColor nl)
constructs a Lab color with all values set via a JDFNumberList
|
JDFLabColor(java.lang.String s)
constructs a Lab color with all values set via a String
|
JDFLabColor(java.util.Vector v)
Deprecated.
use typesafe constructors
|
| Modifier and Type | Method and Description |
|---|---|
static JDFLabColor |
createLabColor(java.lang.String s)
factory for JDFShape that silently returns null in case of illegal strings
|
double |
deltaE(JDFLabColor other)
simple lab distance disregarding all the new fangled calculations
|
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
|
abs, clone, contains, containsAll, copyNumList, doubleAt, elementAt, equals, getDouble, getDoubleList, getDoubleVector, getIntArray, getString, getString, hashCode, intAt, isValidString, matches, max, min, norm, removeElementAt, replaceElementAt, scale, scale, scaleFromCM, scaleFromCM, scaleFromMM, scaleFromMM, scaleToCM, scaleToCM, scaleToMM, scaleToMM, set, setString, setX, shift, sort, subtract, toString, unify, volumeadd, 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, trimToSizepublic JDFLabColor()
@Deprecated
public JDFLabColor(java.util.Vector v)
throws java.util.zip.DataFormatException
v - the given vectorjava.util.zip.DataFormatException - - if the Vector has not a valid formatpublic JDFLabColor(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given Stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic JDFLabColor(JDFLabColor nl)
nl - the given number listjava.util.zip.DataFormatException - - if the String does not have a valid formatpublic JDFLabColor(double l,
double a,
double b)
l - the value La - the value ab - the value bpublic static JDFLabColor createLabColor(java.lang.String s)
s - the string to parse - if JDFXYPair compatible, a 0 z dimension value is assumedpublic boolean isValid()
throws java.util.zip.DataFormatException
isValid in class JDFNumListjava.util.zip.DataFormatException - - 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 colorpublic double deltaE(JDFLabColor other)
other -