Package org.jfree.data.time
Class DynamicTimeSeriesCollection.ValueSequence
java.lang.Object
org.jfree.data.time.DynamicTimeSeriesCollection.ValueSequence
- Enclosing class:
DynamicTimeSeriesCollection
A wrapper for a fixed array of float values.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) float[]
Storage for the float values. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor:ValueSequence
(int length) Creates a sequence with the specified length. -
Method Summary
-
Field Details
-
dataPoints
float[] dataPointsStorage for the float values.
-
-
Constructor Details
-
ValueSequence
public ValueSequence()Default constructor: -
ValueSequence
public ValueSequence(int length) Creates a sequence with the specified length.- Parameters:
length
- the length.
-
-
Method Details
-
enterData
public void enterData(int index, float value) Enters data into the storage array.- Parameters:
index
- the index.value
- the value.
-
getData
public float getData(int index) Returns a value from the storage array.- Parameters:
index
- the index.- Returns:
- The value.
-