public class JDFRectangleRangeList 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 |
|---|
JDFRectangleRangeList()
empty constructor
|
JDFRectangleRangeList(JDFRectangleRangeList rl)
copy constructor
constructs a JDFRectangleRangeList with the given JDFRectangleRangeList |
JDFRectangleRangeList(java.lang.String s)
constructs a JDFRectangleRangeList from a given string
|
| Modifier and Type | Method and Description |
|---|---|
void |
append(JDFRectangle x)
append - adds an individual JDFRectangle element
|
void |
append(JDFRectangle xMin,
JDFRectangle xMax)
append - adds an element defined by two JDFRectangles xMin~xMax
|
void |
append(JDFRectangleRange x)
append - adds an element defined by a JDFRectangleRange
|
static JDFRectangleRangeList |
createRectangleRangeList(java.lang.String s)
factory for JDFRectangleRangeList that silently returns null in case of illegal strings
|
protected java.util.ArrayList<JDFRectangle> |
getOrderedArray() |
boolean |
inRange(JDFRectangle x)
inRange - check whether rectangle 'x' is in the rectangle range defined by 'this'
|
boolean |
isOrdered()
isOrdered - tests if 'this' is an OrderedRangeList
|
boolean |
isUniqueOrdered()
isUniqueOrdered - tests if 'this' is an 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 JDFRectangleRangeList, and converts it into real JDFRectangleRangeList
|
public JDFRectangleRangeList()
public JDFRectangleRangeList(JDFRectangleRangeList rl)
rl - public JDFRectangleRangeList(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 JDFRectangleRangeList createRectangleRangeList(java.lang.String s)
s - the string to parsepublic boolean inRange(JDFRectangle x)
x - rectangle 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(JDFRectangleRange x)
x - the range to append to the listpublic void append(JDFRectangle x)
x - the left and right value of the range to append to the listpublic void append(JDFRectangle xMin, JDFRectangle 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<JDFRectangle> getOrderedArray()
public boolean isUniqueOrdered()
isUniqueOrdered in class JDFRangeList