Class RangeCategorySeries
java.lang.Object
com.codename1.charts.models.CategorySeries
com.codename1.charts.models.RangeCategorySeries
A series for the range category charts like the range bar.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(double minValue, double maxValue) Adds new values to the seriesvoidAdds new values to the series.voidclear()Removes all the existing values from the series.doublegetMaximumValue(int index) Returns the maximum value at the specified index.doublegetMinimumValue(int index) Returns the minimum value at the specified index.voidremove(int index) Removes existing values from the series.Transforms the range category series to an XY series.Methods inherited from class CategorySeries
add, add, getCategory, getItemCount, getTitle, getValue, setModifier and TypeMethodDescriptionvoidadd(double value) Adds a new value to the seriesvoidAdds a new value to the series.getCategory(int index) Returns the category name at the specified index.intReturns the series item count.getTitle()Returns the series title.doublegetValue(int index) Returns the value at the specified index.voidReplaces the value at the specific index in the series.Methods inherited from class Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected Objectclone()booleanIndicates whether some other object is "equal to" this one.final ClassgetClass()Returns the runtime class of an object.inthashCode()Returns a hash code value for the object.final voidnotify()Wakes up a single thread that is waiting on this object's monitor.final voidWakes up all threads that are waiting on this object's monitor.toString()Returns a string representation of the object.final voidwait()Causes current thread to wait until another thread invokes the method or the method for this object.final voidwait(long timeout) Causes current thread to wait until either another thread invokes the method or the method for this object, or a specified amount of time has elapsed.final voidwait(long timeout, int nanos) Causes current thread to wait until another thread invokes the method or the method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
-
Constructor Details
-
RangeCategorySeries
Builds a new category series.
Parameters
title: the series title
-
-
Method Details
-
add
public void add(double minValue, double maxValue) Adds new values to the series
Parameters
-
minValue: the new minimum value -
maxValue: the new maximum value
-
-
add
Adds new values to the series.
Parameters
-
category: the category -
minValue: the new minimum value -
maxValue: the new maximum value
-
-
remove
public void remove(int index) Removes existing values from the series.
Parameters
index: the index in the series of the values to remove
- Overrides:
removein classCategorySeries
-
clear
public void clear()Removes all the existing values from the series.- Overrides:
clearin classCategorySeries
-
getMinimumValue
public double getMinimumValue(int index) Returns the minimum value at the specified index.
Parameters
index: the index
Returns
the minimum value at the index
-
getMaximumValue
public double getMaximumValue(int index) Returns the maximum value at the specified index.
Parameters
index: the index
Returns
the maximum value at the index
-
toXYSeries
Transforms the range category series to an XY series.
Returns
the XY series
- Overrides:
toXYSeriesin classCategorySeries
-