public class JDFDurationRange extends JDFRange
JDFBaseDataTypes.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 |
|---|
JDFDurationRange()
Empty range constructor
|
JDFDurationRange(JDFDuration x)
Constructor - creates a Duration range defined by x
|
JDFDurationRange(JDFDuration xmin,
JDFDuration xmax)
Constructor - creates a Duration range defined by xmin to xmax
|
JDFDurationRange(JDFDurationRange r)
copy constructor
|
JDFDurationRange(java.lang.String s)
Construct a JDFDurationRange from a string
|
| Modifier and Type | Method and Description |
|---|---|
static JDFDurationRange |
createDurationRange(java.lang.String duration) |
JDFDuration |
getLeft()
getLeft - get the left of the two range deliminators xmin ~ xmax
|
protected JDFDuration |
getLeftObject() |
java.lang.String |
getLeftString(int precision) |
JDFDuration |
getLowerValue()
getLowerValue - returns the lower value of the bounds
|
JDFDuration |
getRight()
getRight - get the right of the two range deliminators xmin ~ xmax
|
protected JDFDuration |
getRightObject() |
java.lang.String |
getRightString(int precision) |
JDFDuration |
getUpperValue()
getUpperValue - returns the upper value of the bounds
|
protected void |
init(JDFDuration xmin,
JDFDuration xmax)
Initialization
|
protected boolean |
inObjectRange(java.lang.Object other) |
boolean |
inRange(JDFDuration x)
inRange - returns true if 'x' is within the range defined by 'this'
|
boolean |
isPartOfRange(JDFRange ra)
isPartOfRange - is range 'r' within this range?
|
boolean |
isValid(java.lang.String s)
isValid - validate the given String
|
void |
setLeft(JDFDuration x)
setLeft - sets the left JDFDuration object of the range
|
void |
setRight(JDFDuration x)
setRight - sets the right JDFDuration object of the range
|
public JDFDurationRange()
public JDFDurationRange(JDFDuration x)
public JDFDurationRange(JDFDuration xmin, JDFDuration xmax)
public JDFDurationRange(JDFDurationRange r)
public JDFDurationRange(java.lang.String s)
throws java.util.zip.DataFormatException
java.util.zip.DataFormatException - - if the String has not a valid formatprotected void init(JDFDuration xmin, JDFDuration xmax)
public boolean isValid(java.lang.String s)
s - the given stringpublic boolean inRange(JDFDuration x)
x - JDFDuration that is to be compared with 'this'public boolean isPartOfRange(JDFRange ra)
isPartOfRange in class JDFRanger - the range to testpublic JDFDuration getLeft()
public JDFDuration getRight()
public void setLeft(JDFDuration x)
x - the left JDFDuration object of the rangepublic void setRight(JDFDuration x)
x - the right JDFDuration object of the rangepublic JDFDuration getUpperValue()
public JDFDuration getLowerValue()
protected JDFDuration getRightObject()
getRightObject in class JDFRangeprotected JDFDuration getLeftObject()
getLeftObject in class JDFRangeprotected boolean inObjectRange(java.lang.Object other)
inObjectRange in class JDFRangepublic java.lang.String getRightString(int precision)
getRightString in class JDFRangepublic java.lang.String getLeftString(int precision)
getLeftString in class JDFRangepublic static JDFDurationRange createDurationRange(java.lang.String duration)