/** * Sets the position of the vertical line, relative to the position of the root label. * The given value can not be greater than the {@linkplain #getIndentation() indentation}. * * @param verticalLinePosition the new vertical line position. * @throws IllegalArgumentException if the given value is negative or greater than the indentation. */ public void setVerticalLinePosition(final int verticalLinePosition) throws IllegalArgumentException { ArgumentChecks.ensureBetween("verticalLinePosition", 0, indentation, verticalLinePosition); this.verticalLinePosition = verticalLinePosition; clearTreeSymbols(); }
/** * Sets the position of the vertical line, relative to the position of the root label. * The given value can not be greater than the {@linkplain #getIndentation() indentation}. * * @param verticalLinePosition the new vertical line position. * @throws IllegalArgumentException if the given value is negative or greater than the indentation. */ public void setVerticalLinePosition(final int verticalLinePosition) throws IllegalArgumentException { ArgumentChecks.ensureBetween("verticalLinePosition", 0, indentation, verticalLinePosition); this.verticalLinePosition = verticalLinePosition; clearTreeSymbols(); }
/** * Sets the number of spaces to add on the left margin for each indentation level. * If the new indentation is smaller than the {@linkplain #getVerticalLinePosition() * vertical line position}, then the later is also set to the given indentation value. * * @param indentation the new indentation. * @throws IllegalArgumentException if the given value is negative. */ public void setIndentation(final int indentation) throws IllegalArgumentException { ArgumentChecks.ensurePositive("indentation", indentation); this.indentation = indentation; if (verticalLinePosition > indentation) { verticalLinePosition = indentation; } clearTreeSymbols(); }
/** * Sets the number of spaces to add on the left margin for each indentation level. * If the new indentation is smaller than the {@linkplain #getVerticalLinePosition() * vertical line position}, then the later is also set to the given indentation value. * * @param indentation the new indentation. * @throws IllegalArgumentException if the given value is negative. */ public void setIndentation(final int indentation) throws IllegalArgumentException { ArgumentChecks.ensurePositive("indentation", indentation); this.indentation = indentation; if (verticalLinePosition > indentation) { verticalLinePosition = indentation; } clearTreeSymbols(); }