Переглянути джерело

Added toString() and corrected javadoc and checkstyle.


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_AFPGOCAResources@672773 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-1_0
Adrian Cumiskey 16 роки тому
джерело
коміт
61cfd2dc54

+ 6
- 1
src/java/org/apache/fop/area/inline/TextArea.java Переглянути файл

@@ -63,6 +63,7 @@ public class TextArea extends AbstractTextArea {
*
* @param word the word string
* @param offset the offset for the next area
* @param letterAdjust the letter adjustment array (may be null)
*/
public void addWord(String word, int offset, int[] letterAdjust) {
WordArea wordArea = new WordArea(word, offset, letterAdjust);
@@ -98,7 +99,7 @@ public class TextArea extends AbstractTextArea {
StringBuffer text = new StringBuffer();
InlineArea child;
// assemble the text
for (int i = 0; i < inlines.size(); i ++) {
for (int i = 0; i < inlines.size(); i++) {
child = (InlineArea) inlines.get(i);
if (child instanceof WordArea) {
text.append(((WordArea) child).getWord());
@@ -109,5 +110,9 @@ public class TextArea extends AbstractTextArea {
return text.toString();
}

/** {@inheritDoc} */
public String toString() {
return "TextArea{text=" + getText() + "}";
}
}


Завантаження…
Відмінити
Зберегти