/** * returns the name of the row, if the index is valid, otherwise null. if * getPrintColNames() is FALSE then an empty string is returned or if * getEnumerateColNames() is TRUE then the 1-based index surrounded by * parentheses. * * @param index the index of the column * @return the name of the column * @see #setPrintColNames(boolean) * @see #getPrintColNames() * @see #setEnumerateColNames(boolean) * @see #getEnumerateColNames() */ public String getColName(int index) { String result; result = null; if ((index >= 0) && (index < getColCount())) { if (getPrintColNames()) { result = m_ColNames[index]; } else { result = ""; } if (getEnumerateColNames()) { result = LEFT_PARENTHESES + Integer.toString(index + 1) + RIGHT_PARENTHESES + " " + result; result = result.trim(); } } return result; }
/** * returns the name of the row, if the index is valid, otherwise null. if * getPrintColNames() is FALSE then an empty string is returned or if * getEnumerateColNames() is TRUE then the 1-based index surrounded by * parentheses. * * @param index the index of the column * @return the name of the column * @see #setPrintColNames(boolean) * @see #getPrintColNames() * @see #setEnumerateColNames(boolean) * @see #getEnumerateColNames() */ public String getColName(int index) { String result; result = null; if ((index >= 0) && (index < getColCount())) { if (getPrintColNames()) { result = m_ColNames[index]; } else { result = ""; } if (getEnumerateColNames()) { result = LEFT_PARENTHESES + Integer.toString(index + 1) + RIGHT_PARENTHESES + " " + result; result = result.trim(); } } return result; }
if (getEnumerateColNames()) { result.add("-enum-col-names");
if (getEnumerateColNames()) { result.add("-enum-col-names");
if (m_ResultMatrix.getEnumerateColNames()) { result.append("\n\n" + m_ResultMatrix.toStringKey());
if (m_ResultMatrix.getEnumerateColNames()) { result.append("\n\n" + m_ResultMatrix.toStringKey());