| org.jfree.data.xy.AbstractXYDataset org.jfree.data.xy.DefaultWindDataset
Method Summary | |
public boolean | equals(Object obj) Checks this WindDataset for equality with an arbitrary
object. | public int | getItemCount(int series) Returns the number of items in a series.
Parameters: series - the series (zero-based index). | public int | getSeriesCount() Returns the number of series in the dataset. | public Comparable | getSeriesKey(int series) Returns the key for a series.
Parameters: series - the series (zero-based index). | public Number | getWindDirection(int series, int item) Returns the wind direction for one item within a series. | public Number | getWindForce(int series, int item) Returns the wind force for one item within a series. | public Number | getX(int series, int item) Returns the x-value for one item within a series. | public Number | getY(int series, int item) Returns the y-value for one item within a series. | public static List | seriesNameListFromDataArray(Object[][] data) Utility method for automatically generating series names.
Parameters: data - the wind data (null not permitted). |
DefaultWindDataset | public DefaultWindDataset()(Code) | | Constructs a new, empty, dataset. Since there are currently no methods
to add data to an existing dataset, you should probably use a different
constructor.
|
DefaultWindDataset | public DefaultWindDataset(Object[][][] data)(Code) | | Constructs a dataset based on the specified data array.
Parameters: data - the data (null not permitted). throws: NullPointerException - if data is null . |
DefaultWindDataset | public DefaultWindDataset(String[] seriesNames, Object[][][] data)(Code) | | Constructs a dataset based on the specified data array.
Parameters: seriesNames - the names of the series (null not permitted). Parameters: data - the wind data. throws: NullPointerException - if seriesNames is null . |
DefaultWindDataset | public DefaultWindDataset(List seriesKeys, Object[][][] data)(Code) | | Constructs a dataset based on the specified data array. The array
can contain multiple series, each series can contain multiple items,
and each item is as follows:
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). Parameters: data - the wind dataset (null not permitted). throws: IllegalArgumentException - if seriesKeys is null . throws: IllegalArgumentException - if the number of series keys does notmatch the number of series in the array. throws: NullPointerException - if data is null . |
equals | public boolean equals(Object obj)(Code) | | Checks this 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 ;
- both datasets have the same number of series containing identical
values.
Parameters: obj - the object (null permitted). A boolean. |
getItemCount | public int getItemCount(int series)(Code) | | Returns the number of items in a series.
Parameters: series - the series (zero-based index). The item count. |
getSeriesCount | public int getSeriesCount()(Code) | | Returns the number of series in the dataset.
The series count. |
getSeriesKey | public Comparable getSeriesKey(int series)(Code) | | Returns the key for a series.
Parameters: series - the series (zero-based index). The series key. |
getWindDirection | public Number getWindDirection(int series, int item)(Code) | | Returns the wind direction for one item within a series. This is a
number between 0 and 12, like the numbers on an upside-down clock face.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The wind direction for the item within the series. |
getWindForce | public Number getWindForce(int series, int item)(Code) | | Returns the wind force for one item within a series. This is a number
between 0 and 12, as defined by the Beaufort scale.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The wind force for the item within the series. |
getX | public Number getX(int series, int item)(Code) | | Returns the x-value for one item within a series. This should represent
a point in time, encoded as milliseconds in the same way as
java.util.Date.
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The x-value for the item within the series. |
getY | public Number getY(int series, int item)(Code) | | Returns the y-value for one item within a series. This maps to the
DefaultWindDataset.getWindForce(int,int) method and is implemented because
WindDataset is an extension of
XYDataset .
Parameters: series - the series (zero-based index). Parameters: item - the item (zero-based index). The y-value for the item within the series. |
seriesNameListFromDataArray | public static List seriesNameListFromDataArray(Object[][] data)(Code) | | Utility method for automatically generating series names.
Parameters: data - the wind data (null not permitted). An array of Series N with N = { 1 .. data.length }. throws: NullPointerException - if data is null . |
|
|