public final class ValueList extends TeeBase
Title: ValueList class
Description: Array to hold Series data point values.
Copyright (c) 2005-2019 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Modifier and Type | Field and Description |
---|---|
int |
capacity |
int |
count |
static int |
defaultCapacity |
protected java.lang.String |
name |
ISeries |
series |
boolean |
statsOk |
double |
tempValue |
double[] |
value |
java.lang.String |
valueSource |
chart, InternalUse
Constructor and Description |
---|
ValueList() |
ValueList(ISeries s,
java.lang.String name) |
ValueList(ISeries s,
java.lang.String name,
int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
int |
addChartValue(double value) |
DateTime |
asDateTime(int index) |
void |
assign(ValueList value) |
void |
calcStats() |
void |
clear()
Removes all values in the list.
|
void |
clear(int startCapacity) |
void |
exchange(int index1,
int index2) |
void |
fillSequence()
Renumbers all values in a ValueList class starting at zero.
Warning: Calling fillSequence removes any previous value in a ValueList. |
int |
getCount() |
java.lang.String |
getDataMember()
Field to use as source for this value list.
Default value: "" |
boolean |
getDateTime()
Allows values to be expressed either as numbers or as Date+Time
values.
Each Series value list has a boolean property called DateTime. |
double |
getFirst()
Returns the First point value.
|
double |
getLast()
Returns the Last point value.
This is the same value as the Count - 1 index value: |
double |
getMaximum()
The highest of all values in the list.
As new points are being added to Series, the IValueList object calculates the Maximum, Minimum and TotalABS properties. |
double |
getMaxValue()
Obsolete. Please use Maximum method instead.
|
double |
getMinimum()
The lowest of all values in the list.
|
double |
getMinValue()
Obsolete. Please use Minimum instead.
|
java.lang.String |
getName()
Returns the name of this ValueList.
|
ValueListOrder |
getOrder()
Determines if points are automatically sorted or left at original
position.
Runtime only. |
double |
getRange() |
boolean |
getStatsOk()
Gets or sets a value which indicates whether the Values have been
modified to trigger a recalculation of Series statistics. |
double |
getTotal()
The sum of all IValueList values.
When adding, deleting or modifying point values using the right methods, Total is automatically incremented and decremented. |
double |
getTotalABS()
The sum of all absolute values in the list.
Run-time and read only. |
double |
getValue(int index) |
double[] |
getValues() |
int |
indexOf(double value)
Returns the corresponding point index which has the specified Value.
You can use it for example to obtain X co-ordinates based on Y values, or vice-versa. |
int |
locate(double value)
Obsolete. Please use IndexOf method instead.
|
void |
removeAt(int index) |
void |
removeRange(int index,
int count) |
void |
setCount(int value) |
void |
setDataMember(java.lang.String value)
Field to use as source for this value list.
Default value: "" |
void |
setDateTime(boolean value)
Allows values to be expressed either as numbers or as Date+Time
values.
Default value: false |
void |
setName(java.lang.String name)
Returns the name of this ValueList.
|
void |
setOrder(ValueListOrder value)
Determines if points are automatically sorted or left at original
position.
Runtime only. |
void |
setStatsOk(boolean value) |
void |
setValue(int index,
double value) |
void |
setValues(double[] value) |
void |
sort()
Re-orders Series points, interchanging their position in the Series
Values lists.
By default, Series are set to sort points in ascending order using their X coordinates. |
void |
trim() |
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty
public static int defaultCapacity
public double[] value
public int count
public transient int capacity
public transient boolean statsOk
public transient double tempValue
public transient java.lang.String valueSource
public transient ISeries series
protected java.lang.String name
public ValueList()
public ValueList(ISeries s, java.lang.String name)
public ValueList(ISeries s, java.lang.String name, int initialCapacity)
public java.lang.String getDataMember()
public void setDataMember(java.lang.String value)
value
- Stringpublic boolean getDateTime()
public void setDateTime(boolean value)
value
- booleanpublic ValueListOrder getOrder()
public void setOrder(ValueListOrder value)
value
- ValueListOrderpublic void setName(java.lang.String name)
name
- Stringpublic java.lang.String getName()
public void clear()
public void clear(int startCapacity)
public int indexOf(double value)
value
- doublepublic void removeRange(int index, int count)
public void removeAt(int index)
public void sort()
public void trim()
public double getFirst()
public double getLast()
public int locate(double value)
value
- doublepublic void assign(ValueList value)
public void calcStats()
public double getRange()
public double getMaximum()
public double getMaxValue()
public double getMinValue()
public double getMinimum()
getMaximum()
public boolean getStatsOk()
public void setStatsOk(boolean value)
public double getTotal()
public double getTotalABS()
getMaximum()
public double getValue(int index)
public void setValue(int index, double value)
public double[] getValues()
public void setValues(double[] value)
public int getCount()
public void setCount(int value)
public DateTime asDateTime(int index)
public int addChartValue(double value)
public void fillSequence()
sort()
public void exchange(int index1, int index2)