Class XYSequenceTable.Model

    • Constructor Detail

      • Model

        public Model​(XYSequence sequence)
        Initializes the model.
        Parameters:
        sequence - the sequence to base the model on
    • Method Detail

      • getSequence

        public XYSequence getSequence()
        Returns the underlying sequence.
        Returns:
        the sequence
      • getRowCount

        public int getRowCount()
        Returns the number of rows/targets in the sequence.
        Returns:
        the number of rows
      • getColumnCount

        public int getColumnCount()
        Returns the number of columns in the table.
        Returns:
        the number of columns
      • getValueAt

        protected Object getValueAt​(XYSequencePoint point,
                                    int column)
        Returns the value at the specified column for a sequence point.
        Parameters:
        point - the point to get the value from
        column - the column to get the value for
        Returns:
        the value
      • getValueAt

        public Object getValueAt​(int row,
                                 int column)
        Returns the value at the given position.
        Parameters:
        row - the row in the table
        column - the column in the table
        Returns:
        the value
      • getPointAt

        public XYSequencePoint getPointAt​(int row,
                                          int column)
        Returns the sequence point at the given position.
        Parameters:
        row - the row in the table
        column - the column in the table
        Returns:
        the point