Class Range
- java.lang.Object
-
- org.eclipse.nebula.visualization.xygraph.linearscale.Range
-
public class Range extends java.lang.Object
A value range of 'start' ... 'end' or 'lower' .. 'upper'.
-
-
Constructor Summary
Constructors Constructor Description Range(double start, double end)
Initialize with start...end values, sorting them to get lower...upper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
double
getLower()
double
getUpper()
int
hashCode()
boolean
inRange(double value)
If a value in the range or not.boolean
inRange(double value, boolean includeBoundary)
If a value in the range or not.boolean
isMinBigger()
java.lang.String
toString()
-
-
-
Method Detail
-
inRange
public boolean inRange(double value, boolean includeBoundary)
If a value in the range or not.- Parameters:
value
-includeBoundary
- true if the boundary should be considered.- Returns:
- true if the value is in the range. Otherwise false.
-
inRange
public boolean inRange(double value)
If a value in the range or not. The boundary is included.- Parameters:
value
-- Returns:
- true if the value is in the range. Otherwise false.
-
isMinBigger
public boolean isMinBigger()
-
getLower
public double getLower()
- Returns:
- the lower
-
getUpper
public double getUpper()
- Returns:
- the upper
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-