public class JDFShapeRange 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 |
|---|
JDFShapeRange()
constructs a shape pair range with all values set to 0.0 Double
|
JDFShapeRange(JDFShape x)
constructs a JDFShapeRange, both values are equal ("from x to x")
|
JDFShapeRange(JDFShape xmin,
JDFShape xmax)
constructor a JDFShapeRange with two JDFShape values ("from xmin to xmax")
|
JDFShapeRange(JDFShapeRange r)
copy constructor
constructs a JDFShapeRange with the given JDFShapeRange |
JDFShapeRange(java.lang.String s)
constructs a JDFShapeRange with the values of the given String
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
equals - returns true if both JDFShapeRanges are equal otherwise false
|
JDFShape |
getLeft()
getLeft - gets the left JDFShape object of the range
|
protected java.lang.Object |
getLeftObject() |
java.lang.String |
getLeftString(int precision) |
JDFShape |
getLowerValue()
getLowerValue - returns the lower value of the bounds
|
JDFShape |
getRight()
getRight - gets the right JDFShape object of the range
|
protected java.lang.Object |
getRightObject() |
java.lang.String |
getRightString(int precision) |
JDFShape |
getUpperValue()
getUpperValue - returns the upper value of the bounds
|
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract
|
protected void |
init(JDFShape x,
JDFShape y)
Initialization
|
protected boolean |
inObjectRange(java.lang.Object other) |
boolean |
inRange(JDFShape x)
inRange - tests if the given x inside of this range
|
boolean |
isPartOfRange(JDFRange ra)
isPartOfRange - is range 'r' within this range?
|
boolean |
isValid(java.lang.String s)
isValid - validate the given String
|
void |
setLeft(JDFShape x)
sets the left JDFShape object of the range
|
void |
setRight(JDFShape x)
sets the right JDFShape object of the range
|
getString, getXJDFString, toStringpublic JDFShapeRange()
public JDFShapeRange(JDFShape x)
x - the given JDFShapepublic JDFShapeRange(JDFShape xmin, JDFShape xmax)
xmin - the given min valuexmax - the given max valuepublic JDFShapeRange(JDFShapeRange r)
r - public JDFShapeRange(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given string representation of the rangejava.util.zip.DataFormatException - - if the String has not a valid formatpublic java.lang.String getRightString(int precision)
getRightString in class JDFRangepublic java.lang.String getLeftString(int precision)
getLeftString in class JDFRangeprotected void init(JDFShape x, JDFShape y)
x - left boundaryy - right boundarypublic boolean isValid(java.lang.String s)
s - the given stringpublic boolean equals(java.lang.Object other)
public int hashCode()
public boolean inRange(JDFShape x)
x - comparison valuepublic boolean isPartOfRange(JDFRange ra)
isPartOfRange in class JDFRanger - the range to testpublic JDFShape getLeft()
public JDFShape getRight()
public void setLeft(JDFShape x)
x - the left JDFShape object of the rangepublic void setRight(JDFShape x)
x - the right JDFShape object of the rangepublic JDFShape getUpperValue()
public JDFShape getLowerValue()
protected java.lang.Object getRightObject()
getRightObject in class JDFRangeprotected java.lang.Object getLeftObject()
getLeftObject in class JDFRangeprotected boolean inObjectRange(java.lang.Object other)
inObjectRange in class JDFRange