public class JDFShapeRangeList extends JDFRangeList
JDFBaseDataTypes.EnumFitsValue
rangeList
EPSILON, 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(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(String s)
factory for JDFShapeRangeList that silently returns null in case of illegal strings
|
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(String s)
isValid - validate the given String
|
void |
setString(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(String s) throws DataFormatException
s
- the given StringDataFormatException
- - if the String has not a valid formatpublic static JDFShapeRangeList createShapeRangeList(String s)
s
- the string to parsepublic boolean inRange(JDFShape x)
x
- shape value to testpublic void setString(String s) throws DataFormatException
s
- string to readDataFormatException
- - if the String has not a valid formatpublic boolean isValid(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 JDFRangeList
public boolean isUniqueOrdered()
isUniqueOrdered
in class JDFRangeList
Copyright © 2018. All rights reserved.