Class RangeBase<T>
Defines the base class for IRange, used throughout SciChart for visible, data and index range calculations.
Namespace:
Assembly: .dll
Syntax
public abstract class RangeBase<T> implements IRange<T>
Type Parameters
Constructors
RangeBase(T min, T max, IMath<T> math)
Declaration
protected RangeBase(T min, T max, IMath<T> math)
Parameters
| Type |
Name |
Description |
| T |
min |
The min value to initialize range with.
|
| T |
max |
The max value to initialize range with.
|
| IMath<T> |
math |
The generic IMath helper.
|
RangeBase(RangeBase<T> range, IMath<T> math)
Declaration
protected RangeBase(RangeBase<T> range, IMath<T> math)
Parameters
Fields
math
Declaration
protected final IMath<T> math
Field Value
| Type |
Description |
| IMath<T> |
|
Methods
addRangeChangeObserver(IRangeChangeObserver<T> observer)
Declaration
public final void addRangeChangeObserver(IRangeChangeObserver<T> observer)
Parameters
clipTo(IRange<T> maximumRange)
Declaration
public final void clipTo(IRange<T> maximumRange)
Parameters
| Type |
Name |
Description |
| IRange<T> |
maximumRange |
|
clipTo(IRange<T> maximumRange, RangeClipMode clipMode)
Declaration
public final void clipTo(IRange<T> maximumRange, RangeClipMode clipMode)
Parameters
clone()
Creates and returns a copy of this object
Declaration
public abstract IRange<T> clone()
Returns
Overrides
Exceptions
equals(Object o)
Declaration
public boolean equals(Object o)
Parameters
| Type |
Name |
Description |
| Object |
o |
|
Returns
Overrides
getDiff()
Gets the difference (max - min) of this range
Declaration
Returns
getIsDefined()
Gets whether this Range is defined
Declaration
public boolean getIsDefined()
Returns
getIsMinMaxValid()
Gets whether the min and max value are valid ( min <= max )
Declaration
public final boolean getIsMinMaxValid()
Returns
getIsZero()
Gets whether the range is Zero, where max equals min
Declaration
public boolean getIsZero()
Returns
getMath()
Gets the IMath associated with this range
Declaration
public final IMath<T> getMath()
Returns
| Type |
Description |
| IMath<T> |
|
getMax()
Gets the max value of this range
Declaration
Returns
getMin()
Gets the min value of this range
Declaration
Returns
hashCode()
Declaration
Returns
Overrides
isValueWithinRange(T value)
Returns true if the value is within the min and max of the Range
Declaration
public final boolean isValueWithinRange(T value)
Parameters
| Type |
Name |
Description |
| T |
value |
|
Returns
removeRangeChangeObserver(IRangeChangeObserver<T> observer)
Declaration
public final synchronized void removeRangeChangeObserver(IRangeChangeObserver<T> observer)
Parameters
set(IRange<T> range)
Declaration
public final void set(IRange<T> range)
Parameters
| Type |
Name |
Description |
| IRange<T> |
range |
|
setMax(T max)
Sets the max value of this range
Declaration
public final void setMax(T max)
Parameters
| Type |
Name |
Description |
| T |
max |
|
setMin(T min)
Sets the min value of this range
Declaration
public final void setMin(T min)
Parameters
| Type |
Name |
Description |
| T |
min |
|
setMinMax(T min, T max)
Declaration
public final void setMinMax(T min, T max)
Parameters
| Type |
Name |
Description |
| T |
min |
|
| T |
max |
|
setMinMaxDouble(double min, double max)
Declaration
public final void setMinMaxDouble(double min, double max)
Parameters
setMinMaxDoubleForced(double min, double max)
Declaration
public final void setMinMaxDoubleForced(double min, double max)
Parameters
setMinMaxForced(T min, T max)
Declaration
public final void setMinMaxForced(T min, T max)
Parameters
| Type |
Name |
Description |
| T |
min |
|
| T |
max |
|
setMinMaxWithLimit(double min, double max, IRange<T> maximumRange)
Declaration
public final void setMinMaxWithLimit(double min, double max, IRange<T> maximumRange)
Parameters
toString()
Declaration
Returns
Overrides
union(T min, T max)
Declaration
public final void union(T min, T max)
Parameters
| Type |
Name |
Description |
| T |
min |
|
| T |
max |
|
union(IRange<T> range)
Declaration
public final void union(IRange<T> range)
Parameters
| Type |
Name |
Description |
| IRange<T> |
range |
|
Implements
com.scichart.data.model.IRange<T>