|
||||||||||
| 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.JDFXYPairRange
public class JDFXYPairRange
This class represents a x y pair range (JDFXYPairRange). It is a whitespace separated list of 2 xy pairs separated by a tilde "~", for example "1.23 3.24 ~ 2.34 7.12"
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.cip4.jdflib.datatypes.JDFBaseDataTypes |
|---|
JDFBaseDataTypes.EnumFitsValue |
| Field Summary | |
|---|---|
private JDFXYPair |
m_left
|
private JDFXYPair |
m_right
|
| 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 | |
|---|---|
JDFXYPairRange()
constructs a xy pair range with all values set to 0.0 Double |
|
JDFXYPairRange(JDFXYPair x)
constructs a xy pair range with both values equal ("from x to x") |
|
JDFXYPairRange(JDFXYPair min,
JDFXYPair max)
constructs a xy pair range with the given left and right xy pair |
|
JDFXYPairRange(JDFXYPairRange r)
constructs a xy pair range with the given xy pair range |
|
JDFXYPairRange(java.lang.String s)
constructs a xy pair range with all values set via a string |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object other)
equals - returns true if both JDFXYPaiRanges are equal otherwise false |
JDFXYPair |
getLeft()
getLeft - returns the left JDFXYPair object |
protected java.lang.Object |
getLeftObject()
|
JDFXYPair |
getLowerValue()
getLowerValue - returns the lower value of the bounds |
double |
getLowerXValue()
getLowerXValue - returns the lower x value of the bounds for example 2.9 4.5~6.3 7.9 return 2.9 |
double |
getLowerYValue()
getLowerYValue - returns the lower y value of the bounds for example 2.9 4.5~6.3 7.9 return 4.5 |
JDFXYPair |
getRight()
getRight - returns the right JDFXYPair object |
protected java.lang.Object |
getRightObject()
|
JDFXYPair |
getUpperValue()
getUpperValue - returns the upper value of the bounds |
double |
getUpperXValue()
getUpperXValue - return the upper x value of the bounds for example 2.9 4.5~6.3 7.9 return 6.3 |
double |
getUpperYValue()
getUpperYValue - return the upper y value of the bounds for example 2.9 4.5~6.3 7.9 return 7.9 |
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract |
protected void |
init(JDFXYPair min,
JDFXYPair max)
Initialization |
protected boolean |
inObjectRange(java.lang.Object other)
|
boolean |
inRange(JDFXYPair xypair)
inRange - returns true if this contains xypair |
boolean |
isEqual(JDFXYPairRange g)
isEqual - boolean equivalence |
boolean |
isPartOfRange(JDFRange ra)
isPartOfRange - is range 'r' within this range? |
boolean |
isValid(java.lang.String s)
isValid - validate the given String |
void |
setLeft(JDFXYPair xy)
sets the left JDFXYPair object of the range |
void |
setRight(JDFXYPair xy)
sets the right JDFXYPair object of the range |
java.lang.String |
toString()
toString - returns the range as a String |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private JDFXYPair m_left
private JDFXYPair m_right
| Constructor Detail |
|---|
public JDFXYPairRange()
public JDFXYPairRange(JDFXYPair x)
x - left/right pair
public JDFXYPairRange(JDFXYPair min,
JDFXYPair max)
min - the given left xy pairmax - the given right xy pairpublic JDFXYPairRange(JDFXYPairRange r)
JDFXYPairRange - r - the given xy pair range
public JDFXYPairRange(java.lang.String s)
throws java.util.zip.DataFormatException
s - the given string
java.util.zip.DataFormatException - - if the String has not a valid format| Method Detail |
|---|
protected void init(JDFXYPair min,
JDFXYPair max)
min - max - public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isValid(java.lang.String s)
s - the given string
public boolean equals(java.lang.Object other)
equals in class JDFRangeother - Object to compare
public int hashCode()
hashCode in class JDFRangepublic JDFXYPair getLeft()
public JDFXYPair getRight()
public void setLeft(JDFXYPair xy)
xy - the left JDFXYPair object of the rangepublic void setRight(JDFXYPair xy)
xy - the right JDFXYPair object of the rangepublic double getLowerXValue()
public double getUpperXValue()
public double getLowerYValue()
public double getUpperYValue()
public JDFXYPair getUpperValue()
public JDFXYPair getLowerValue()
public boolean isEqual(JDFXYPairRange g)
public boolean inRange(JDFXYPair xypair)
this contains xypair
xypair - comparison pair
public boolean isPartOfRange(JDFRange ra)
isPartOfRange in class JDFRangera - the range to test
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
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||