Class ErrorDataSetAdapter
- java.lang.Object
-
- cern.jdve.data.AbstractDataSet
-
- cern.accsoft.steering.util.gui.dv.ds.ErrorDataSetAdapter
-
- All Implemented Interfaces:
ValidityDataSet
,cern.jdve.data.DataSet
,java.lang.Cloneable
public class ErrorDataSetAdapter extends cern.jdve.data.AbstractDataSet implements ValidityDataSet, cern.jdve.data.DataSet
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ErrorDataSetAdapter.ErrorAddMode
this enum determines, if the errors should be added (PLUS) or subtracted (MINUS) from the y-values.
-
Constructor Summary
Constructors Constructor Description ErrorDataSetAdapter(ErrorDataSet delegate, ErrorDataSetAdapter.ErrorAddMode errorAddMode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, double x, double y)
static cern.jdve.data.DataSource
createDefaultErrorDataSource(ErrorDataSet dataSet)
creates a DefaultDataSource with one dataset containing the dataset with plus errors and one with minus errorsint
getDataCount()
boolean
getValidity(int index)
return the style for a given Datapointdouble
getX(int index)
double
getY(int index)
boolean
hasValidityInformation()
should return, if validity-information is available, false otherwise.void
remove(int fromIndex, int toIndex)
-
Methods inherited from class cern.jdve.data.AbstractDataSet
add, addDataSetListener, clear, clone, computeLimits, createRanges, ensureEditable, findMaxXIndex, findMaxYIndex, findMinXIndex, findMinYIndex, fireDataAdded, fireDataChanged, fireDataRemoved, fireDataSetChanged, getDataCnt, getDataLabel, getDataPointIndex, getEditionHint, getIndexWindow, getName, getProperty, getUndefValue, getXRange, getYRange, indexOf, initRanges, interpolate, isAdjusting, isEditable, isLimitsValid, isVisible, isVisible, isVisibleLegend, removeDataSetListener, set, setAdjusting, setEditable, setEditionHint, setLimitsValid, setName, setProperty, setUndefValue, setVisible, setVisibleLegend, toString, updateRange, updateRange
-
-
-
-
Constructor Detail
-
ErrorDataSetAdapter
public ErrorDataSetAdapter(ErrorDataSet delegate, ErrorDataSetAdapter.ErrorAddMode errorAddMode)
-
-
Method Detail
-
getY
public double getY(int index)
- Specified by:
getY
in interfacecern.jdve.data.DataSet
-
getValidity
public boolean getValidity(int index)
Description copied from interface:ValidityDataSet
return the style for a given Datapoint- Specified by:
getValidity
in interfaceValidityDataSet
- Parameters:
index
- the index for which to retrieve the style- Returns:
- the Style
-
hasValidityInformation
public boolean hasValidityInformation()
Description copied from interface:ValidityDataSet
should return, if validity-information is available, false otherwise.- Specified by:
hasValidityInformation
in interfaceValidityDataSet
- Returns:
- true, if validity information is available, false otherwise
-
add
public void add(int index, double x, double y)
- Specified by:
add
in interfacecern.jdve.data.DataSet
-
getDataCount
public int getDataCount()
- Specified by:
getDataCount
in interfacecern.jdve.data.DataSet
-
getX
public double getX(int index)
- Specified by:
getX
in interfacecern.jdve.data.DataSet
-
remove
public void remove(int fromIndex, int toIndex)
- Specified by:
remove
in interfacecern.jdve.data.DataSet
-
createDefaultErrorDataSource
public static final cern.jdve.data.DataSource createDefaultErrorDataSource(ErrorDataSet dataSet)
creates a DefaultDataSource with one dataset containing the dataset with plus errors and one with minus errors- Parameters:
dataSet
-- Returns:
-
-