|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.steema.teechart.TeeBase
com.steema.teechart.styles.ValueList
public final class ValueList
Title: ValueList class
Description: Array to hold Series data point values.
Copyright (c) 2005-2008 by Steema Software SL. All Rights Reserved.
Company: Steema Software SL
Field Summary | |
---|---|
int |
capacity
|
int |
count
|
static int |
defaultCapacity
|
protected java.lang.String |
name
|
ISeries |
series
|
boolean |
statsOk
|
double |
tempValue
|
double[] |
value
|
java.lang.String |
valueSource
|
Fields inherited from class com.steema.teechart.TeeBase |
---|
chart |
Constructor Summary | |
---|---|
ValueList(ISeries s,
java.lang.String name)
|
|
ValueList(ISeries s,
java.lang.String name,
int initialCapacity)
|
Method Summary | |
---|---|
DateTime |
asDateTime(int index)
|
void |
assign(ValueList value)
|
void |
clear()
Removes all values in the list. |
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()
|
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 |
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()
|
Methods inherited from class com.steema.teechart.TeeBase |
---|
getChart, invalidate, setBooleanProperty, setChart, setColorProperty, setColorProperty, setDoubleProperty, setIntegerProperty, setStringProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public ValueList(ISeries s, java.lang.String name)
public ValueList(ISeries s, java.lang.String name, int initialCapacity)
Method Detail |
---|
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 int indexOf(double value)
value
- double
public 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
- double
public void assign(ValueList value)
public double getRange()
public double getMaximum()
public double getMaxValue()
public double getMinValue()
public double getMinimum()
getMaximum()
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |