Package org.jfree.data.general
Class CombinedDataset
- java.lang.Object
-
- org.jfree.data.general.AbstractDataset
-
- org.jfree.data.general.AbstractSeriesDataset
-
- org.jfree.data.xy.AbstractXYDataset
-
- org.jfree.data.xy.AbstractIntervalXYDataset
-
- org.jfree.data.general.CombinedDataset
-
- All Implemented Interfaces:
java.io.ObjectInputValidation,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,CombinationDataset,Dataset,SeriesChangeListener,SeriesDataset,IntervalXYDataset,OHLCDataset,XYDataset
public class CombinedDataset extends AbstractIntervalXYDataset implements XYDataset, OHLCDataset, IntervalXYDataset, CombinationDataset
Deprecated.As of version 1.0.13. This class will be removed from JFreeChart 1.2.0 onwards. Anyone needing this facility will need to maintain it outside of JFreeChart.This class can combine instances ofXYDataset,OHLCDatasetandIntervalXYDatasettogether exposing the union of all the series under one dataset.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CombinedDataset()Deprecated.Default constructor for an empty combination.CombinedDataset(SeriesDataset[] data)Deprecated.Creates a CombinedDataset initialized with an array of SeriesDatasets.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidadd(SeriesDataset data)Deprecated.Adds one SeriesDataset to the combination.voidadd(SeriesDataset[] data)Deprecated.Adds an array of SeriesDataset's to the combination.voidadd(SeriesDataset data, int series)Deprecated.Adds one series from a SeriesDataset to the combination.intgetChildPosition(Dataset child)Deprecated.Returns the child position.java.lang.NumbergetClose(int series, int item)Deprecated.Returns the close-value for the specified series and item.doublegetCloseValue(int series, int item)Deprecated.Returns the close-value (as a double primitive) for an item within a series.java.lang.NumbergetEndX(int series, int item)Deprecated.Returns the ending X value for the specified series and item.java.lang.NumbergetEndY(int series, int item)Deprecated.Returns the ending Y value for the specified series and item.java.lang.NumbergetHigh(int series, int item)Deprecated.Returns the high-value for the specified series and item.doublegetHighValue(int series, int item)Deprecated.Returns the high-value (as a double primitive) for an item within a series.intgetItemCount(int series)Deprecated.Returns the number of items in a series.java.lang.NumbergetLow(int series, int item)Deprecated.Returns the low-value for the specified series and item.doublegetLowValue(int series, int item)Deprecated.Returns the low-value (as a double primitive) for an item within a series.int[]getMap()Deprecated.Returns a map or indirect indexing form our series into parent's series.java.lang.NumbergetOpen(int series, int item)Deprecated.Returns the open-value for the specified series and item.doublegetOpenValue(int series, int item)Deprecated.Returns the open-value (as a double primitive) for an item within a series.SeriesDatasetgetParent()Deprecated.Returns the parent Dataset of this combination.intgetSeriesCount()Deprecated.Returns the number of series in the dataset.java.lang.ComparablegetSeriesKey(int series)Deprecated.Returns the key for a series.java.lang.NumbergetStartX(int series, int item)Deprecated.Returns the starting X value for the specified series and item.java.lang.NumbergetStartY(int series, int item)Deprecated.Returns the starting Y value for the specified series and item.java.lang.NumbergetVolume(int series, int item)Deprecated.Returns the volume value for the specified series and item.doublegetVolumeValue(int series, int item)Deprecated.Returns the volume-value (as a double primitive) for an item within a series.java.lang.NumbergetX(int series, int item)Deprecated.Returns the X-value for the specified series and item.java.lang.NumbergetY(int series, int item)Deprecated.Returns the Y-value for the specified series and item.-
Methods inherited from class org.jfree.data.xy.AbstractIntervalXYDataset
getEndXValue, getEndYValue, getStartXValue, getStartYValue
-
Methods inherited from class org.jfree.data.xy.AbstractXYDataset
getDomainOrder, getXValue, getYValue
-
Methods inherited from class org.jfree.data.general.AbstractSeriesDataset
indexOf, seriesChanged
-
Methods inherited from class org.jfree.data.general.AbstractDataset
addChangeListener, clone, fireDatasetChanged, getGroup, getNotify, hasListener, notifyListeners, removeChangeListener, setGroup, setNotify, validateObject
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jfree.data.general.Dataset
addChangeListener, getGroup, removeChangeListener, setGroup
-
Methods inherited from interface org.jfree.data.xy.IntervalXYDataset
getEndXValue, getEndYValue, getStartXValue, getStartYValue
-
Methods inherited from interface org.jfree.data.general.SeriesDataset
indexOf
-
Methods inherited from interface org.jfree.data.xy.XYDataset
getDomainOrder, getXValue, getYValue
-
-
-
-
Constructor Detail
-
CombinedDataset
public CombinedDataset()
Deprecated.Default constructor for an empty combination.
-
CombinedDataset
public CombinedDataset(SeriesDataset[] data)
Deprecated.Creates a CombinedDataset initialized with an array of SeriesDatasets.- Parameters:
data- array of SeriesDataset that contains the SeriesDatasets to combine.
-
-
Method Detail
-
add
public void add(SeriesDataset data)
Deprecated.Adds one SeriesDataset to the combination. Listeners are notified of the change.- Parameters:
data- the SeriesDataset to add.
-
add
public void add(SeriesDataset[] data)
Deprecated.Adds an array of SeriesDataset's to the combination. Listeners are notified of the change.- Parameters:
data- array of SeriesDataset to add
-
add
public void add(SeriesDataset data, int series)
Deprecated.Adds one series from a SeriesDataset to the combination. Listeners are notified of the change.- Parameters:
data- the SeriesDataset where series is containedseries- series to add
-
getSeriesCount
public int getSeriesCount()
Deprecated.Returns the number of series in the dataset.- Specified by:
getSeriesCountin interfaceSeriesDataset- Specified by:
getSeriesCountin classAbstractSeriesDataset- Returns:
- The number of series in the dataset.
-
getSeriesKey
public java.lang.Comparable getSeriesKey(int series)
Deprecated.Returns the key for a series.- Specified by:
getSeriesKeyin interfaceSeriesDataset- Specified by:
getSeriesKeyin classAbstractSeriesDataset- Parameters:
series- the series (zero-based index).- Returns:
- The key for a series.
-
getX
public java.lang.Number getX(int series, int item)
Deprecated.Returns the X-value for the specified series and item.Note: throws
ClassCastExceptionif the series is not from aXYDataset.
-
getY
public java.lang.Number getY(int series, int item)
Deprecated.Returns the Y-value for the specified series and item.Note: throws
ClassCastExceptionif the series is not from aXYDataset.
-
getItemCount
public int getItemCount(int series)
Deprecated.Returns the number of items in a series.Note: throws
ClassCastExceptionif the series is not from aXYDataset.- Specified by:
getItemCountin interfaceXYDataset- Parameters:
series- the index of the series of interest (zero-based).- Returns:
- The number of items in a series.
-
getHigh
public java.lang.Number getHigh(int series, int item)
Deprecated.Returns the high-value for the specified series and item.Note: throws
ClassCastExceptionif the series is not from aOHLCDataset.- Specified by:
getHighin interfaceOHLCDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The high-value for the specified series and item.
-
getHighValue
public double getHighValue(int series, int item)
Deprecated.Returns the high-value (as a double primitive) for an item within a series.- Specified by:
getHighValuein interfaceOHLCDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The high-value.
-
getLow
public java.lang.Number getLow(int series, int item)
Deprecated.Returns the low-value for the specified series and item.Note: throws
ClassCastExceptionif the series is not from aOHLCDataset.- Specified by:
getLowin interfaceOHLCDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The low-value for the specified series and item.
-
getLowValue
public double getLowValue(int series, int item)
Deprecated.Returns the low-value (as a double primitive) for an item within a series.- Specified by:
getLowValuein interfaceOHLCDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The low-value.
-
getOpen
public java.lang.Number getOpen(int series, int item)
Deprecated.Returns the open-value for the specified series and item.Note: throws
ClassCastExceptionif the series is not from aOHLCDataset.- Specified by:
getOpenin interfaceOHLCDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The open-value for the specified series and item.
-
getOpenValue
public double getOpenValue(int series, int item)
Deprecated.Returns the open-value (as a double primitive) for an item within a series.- Specified by:
getOpenValuein interfaceOHLCDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The open-value.
-
getClose
public java.lang.Number getClose(int series, int item)
Deprecated.Returns the close-value for the specified series and item.Note: throws
ClassCastExceptionif the series is not from aOHLCDataset.- Specified by:
getClosein interfaceOHLCDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The close-value for the specified series and item.
-
getCloseValue
public double getCloseValue(int series, int item)
Deprecated.Returns the close-value (as a double primitive) for an item within a series.- Specified by:
getCloseValuein interfaceOHLCDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The close-value.
-
getVolume
public java.lang.Number getVolume(int series, int item)
Deprecated.Returns the volume value for the specified series and item.Note: throws
ClassCastExceptionif the series is not from aOHLCDataset.- Specified by:
getVolumein interfaceOHLCDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The volume value for the specified series and item.
-
getVolumeValue
public double getVolumeValue(int series, int item)
Deprecated.Returns the volume-value (as a double primitive) for an item within a series.- Specified by:
getVolumeValuein interfaceOHLCDataset- Parameters:
series- the series (zero-based index).item- the item (zero-based index).- Returns:
- The volume-value.
-
getStartX
public java.lang.Number getStartX(int series, int item)
Deprecated.Returns the starting X value for the specified series and item.- Specified by:
getStartXin interfaceIntervalXYDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The value.
-
getEndX
public java.lang.Number getEndX(int series, int item)
Deprecated.Returns the ending X value for the specified series and item.- Specified by:
getEndXin interfaceIntervalXYDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The value.
-
getStartY
public java.lang.Number getStartY(int series, int item)
Deprecated.Returns the starting Y value for the specified series and item.- Specified by:
getStartYin interfaceIntervalXYDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The starting Y value for the specified series and item.
-
getEndY
public java.lang.Number getEndY(int series, int item)
Deprecated.Returns the ending Y value for the specified series and item.- Specified by:
getEndYin interfaceIntervalXYDataset- Parameters:
series- the index of the series of interest (zero-based).item- the index of the item of interest (zero-based).- Returns:
- The ending Y value for the specified series and item.
-
getParent
public SeriesDataset getParent()
Deprecated.Returns the parent Dataset of this combination. If there is more than one parent, or a child is found that is not a CombinationDataset, then returnsnull.- Specified by:
getParentin interfaceCombinationDataset- Returns:
- The parent Dataset of this combination or
null.
-
getMap
public int[] getMap()
Deprecated.Returns a map or indirect indexing form our series into parent's series. Prior to calling this method, the client should check getParent() to make sure the CombinationDataset uses the same parent. If not, the map returned by this method will be invalid or null.- Specified by:
getMapin interfaceCombinationDataset- Returns:
- A map or indirect indexing form our series into parent's series.
- See Also:
getParent()
-
getChildPosition
public int getChildPosition(Dataset child)
Deprecated.Returns the child position.- Parameters:
child- the child dataset.- Returns:
- The position.
-
-