/** * Appends to this.out a one-line or multi-line string representation of the given * semantic graph, using the given number of spaces for indentation. */ private void formatSGNode(SemanticGraph sg, IndexedWord node, int spaces) { used.add(node); String oneline = formatSGNodeOneline(sg, node); boolean toolong = (spaces + oneline.length() > width); boolean breakable = sg.hasChildren(node); if (toolong && breakable) { formatSGNodeMultiline(sg, node, spaces); } else { out.append(oneline); } }
/** * Appends to this.out a one-line or multi-line string representation of the given * semantic graph, using the given number of spaces for indentation. */ private void formatSGNode(SemanticGraph sg, IndexedWord node, int spaces) { used.add(node); String oneline = formatSGNodeOneline(sg, node); boolean toolong = (spaces + oneline.length() > width); boolean breakable = sg.hasChildren(node); if (toolong && breakable) { formatSGNodeMultiline(sg, node, spaces); } else { out.append(oneline); } }
/** * Appends to this.out a one-line or multi-line string representation of the given * semantic graph, using the given number of spaces for indentation. */ private void formatSGNode(SemanticGraph sg, IndexedWord node, int spaces) { used.add(node); String oneline = formatSGNodeOneline(sg, node); boolean toolong = (spaces + oneline.length() > width); boolean breakable = sg.hasChildren(node); if (toolong && breakable) { formatSGNodeMultiline(sg, node, spaces); } else { out.append(oneline); } }
/** * Appends to this.out a one-line or multi-line string representation of the given * semantic graph, using the given number of spaces for indentation. */ private void formatSGNode(SemanticGraph sg, IndexedWord node, int spaces) { used.add(node); String oneline = formatSGNodeOneline(sg, node); boolean toolong = (spaces + oneline.length() > width); boolean breakable = sg.hasChildren(node); if (toolong && breakable) { formatSGNodeMultiline(sg, node, spaces); } else { out.append(oneline); } }