public class JDFShapeRangeList extends JDFRangeList
JDFBaseDataTypes.EnumFitsValuerangeListEPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION| Constructor and Description |
|---|
JDFShapeRangeList()
empty constructor
|
JDFShapeRangeList(JDFShapeRangeList rl)
copy constructor
constructs a JDFShapeRangeList with the given JDFShapeRangeList |
JDFShapeRangeList(java.lang.String s)
constructs a JDFShapeRangeList from the values of a given String
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(JDFShape x)
append - adds an individual JDFShape element
|
void |
append(JDFShape xMin,
JDFShape xMax)
append - adds an element defined by two JDFShapes: xMin~xMax
|
void |
append(JDFShapeRange x)
append - adds an element defined by a JDFShapeRange
|
static JDFShapeRangeList |
createShapeRangeList(java.lang.String s)
factory for JDFShapeRangeList that silently returns null in case of illegal strings
|
protected java.util.ArrayList<JDFShape> |
getOrderedArray() |
boolean |
inRange(JDFShape x)
inRange - check whether shape 'x' is in the shape range defined by 'this'
|
boolean |
isOrdered()
isOrdered - tests if 'this' is OrderedRangeList
|
boolean |
isUniqueOrdered()
isUniqueOrdered - tests if 'this' is UniqueOrdered RangeList
|
boolean |
isValid(java.lang.String s)
isValid - validate the given String
|
void |
setString(java.lang.String s)
setString - deserialize a string Reads the string, which represents JDFShapeRangeList, and converts it into real JDFShapeRangeList
|
public JDFShapeRangeList()
public JDFShapeRangeList(JDFShapeRangeList rl)
rl - public JDFShapeRangeList(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given Stringjava.util.zip.DataFormatException - - if the String has not a valid formatpublic static JDFShapeRangeList createShapeRangeList(java.lang.String s)
s - the string to parsepublic boolean inRange(JDFShape x)
x - shape value to testpublic void setString(java.lang.String s)
throws java.util.zip.DataFormatException
s - string to readjava.util.zip.DataFormatException - - if the String has not a valid formatpublic boolean isValid(java.lang.String s)
s - the given stringpublic void append(JDFShapeRange x)
x - the range to append to the listpublic void append(JDFShape x)
x - the left and right value of the range to append to the listpublic void append(JDFShape xMin, JDFShape xMax)
xMin - the left value of the range to append to the listxMax - the right value of the range to append to the listpublic boolean isOrdered()
isOrdered in class JDFRangeListprotected java.util.ArrayList<JDFShape> getOrderedArray()
public boolean isUniqueOrdered()
isUniqueOrdered in class JDFRangeList