Save This Page
Home » jcommon-1.0.13 » org.jfree » data » xy » [javadoc | source]
org.jfree.data.xy
public class: DefaultWindDataset [javadoc | source]
java.lang.Object
   org.jfree.data.general.AbstractDataset
      org.jfree.data.general.AbstractSeriesDataset
         org.jfree.data.xy.AbstractXYDataset
            org.jfree.data.xy.DefaultWindDataset

All Implemented Interfaces:
    PublicCloneable, WindDataset, XYDataset, SeriesDataset, Serializable, SeriesChangeListener, Cloneable, Dataset, ObjectInputValidation

A default implementation of the WindDataset interface.
Constructor:
 public DefaultWindDataset() 
 public DefaultWindDataset(Object[][][] data) 
    Constructs a dataset based on the specified data array.
    Parameters:
    data - the data (null not permitted).
    Throws:
    NullPointerException - if data is null.
 public DefaultWindDataset(String[] seriesNames,
    Object[][][] data) 
    Constructs a dataset based on the specified data array.
    Parameters:
    seriesNames - the names of the series (null not permitted).
    data - the wind data.
    Throws:
    NullPointerException - if seriesNames is null.
 public DefaultWindDataset(List seriesKeys,
    Object[][][] data) 
    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).
    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.
Method from org.jfree.data.xy.DefaultWindDataset Summary:
equals,   getItemCount,   getSeriesCount,   getSeriesKey,   getWindDirection,   getWindForce,   getX,   getY,   seriesNameListFromDataArray
Methods from org.jfree.data.xy.AbstractXYDataset:
getDomainOrder,   getXValue,   getYValue
Methods from org.jfree.data.general.AbstractSeriesDataset:
getSeriesCount,   getSeriesKey,   indexOf,   seriesChanged
Methods from org.jfree.data.general.AbstractDataset:
addChangeListener,   clone,   fireDatasetChanged,   getGroup,   hasListener,   notifyListeners,   removeChangeListener,   setGroup,   validateObject
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jfree.data.xy.DefaultWindDataset Detail:
 public boolean equals(Object obj) 
    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.
     public int getItemCount(int series) 
      Returns the number of items in a series.
     public int getSeriesCount() 
      Returns the number of series in the dataset.
     public Comparable getSeriesKey(int series) 
      Returns the key for a series.
     public Number getWindDirection(int series,
        int item) 
      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.
     public Number getWindForce(int series,
        int item) 
      Returns the wind force for one item within a series. This is a number between 0 and 12, as defined by the Beaufort scale.
     public Number getX(int series,
        int item) 
      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.
     public Number getY(int series,
        int item) 
      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 .
     public static List seriesNameListFromDataArray(Object[][] data) 
      Utility method for automatically generating series names.