jas2.hist.test
Class XYTestData
- java.lang.Object
-
- jas2.hist.test.XYTestData
-
- All Implemented Interfaces:
- DataSource, HasStyle, XYDataSource
public class XYTestData extends java.lang.Object implements XYDataSource, HasStyle
-
-
Constructor Summary
Constructors Constructor and Description XYTestData()Creates new XYTestData
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetAxisType()Returns one of DOUBLE or DATEdoublegetMinusError(int index)intgetNPoints()doublegetPlusError(int index)JASHistStylegetStyle()This method is called by the plot to determine what style to be used for a plot.java.lang.StringgetTitle()Return the caption to be used in the legend for this data.doublegetX(int index)doublegetY(int index)static voidmain(java.lang.String[] args)
-
-
-
Method Detail
-
getAxisType
public int getAxisType()
Returns one of DOUBLE or DATE- Specified by:
getAxisTypein interfaceXYDataSource
-
getTitle
public java.lang.String getTitle()
Return the caption to be used in the legend for this data.- Specified by:
getTitlein interfaceDataSource
-
getMinusError
public double getMinusError(int index)
- Specified by:
getMinusErrorin interfaceXYDataSource
-
getPlusError
public double getPlusError(int index)
- Specified by:
getPlusErrorin interfaceXYDataSource
-
getX
public double getX(int index)
- Specified by:
getXin interfaceXYDataSource
-
getY
public double getY(int index)
- Specified by:
getYin interfaceXYDataSource
-
getNPoints
public int getNPoints()
- Specified by:
getNPointsin interfaceXYDataSource
-
getStyle
public JASHistStyle getStyle()
Description copied from interface:HasStyleThis method is called by the plot to determine what style to be used for a plot. It is the programmers responsibility to return the correct subclass of JASHistStyle corresponding to the type of data being implemented by the DataSource.- Specified by:
getStylein interfaceHasStyle- Returns:
- The style to be used, or null to use the default style.
- See Also:
JASHist1DHistogramStyle,JASHist2DHistogramStyle,JASHistScatterPlotStyle
-
main
public static void main(java.lang.String[] args)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG