|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface TextDepictContext
Encapsulation of text information related to the current depiction.
Text is collected in a StringBuilder until it is ready to be depicted.
The text writing methods are preferred over retrieving the string builder, as these methods encode information as necessary.
| Method Summary | |
|---|---|
void |
clearDepictText()
Clears all data collected for depiction. |
java.lang.StringBuilder |
getDepictStringBuilder()
The string builder that holds the current content being collected, though not necessarily all the content collected. |
java.lang.String |
getDepictText()
|
int |
getIndentLevel()
|
com.globalmentor.text.CharacterEncoding |
getOutputCharacterEncoding()
|
com.globalmentor.net.ContentType |
getOutputContentType()
|
void |
indent()
Increments the indent level. |
void |
indent(int indentDelta)
Changes the indent level by the given amount. |
boolean |
isFormatted()
|
void |
setIndentLevel(int newIndentLevel)
Sets the level of text indentation. |
void |
setOutputContentType(com.globalmentor.net.ContentType contentType)
Sets the content type of the text output. |
void |
unindent()
Decrements the indent level. |
void |
write(char character)
Writes a character, encoding it as necessary. |
void |
write(java.lang.String text)
Writes text, encoding it as necessary. |
void |
writeIndent()
Writes an indention at the current indention level. |
void |
writeLiteral(java.lang.String text)
Writes literal text with no encoding. |
| Methods inherited from interface com.guiseframework.platform.DepictContext |
|---|
getDepictionURI, getDepictionURI, getDepictionURI, getDestination, getPlatform, getSession, getStyles |
| Methods inherited from interface com.globalmentor.beans.PropertyBindable |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener |
| Method Detail |
|---|
java.lang.StringBuilder getDepictStringBuilder()
void clearDepictText()
java.lang.String getDepictText()
boolean isFormatted()
true.int getIndentLevel()
void setIndentLevel(int newIndentLevel)
newIndentLevel - The new zero-based level of text indention.void indent(int indentDelta)
indentDelta - The amount by which to increase or decrease the indent level.getIndentLevel(),
setIndentLevel(int)void indent()
indent(int)void unindent()
indent(int)com.globalmentor.text.CharacterEncoding getOutputCharacterEncoding()
com.globalmentor.net.ContentType getOutputContentType()
void setOutputContentType(com.globalmentor.net.ContentType contentType)
contentType - The content type of the text output.
void writeLiteral(java.lang.String text)
throws java.io.IOException
text - The literal text to write.
java.io.IOException - if there is an error writing the information.
void write(char character)
throws java.io.IOException
writeLiteral(String).
character - The character to write.
java.io.IOException - if there is an error writing the information.
void write(java.lang.String text)
throws java.io.IOException
writeLiteral(String).
text - The text to write.
java.io.IOException - if there is an error writing the information.
void writeIndent()
throws java.io.IOException
java.io.IOException - if there is an error writing the information.isFormatted(),
getIndentLevel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||