public final class ValueList extends TeeBase
Title: ValueList class
Description: Array to hold Series data point values.
Copyright (c) 2005-2018 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 |
---|---|
DateTime |
asDateTime(int index) |
void |
assign(ValueList value) |
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.
|
int |
getCount() |
java.lang.String |
getDataMember()
Field to use as source for this value list.
|
boolean |
getDateTime()
Allows values to be expressed either as numbers or as Date+Time
values.
|
double |
getFirst()
Returns the First point value.
|
double |
getLast()
Returns the Last point value.
|
double |
getMaximum()
The highest of all values in the list.
|
double |
getMaxValue()
Obsolete.
|
double |
getMinimum()
The lowest of all values in the list.
|
double |
getMinValue()
Obsolete.
|
java.lang.String |
getName()
Returns the name of this ValueList.
|
ValueListOrder |
getOrder()
Determines if points are automatically sorted or left at original
position.
|
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.
|
double |
getTotalABS()
The sum of all absolute values in the list.
|
double |
getValue(int index) |
double[] |
getValues() |
int |
indexOf(double value)
Returns the corresponding point index which has the specified Value.
|
int |
locate(double value)
Obsolete.
|
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.
|
void |
setDateTime(boolean value)
Allows values to be expressed either as numbers or as Date+Time
values.
|
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.
|
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.
|
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 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 void fillSequence()
sort()
public void exchange(int index1, int index2)