public class JDFNumberRangeList 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 |
---|
JDFNumberRangeList()
constructs an empty JDFNumberRangeList
|
JDFNumberRangeList(JDFNumberRange r)
constructs a JDFNumberRangeList from the given JDFNumberRange
|
JDFNumberRangeList(JDFNumberRangeList rl)
constructs a JDFNumberRangeList from the given JDFNumberRangeList
|
JDFNumberRangeList(String s)
constructs a JDFNumberRangeList from a given string
|
Modifier and Type | Method and Description |
---|---|
void |
append(double x)
append - appends a new range to the range list
|
void |
append(double xMin,
double xMax)
append - appends a new range to the range list
|
void |
append(JDFNumberRange r)
append - appends a JDFNumberRange to this number range
|
static JDFNumberRangeList |
createNumberRangeList(String s)
factory for JDFNumberRangeList that silently returns null in case of illegal strings
|
boolean |
inRange(double x)
inRange - returns true if the given double value is in one of the ranges of the range list
|
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 - parse the given string and set the Number ranges
|
public JDFNumberRangeList()
public JDFNumberRangeList(String s) throws DataFormatException
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic JDFNumberRangeList(JDFNumberRangeList rl)
rl
- the given JDFNumberRangeListpublic JDFNumberRangeList(JDFNumberRange r)
r
- the given JDFNumberRangepublic static JDFNumberRangeList createNumberRangeList(String s)
s
- the string to parsepublic boolean inRange(double x)
x
- the given double value to comparepublic void setString(String s) throws DataFormatException
s
- the given stringDataFormatException
- - if the String has not a valid formatpublic boolean isValid(String s)
s
- the given stringpublic void append(JDFNumberRange r)
r
- the given number rangepublic void append(double xMin, double xMax)
xMin
- the min value of the new rangexMax
- the max value of the new rangepublic void append(double x)
x
- the min and the max value of the new rangepublic boolean isOrdered()
isOrdered
in class JDFRangeList
public boolean isUniqueOrdered()
isUniqueOrdered
in class JDFRangeList
Copyright © 2018. All rights reserved.