Class MatrixRowColDataSet
- java.lang.Object
-
- cern.jdve.data.AbstractDataSet
-
- cern.accsoft.steering.util.gui.dv.ds.AbstractJmadDataSet
-
- cern.accsoft.steering.util.gui.dv.ds.ValidityMatrixDataSet
-
- cern.accsoft.steering.util.gui.dv.ds.MatrixRowColDataSet
-
- All Implemented Interfaces:
MarkerXProvider
,ValidityDataSet
,cern.jdve.data.DataSet
,java.lang.Cloneable
- Direct Known Subclasses:
MatrixColumnDataSet
,MatrixRowDataSet
public abstract class MatrixRowColDataSet extends ValidityMatrixDataSet
this class represents a dataset for the dataviewer, which either displays a row or a column of a matrix. The number of the displayed column/row is determined by the fixedIndex property. The type is determined by the
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MatrixRowColDataSet.MatrixDsType
this enum represents the two possible different types of aMatrixRowColDataSet
: either it displayes one column, or one row.
-
Field Summary
-
Fields inherited from class cern.jdve.data.AbstractDataSet
PROPERTY_EDITABLE, PROPERTY_EDITION_HINT, PROPERTY_MARKER, PROPERTY_NAME, PROPERTY_STYLE, PROPERTY_UNDEF_VALUE, PROPERTY_VISIBLE, PROPERTY_VISIBLE_IN_LEGEND, xRange, yRange
-
Fields inherited from interface cern.accsoft.steering.jmad.gui.mark.MarkerXProvider
ELEMENT_NAME_HV_BORDER
-
-
Constructor Summary
Constructors Constructor Description MatrixRowColDataSet(MatrixRowColDataSet.MatrixDsType type, java.lang.String name)
the only constructor, which enforces setting of the initial paramters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDataCount()
java.lang.Integer
getFirstIndex()
int
getFixedIndex()
java.lang.Integer
getLastIndex()
Jama.Matrix
getMatrix()
Jama.Matrix
getOffsetMatrix()
MatrixRowColDataSet.MatrixDsType
getType()
boolean
getValidity(int index)
return the style for a given Datapointdouble
getY(int index)
boolean
isOffsetSubtract()
void
setFirstIndex(java.lang.Integer firstIndex)
void
setFixedIndex(int fixedIndex)
void
setLastIndex(java.lang.Integer lastIndex)
void
setMatrix(Jama.Matrix matrix)
set the matrix, which shall be displayed.void
setMatrix(Jama.Matrix matrix, java.util.List<java.lang.Double> xValues)
sets the matrix + additional xValuesvoid
setOffsetMatrix(Jama.Matrix offsetMatrix)
void
setOffsetSubtract(boolean offsetSubtract)
-
Methods inherited from class cern.accsoft.steering.util.gui.dv.ds.ValidityMatrixDataSet
getValidity, hasValidityInformation, setValidityMatrix
-
Methods inherited from class cern.accsoft.steering.util.gui.dv.ds.AbstractJmadDataSet
add, fireFullChange, getDataLabel, getLabels, getX, getXPositions, getXValues, refresh, remove, setLabels, setXValues
-
Methods inherited from class cern.jdve.data.AbstractDataSet
add, addDataSetListener, clear, clone, computeLimits, createRanges, ensureEditable, findMaxXIndex, findMaxYIndex, findMinXIndex, findMinYIndex, fireDataAdded, fireDataChanged, fireDataRemoved, fireDataSetChanged, getDataCnt, 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
-
MatrixRowColDataSet
public MatrixRowColDataSet(MatrixRowColDataSet.MatrixDsType type, java.lang.String name)
the only constructor, which enforces setting of the initial paramters.- Parameters:
type
- the type of this dataset (row/column)name
- the name of the dataset
-
-
Method Detail
-
getDataCount
public int getDataCount()
-
getType
public final MatrixRowColDataSet.MatrixDsType getType()
- Returns:
- the type
-
getY
public double getY(int index)
-
getValidity
public boolean getValidity(int index)
Description copied from interface:ValidityDataSet
return the style for a given Datapoint- Parameters:
index
- the index for which to retrieve the style- Returns:
- the Style
-
getMatrix
public Jama.Matrix getMatrix()
- Returns:
- the matrix, which is displayed
-
setMatrix
public void setMatrix(Jama.Matrix matrix)
set the matrix, which shall be displayed.- Parameters:
matrix
- the matrix to display
-
setMatrix
public void setMatrix(Jama.Matrix matrix, java.util.List<java.lang.Double> xValues)
sets the matrix + additional xValues- Parameters:
matrix
-xValues
-
-
setFixedIndex
public void setFixedIndex(int fixedIndex)
- Parameters:
fixedIndex
- the fixedIndex to set
-
getFixedIndex
public int getFixedIndex()
- Returns:
- the fixedIndex
-
setOffsetMatrix
public void setOffsetMatrix(Jama.Matrix offsetMatrix)
- Parameters:
offsetMatrix
- the offsetMatrix to set
-
getOffsetMatrix
public Jama.Matrix getOffsetMatrix()
- Returns:
- the offsetMatrix
-
setOffsetSubtract
public void setOffsetSubtract(boolean offsetSubtract)
- Parameters:
offsetSubtract
- the offsetSubtract to set
-
isOffsetSubtract
public boolean isOffsetSubtract()
- Returns:
- the offsetSubtract
-
setFirstIndex
public void setFirstIndex(java.lang.Integer firstIndex)
-
getFirstIndex
public java.lang.Integer getFirstIndex()
-
setLastIndex
public void setLastIndex(java.lang.Integer lastIndex)
-
getLastIndex
public java.lang.Integer getLastIndex()
-
-