Package xal.extension.widgets.olmplot
Class ParticleCurve
java.lang.Object
xal.extension.widgets.plot.BasicGraphData
xal.extension.widgets.olmplot.ParticleCurve
Graphics object representing a curve in a
{
- Since:
- Nov 26, 2012
- Author:
- Christopher K. Allen
-
Nested Class Summary
Nested classes/interfaces inherited from class xal.extension.widgets.plot.BasicGraphData
BasicGraphData.CompareErr, BasicGraphData.CompareX, BasicGraphData.CompareY, BasicGraphData.XYpoint
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionParticleCurve
(PLANE plane) Creates an empty data object representing the RMS beam envelope for the given phase plane.ParticleCurve
(PLANE plane, Trajectory<ParticleProbeState> trjPrt) Creates the basic data object representing a curve on a graph. -
Method Summary
Modifier and TypeMethodDescriptionvoid
loadCurve
(Trajectory<ParticleProbeState> trjSim) Defines the graphics curve according to the RMS envelope trajectory data in the givenTrajectory
object.Methods inherited from class xal.extension.widgets.plot.BasicGraphData
addPoint, 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, main, registerInContainer, removeAllPoints, removeContainer, removePoint, setDrawLinesOn, setDrawPointsOn, setGraphColor, setGraphName, setGraphPointFillingShape, setGraphPointShape, setGraphPointSize, setGraphProperty, setImmediateContainerUpdate, setLineDashPattern, setLineStroke, setLineThick, updateContainer, updateData, updatePoint, updatePoint, updateValues, updateValues, updateValuesY, updateValuesY, updateValueY
-
Constructor Details
-
ParticleCurve
Creates an empty data object representing the RMS beam envelope for the given phase plane. The curve object must be subsequently defined using the methodloadCurve(Trajectory)
.- Parameters:
plane
- phase plane of the rms envelope curve- Since:
- Nov 26, 2012
-
ParticleCurve
public ParticleCurve(PLANE plane, Trajectory<ParticleProbeState> trjPrt) throws IllegalArgumentException Creates the basic data object representing a curve on a graph. The curve is constructed from the given trajectory data for the given phase plane.- Parameters:
plane
- phase plane of the rms envelope curvetrjPrt
- object containing the data for the curve- Throws:
IllegalArgumentException
- the argument trjEnv is not a particle trajectory object- Since:
- Nov 26, 2012
-
-
Method Details
-
loadCurve
Defines the graphics curve according to the RMS envelope trajectory data in the givenTrajectory
object.- Parameters:
trjSim
- online model simulation trajectory containing curve data- Throws:
IllegalArgumentException
- the argument is not a particle trajectory object- Since:
- Nov 26, 2012
-