|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.Subrange
@Equality public class Subrange
Designates a sub-range. A subrange is a pair of values (lo,hi) for which lo<=hi, which modifies an external range. If (lo,hi) is (0,1), the external range is unmodified. The natural span of a subrange is therefore in the range 0-1, but there is nothing to stop its values going lower than zero or greater than 1.
Constructor Summary | |
---|---|
Subrange()
Constructs a subrange covering the whole range 0-1. |
|
Subrange(double lo,
double hi)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object o)
|
double |
getHigh()
Returns upper limit. |
double |
getLow()
Returns lower limit. |
int |
hashCode()
|
static boolean |
isIdentity(Subrange subrange)
Indicates whether a given subrange is the identity operation, that is has no effect on a range to which it is applied. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Subrange(double lo, double hi)
lo
- lower limithi
- upper limit
IllegalArgumentException
- unless lo<=hipublic Subrange()
Method Detail |
---|
public double getLow()
public double getHigh()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public static boolean isIdentity(Subrange subrange)
subrange
- subrange to test
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |