Package de.gsi.dataset
Interface EditableDataSet
-
- All Superinterfaces:
DataSet,EventSource
- All Known Implementing Classes:
DefaultDataSet,DefaultErrorDataSet,DoubleDataSet,DoubleErrorDataSet,FloatDataSet
public interface EditableDataSet extends DataSet
- Author:
- rstein
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EditableDataSetadd(int index, double x, double y)add point to the data setEditConstraintsgetEditConstraints()EditableDataSetremove(int index)remove point from data setEditableDataSetset(int index, double x, double y)modify point in the the data setEditableDataSetsetEditConstraints(EditConstraints constraints)EditableDataSetsetName(java.lang.String name)-
Methods inherited from interface de.gsi.dataset.DataSet
getDataCount, getDataCount, getDataLabel, getName, getStyle, getStyle, getUndefValue, getValue, getX, getXIndex, getXMax, getXMin, getXValues, getY, getYIndex, getYMax, getYMin, getYValues, isAutoNotification, lock, setAutoNotifaction, setStyle, unlock
-
Methods inherited from interface de.gsi.dataset.event.EventSource
addListener, invokeListener, invokeListener, removeListener, updateEventListener
-
-
-
-
Method Detail
-
setName
EditableDataSet setName(java.lang.String name)
- Parameters:
name- the new data set name- Returns:
- itself (fluent design)
-
set
EditableDataSet set(int index, double x, double y)
modify point in the the data set- Parameters:
index- data point index at which the new data point should be addedx- horizontal coordinate of the new data pointy- vertical coordinate of the new data point- Returns:
- itself (fluent design)
-
add
EditableDataSet add(int index, double x, double y)
add point to the data set- Parameters:
index- data point index at which the new data point should be addedx- horizontal coordinate of the new data pointy- vertical coordinate of the new data point- Returns:
- itself (fluent design)
-
remove
EditableDataSet remove(int index)
remove point from data set- Parameters:
index- data point which should be removed- Returns:
- itself (fluent design)
-
getEditConstraints
EditConstraints getEditConstraints()
- Returns:
- edit constraints for data set
-
setEditConstraints
EditableDataSet setEditConstraints(EditConstraints constraints)
- Parameters:
constraints- new edit constraints- Returns:
- itself (fluent design)
-
-