java.lang.Object | ||||
↳ | org.jfree.data.general.AbstractDataset | |||
↳ | org.jfree.data.general.AbstractSeriesDataset | |||
↳ | org.jfree.data.xy.AbstractXYDataset | |||
↳ | org.jfree.data.xy.DefaultWindDataset |
A default implementation of the WindDataset
interface.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new, empty, dataset.
| |||||||||||
Constructs a dataset based on the specified data array.
| |||||||||||
Constructs a dataset based on the specified data array.
| |||||||||||
Constructs a dataset based on the specified data array.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Checks this
WindDataset for equality with an arbitrary
object. | |||||||||||
Returns the number of items in a series.
| |||||||||||
Returns the number of series in the dataset.
| |||||||||||
Returns the key for a series.
| |||||||||||
Returns the wind direction for one item within a series.
| |||||||||||
Returns the wind force for one item within a series.
| |||||||||||
Returns the x-value for one item within a series.
| |||||||||||
Returns the y-value for one item within a series.
| |||||||||||
Utility method for automatically generating series names.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() | |||||||||||
![]() |
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.
Constructs a dataset based on the specified data array.
data | the data (null not permitted). |
---|
NullPointerException | if data is null .
|
---|
Constructs a dataset based on the specified data array.
seriesNames | the names of the series (null not
permitted). |
---|---|
data | the wind data. |
NullPointerException | if seriesNames is
null .
|
---|
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)seriesKeys | the names of the series (null not
permitted). |
---|---|
data | the wind dataset (null not permitted). |
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 .
|
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
;obj | the object (null permitted). |
---|
Returns the number of items in a series.
series | the series (zero-based index). |
---|
Returns the number of series in the dataset.
Returns the key for a series.
series | the series (zero-based index). |
---|
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.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
Returns the wind force for one item within a series. This is a number between 0 and 12, as defined by the Beaufort scale.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
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.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
Returns the y-value for one item within a series. This maps to the
getWindForce(int, int)
method and is implemented because
WindDataset
is an extension of XYDataset
.
series | the series (zero-based index). |
---|---|
item | the item (zero-based index). |
Utility method for automatically generating series names.
data | the wind data (null not permitted). |
---|
NullPointerException | if data is null .
|
---|