/** * sets the name of the row (if the index is valid). * * @param index the index of the row * @param name the name of the row */ public void setRowName(int index, String name) { if ((index >= 0) && (index < getRowCount())) { m_RowNames[index] = name; } }
/** * returns the count for the row. if the index is invalid then 0. * * @param index the index of the row * @return the count for the row */ public double getCount(int index) { if ((index >= 0) && (index < getRowCount())) { return m_Counts[index]; } else { return 0; } }
/** * sets the count for the row (if the index is valid). * * @param index the index of the row * @param count the count for the row */ public void setCount(int index, double count) { if ((index >= 0) && (index < getRowCount())) { m_Counts[index] = count; } }
/** * sets the hidden status of the row (if the index is valid). * * @param index the index of the row * @param hidden the hidden status of the row */ public void setRowHidden(int index, boolean hidden) { if ((index >= 0) && (index < getRowCount())) { m_RowHidden[index] = hidden; } }
/** * sets the name of the row (if the index is valid). * * @param index the index of the row * @param name the name of the row */ public void setRowName(int index, String name) { if ((index >= 0) && (index < getRowCount())) { m_RowNames[index] = name; } }
/** * sets the hidden status of the row (if the index is valid). * * @param index the index of the row * @param hidden the hidden status of the row */ public void setRowHidden(int index, boolean hidden) { if ((index >= 0) && (index < getRowCount())) { m_RowHidden[index] = hidden; } }
/** * sets the count for the row (if the index is valid). * * @param index the index of the row * @param count the count for the row */ public void setCount(int index, double count) { if ((index >= 0) && (index < getRowCount())) { m_Counts[index] = count; } }
/** * returns the count for the row. if the index is invalid then 0. * * @param index the index of the row * @return the count for the row */ public double getCount(int index) { if ((index >= 0) && (index < getRowCount())) { return m_Counts[index]; } else { return 0; } }
/** * returns the hidden status of the row, if the index is valid, otherwise * false. * * @param index the index of the row * @return true if hidden */ public boolean getRowHidden(int index) { if ((index >= 0) && (index < getRowCount())) { return m_RowHidden[index]; } else { return false; } }
/** * returns the hidden status of the row, if the index is valid, otherwise * false. * * @param index the index of the row * @return true if hidden */ public boolean getRowHidden(int index) { if ((index >= 0) && (index < getRowCount())) { return m_RowHidden[index]; } else { return false; } }
/** * sets the mean at the given position (if the position is valid). * * @param col the column of the mean * @param row the row of the mean * @param value the value of the mean */ public void setMean(int col, int row, double value) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { m_Mean[row][col] = value; } }
/** * sets the std deviation at the given position (if the position is valid). * * @param col the column of the std. deviation * @param row the row of the std deviation * @param value the value of the std deviation */ public void setStdDev(int col, int row, double value) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { m_StdDev[row][col] = value; } }
/** * sets the std deviation at the given position (if the position is valid). * * @param col the column of the std. deviation * @param row the row of the std deviation * @param value the value of the std deviation */ public void setStdDev(int col, int row, double value) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { m_StdDev[row][col] = value; } }
/** * sets the significance at the given position (if the position is valid). * * @param col the column of the significance * @param row the row of the significance * @param value the value of the significance */ public void setSignificance(int col, int row, int value) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { m_Significance[row][col] = value; } }
/** * sets the mean at the given position (if the position is valid). * * @param col the column of the mean * @param row the row of the mean * @param value the value of the mean */ public void setMean(int col, int row, double value) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { m_Mean[row][col] = value; } }
/** * sets the significance at the given position (if the position is valid). * * @param col the column of the significance * @param row the row of the significance * @param value the value of the significance */ public void setSignificance(int col, int row, int value) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { m_Significance[row][col] = value; } }
/** * returns the std deviation at the given position, if the position is valid, * otherwise 0. * * @param col the column index * @param row the row index * @return the std deviation */ public double getStdDev(int col, int row) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { return m_StdDev[row][col]; } else { return 0; } }
/** * returns the number of visible rows. * * @return the number of rows */ public int getVisibleRowCount() { int rows; int i; rows = 0; for (i = 0; i < getRowCount(); i++) { if (!getRowHidden(i)) { rows++; } } return rows; }
/** * returns the mean at the given position, if the position is valid, otherwise * 0. * * @param col the column index * @param row the row index * @return the mean */ public double getMean(int col, int row) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { return m_Mean[row][col]; } else { return 0; } }
/** * returns the significance at the given position, if the position is valid, * otherwise SIGNIFICANCE_ATIE. * * @param col the column index * @param row the row index * @return the indicator */ public int getSignificance(int col, int row) { if ((col >= 0) && (col < getColCount()) && (row >= 0) && (row < getRowCount())) { return m_Significance[row][col]; } else { return SIGNIFICANCE_TIE; } }