jasext.jhplotserver
Class RefP1D
- java.lang.Object
-
- java.util.Observable
-
- jasext.jhplotserver.RefP1D
-
- All Implemented Interfaces:
- DataSource, HasStatistics, HasStyle, Statistics, XYDataSource
public class RefP1D extends java.util.Observable implements XYDataSource, HasStyle, HasStatistics, Statistics
-
-
Constructor Summary
Constructors Constructor and Description RefP1D(jhplot.P1D h)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.String[]getAxisLabels()intgetAxisType()Returns one of DOUBLE or DATEdoublegetMinusError(int index)intgetNPoints()doublegetPlusError(int index)intgetSize()doublegetStatistic(java.lang.String name)java.lang.String[]getStatisticNames()StatisticsgetStatistics()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.java.lang.StringgetType()doublegetX(int index)java.lang.String[]getXAxisLabels()intgetXAxisType()doublegetXMax()doublegetXMin()doublegetY(int index)java.lang.String[]getYAxisLabels()intgetYAxisType()doublegetYMax()doublegetYMin()booleanisRebinnable()doublermsX()doublermsY()ScatterEnumerationstartEnumeration()ScatterEnumerationstartEnumeration(double a, double b, double c, double d)java.lang.StringtoString()
-
-
-
Method Detail
-
getSize
public int getSize()
-
getType
public java.lang.String getType()
-
isRebinnable
public boolean isRebinnable()
-
getAxisLabels
public java.lang.String[] getAxisLabels()
-
getTitle
public java.lang.String getTitle()
Description copied from interface:DataSourceReturn the caption to be used in the legend for this data.- Specified by:
getTitlein interfaceDataSource
-
getStatistics
public Statistics getStatistics()
- Specified by:
getStatisticsin interfaceHasStatistics
-
getStatisticNames
public java.lang.String[] getStatisticNames()
- Specified by:
getStatisticNamesin interfaceStatistics- Returns:
- A list of statistic names
-
rmsX
public double rmsX()
-
rmsY
public double rmsY()
-
getStatistic
public double getStatistic(java.lang.String name)
- Specified by:
getStatisticin interfaceStatistics- Returns:
- The value for the statistic
-
getXMin
public double getXMin()
-
getXMax
public double getXMax()
-
getYMin
public double getYMin()
-
getYMax
public double getYMax()
-
getXAxisType
public int getXAxisType()
-
getYAxisType
public int getYAxisType()
-
getXAxisLabels
public java.lang.String[] getXAxisLabels()
-
getYAxisLabels
public java.lang.String[] getYAxisLabels()
-
startEnumeration
public ScatterEnumeration startEnumeration()
-
startEnumeration
public ScatterEnumeration startEnumeration(double a, double b, double c, double d)
-
getNPoints
public int getNPoints()
- Specified by:
getNPointsin interfaceXYDataSource
-
getX
public double getX(int index)
- Specified by:
getXin interfaceXYDataSource
-
getY
public double getY(int index)
- Specified by:
getYin interfaceXYDataSource
-
getPlusError
public double getPlusError(int index)
- Specified by:
getPlusErrorin interfaceXYDataSource
-
getMinusError
public double getMinusError(int index)
- Specified by:
getMinusErrorin interfaceXYDataSource
-
getAxisType
public int getAxisType()
Description copied from interface:XYDataSourceReturns one of DOUBLE or DATE- Specified by:
getAxisTypein 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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG