Package xal.extension.widgets.plot
Class UnwrappedGeneratorGraphData
java.lang.Object
xal.extension.widgets.plot.BasicGraphData
xal.extension.widgets.plot.UnwrappedGeneratorGraphData
-
Nested Class Summary
Nested classes/interfaces inherited from class xal.extension.widgets.plot.BasicGraphData
BasicGraphData.CompareErr, BasicGraphData.CompareX, BasicGraphData.CompareY, BasicGraphData.XYpoint -
Field Summary
FieldsFields inherited from class xal.extension.widgets.plot.BasicGraphData
color, drawLinesOn, drawPointsOn, errYmax, graphDataContainerV, immediateContainerUpdate, lineStroke, lineThick, lockUpObj, markShape, markShapeFilled, name, nInterpPoints, pointSize, propertyMap, xMax, xMin, xyInterpPointV, xyPointV, yMax, yMin -
Constructor Summary
ConstructorsConstructorDescriptiondata set constructorUnwrappedGeneratorGraphData(int nPoint, int nInterpPoints) data set constructor with defined initial capacity for number of (x,y) points and interpolated points -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoint(double x, double y, double err) add (x,y, error of y) point to the data set and an unwrapped data point to the external containerstatic voidvoidremove all points from the data setvoidsetExtUnwrappedContainer(BasicGraphData extUnwrappedData) set the external data container for unwrapped dataprotected doubleunwrap(double y, double yIn) this method finds +-2*PI to produce the nearest pointsMethods inherited from class xal.extension.widgets.plot.BasicGraphData
addPoint, addPoint, addPoint, calculateRepresentation, getCapacity, getDrawLinesOn, getDrawPointsOn, getErr, getGraphColor, getGraphDataContainer, getGraphName, getGraphPointShape, getGraphPointSize, getGraphProperty, getGraphPropertyKeys, getGraphPropertySize, getImmediateContainerUpdate, getInterpX, getInterpY, getLineThick, getLockObject, getMaxErr, getMaxX, getMaxY, getMinX, getMinY, getNumberOfGraphDataContainers, getNumbOfInterpPoints, getNumbOfPoints, getStroke, getValueDerivativeY, getValueY, getX, getY, init, isGraphPointShapeFilled, registerInContainer, removeContainer, removePoint, setDrawLinesOn, setDrawPointsOn, setGraphColor, setGraphName, setGraphPointFillingShape, setGraphPointShape, setGraphPointSize, setGraphProperty, setImmediateContainerUpdate, setLineDashPattern, setLineStroke, setLineThick, updateContainer, updateData, updatePoint, updatePoint, updateValues, updateValues, updateValuesY, updateValuesY, updateValueY
-
Field Details
-
extUnwrappedData
-
-
Constructor Details
-
UnwrappedGeneratorGraphData
public UnwrappedGeneratorGraphData()data set constructor -
UnwrappedGeneratorGraphData
public UnwrappedGeneratorGraphData(int nPoint, int nInterpPoints) data set constructor with defined initial capacity for number of (x,y) points and interpolated points
-
-
Method Details
-
setExtUnwrappedContainer
set the external data container for unwrapped data -
addPoint
public void addPoint(double x, double y, double err) add (x,y, error of y) point to the data set and an unwrapped data point to the external container- Overrides:
addPointin classBasicGraphData- Parameters:
x- The feature to be added to the Point attributey- The feature to be added to the Point attributeerr- The feature to be added to the Point attribute
-
unwrap
protected double unwrap(double y, double yIn) this method finds +-2*PI to produce the nearest points -
removeAllPoints
public void removeAllPoints()remove all points from the data set- Overrides:
removeAllPointsin classBasicGraphData
-
main
-