Class 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
    • 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()
      • 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()