org.jfree.data.xy
public class DefaultWindDataset extends AbstractXYDataset implements WindDataset, PublicCloneable
| Constructor Summary | |
|---|---|
| DefaultWindDataset()
Constructs a new, empty, dataset. | |
| DefaultWindDataset(Object[][][] data)
Constructs a dataset based on the specified data array.
| |
| DefaultWindDataset(String[] seriesNames, Object[][][] data)
Constructs a dataset based on the specified data array.
| |
| DefaultWindDataset(List seriesKeys, Object[][][] data)
Constructs a dataset based on the specified data array. | |
| Method Summary | |
|---|---|
| boolean | equals(Object obj)
Checks this WindDataset for equality with an arbitrary
object. |
| int | getItemCount(int series)
Returns the number of items in a series.
|
| int | getSeriesCount()
Returns the number of series in the dataset.
|
| Comparable | getSeriesKey(int series)
Returns the key for a series.
|
| Number | getWindDirection(int series, int item)
Returns the wind direction for one item within a series. |
| Number | getWindForce(int series, int item)
Returns the wind force for one item within a series. |
| Number | getX(int series, int item)
Returns the x-value for one item within a series. |
| Number | getY(int series, int item)
Returns the y-value for one item within a series. |
| static List | seriesNameListFromDataArray(Object[][] data)
Utility method for automatically generating series names.
|
Parameters: data the data (null not permitted).
Throws: NullPointerException if data is null.
Parameters: seriesNames the names of the series (null not
permitted). data the wind data.
Throws: NullPointerException if seriesNames is
null.
data[series][item][0] - the date (either a
Date or a Number that is the milliseconds
since 1-Jan-1970);data[series][item][1] - the wind direction (1 - 12,
like the numbers on a clock face);data[series][item][2] - the wind force (1 - 12 on the
Beaufort scale)Parameters: seriesKeys the names of the series (null not
permitted). data the wind dataset (null not permitted).
Throws: IllegalArgumentException if seriesKeys is
null. IllegalArgumentException if the number of series keys does not
match the number of series in the array. NullPointerException if data is null.
WindDataset for equality with an arbitrary
object. This method returns true if and only if:
obj is not null;obj is an instance of
DefaultWindDataset;Parameters: obj the object (null permitted).
Returns: A boolean.
Parameters: series the series (zero-based index).
Returns: The item count.
Returns: The series count.
Parameters: series the series (zero-based index).
Returns: The series key.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The wind direction for the item within the series.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The wind force for the item within the series.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The x-value for the item within the series.
WindDataset is an extension of XYDataset.
Parameters: series the series (zero-based index). item the item (zero-based index).
Returns: The y-value for the item within the series.
Parameters: data the wind data (null not permitted).
Returns: An array of Series N with N = { 1 .. data.length }.
Throws: NullPointerException if data is null.