|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cip4.jdflib.datatypes.JDFRange
org.cip4.jdflib.datatypes.JDFRectangleRange
public class JDFRectangleRange
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
JDFBaseDataTypes.EnumFitsValue |
| Field Summary |
|---|
| Fields inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
EPSILON, MAX_CMYK_COLOR, MAX_LAB_COLOR, MAX_MATRIX_DIMENSION, MAX_RECTANGLE_DIMENSION, MAX_RGB_COLOR, MAX_SHAPE_DIMENSION, MAX_XY_DIMENSION |
| Constructor Summary | |
|---|---|
JDFRectangleRange()
constructs a xy pair range with all values set to 0.0 Double |
|
JDFRectangleRange(JDFRectangle x)
constructs a JDFRectangleRange, both values are equal ("from x to x") |
|
JDFRectangleRange(JDFRectangle xmin,
JDFRectangle xmax)
constructor a JDFRectangleRange with two JDFRectangle values/bounds ("from xmin to xmax") |
|
JDFRectangleRange(JDFRectangleRange r)
copy constructor - constructs a JDFRectangleRange with the given JDFRectangleRange |
|
JDFRectangleRange(String s)
Constructs a JDFRectangleRange with the values of the given string |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
equals - returns true if both JDFRectangleRanges are equal otherwise false |
JDFRectangle |
getLeft()
getLeft - gets the left JDFRectangle object of the range |
protected Object |
getLeftObject()
|
JDFRectangle |
getLowerValue()
getLowerValue - returns the lower value of the bounds |
JDFRectangle |
getRight()
getRight - gets the right JDFRectangle object of the range |
protected Object |
getRightObject()
|
JDFRectangle |
getUpperValue()
getUpperValue - returns the upper value of the bounds |
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract |
protected void |
init(JDFRectangle x,
JDFRectangle y)
Initialization |
protected boolean |
inObjectRange(Object other)
|
boolean |
inRange(JDFRectangle x)
inRange - tests if the given x inside of this range |
boolean |
isPartOfRange(JDFRange ra)
isPartOfRange - is range 'r' within this range? |
boolean |
isValid(String s)
isValid - validate the given String |
void |
setLeft(JDFRectangle x)
sets the left JDFRectangle object of the range |
void |
setRight(JDFRectangle x)
sets the right JDFRectangle object of the range |
String |
toString()
getString - returns the range as a String |
| Methods inherited from class org.cip4.jdflib.datatypes.JDFRange |
|---|
getString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JDFRectangleRange()
public JDFRectangleRange(JDFRectangle x)
x - - the given JDFRectangle
public JDFRectangleRange(JDFRectangle xmin,
JDFRectangle xmax)
xmin - the given min valuexmax - the given max valuepublic JDFRectangleRange(JDFRectangleRange r)
r - the JDFRectangleRange to copy
public JDFRectangleRange(String s)
throws DataFormatException
s - the given string representation of the range
DataFormatException - - if the String has not a valid format| Method Detail |
|---|
protected void init(JDFRectangle x,
JDFRectangle y)
x - left valuey - right valuepublic String toString()
toString in class Objectpublic boolean isValid(String s)
s - the given string
public boolean equals(Object other)
equals in class JDFRangeother - the JDFRectangleRange to compare
public int hashCode()
hashCode in class JDFRangepublic boolean inRange(JDFRectangle x)
x - comparison value
public boolean isPartOfRange(JDFRange ra)
isPartOfRange in class JDFRangera - the range to test
public JDFRectangle getLeft()
public JDFRectangle getRight()
public void setLeft(JDFRectangle x)
x - the left JDFRectangle object of the rangepublic void setRight(JDFRectangle x)
JDFRectangle - x - the right JDFRectangle object of the rangepublic JDFRectangle getUpperValue()
public JDFRectangle getLowerValue()
protected Object getRightObject()
getRightObject in class JDFRangeprotected Object getLeftObject()
getLeftObject in class JDFRangeprotected boolean inObjectRange(Object other)
inObjectRange in class JDFRange
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||