public class JDFDurationRange extends JDFRange
JDFBaseDataTypes.EnumFitsValue
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 |
---|
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(String s)
Construct a JDFDurationRange from a string
|
Modifier and Type | Method and Description |
---|---|
JDFDuration |
getLeft()
getLeft - get the left of the two range deliminators xmin ~ xmax
|
protected Object |
getLeftObject() |
JDFDuration |
getLowerValue()
getLowerValue - returns the lower value of the bounds
|
JDFDuration |
getRight()
getRight - get the right of the two range deliminators xmin ~ xmax
|
protected Object |
getRightObject() |
JDFDuration |
getUpperValue()
getUpperValue - returns the upper value of the bounds
|
protected void |
init(JDFDuration xmin,
JDFDuration xmax)
Initialization
|
protected boolean |
inObjectRange(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(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
|
String |
toString()
toString
|
public JDFDurationRange()
public JDFDurationRange(JDFDuration x)
public JDFDurationRange(JDFDuration xmin, JDFDuration xmax)
public JDFDurationRange(JDFDurationRange r)
public JDFDurationRange(String s) throws DataFormatException
DataFormatException
- - if the String has not a valid formatprotected void init(JDFDuration xmin, JDFDuration xmax)
public boolean isValid(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 JDFRange
r
- 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 Object getRightObject()
getRightObject
in class JDFRange
protected Object getLeftObject()
getLeftObject
in class JDFRange
protected boolean inObjectRange(Object other)
inObjectRange
in class JDFRange
Copyright © 2018. All rights reserved.