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
Modifier and Type Method Description booleanequals(java.lang.Object obj)doublegetLower()doublegetUpper()inthashCode()booleaninRange(double value)If a value in the range or not.booleaninRange(double value, boolean includeBoundary)If a value in the range or not.booleanisMinBigger()java.lang.StringtoString()
-
Constructor Details
-
Range
public Range(double start, double end)Initialize with start...end values, sorting them to get lower...upper.- Parameters:
start- the start value of rangeend- the end value of range
-
-
Method Details
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-