Interface RenderingTarget
- All Known Implementing Classes:
AbstractRenderingTarget,RenderingTargetCollectingImpl,RenderingTargetStreamImpl
public interface RenderingTarget
Abstraction over the target of rendering (streams, buffers, ...).
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddLine()Adds a newline.voidAdds the string, preceded by any necessary indentation, followed by a newline.voidAdds the rendered pattern, preceded by any necessary indentation, followed by a newline.voidindent(int depth) Increase the indentation by the given factor.voidunindent(int depth) Decrease the indentation by the given factor.
-
Method Details
-
addLine
Adds the string, preceded by any necessary indentation, followed by a newline.- See Also:
-
addLine
Adds the rendered pattern, preceded by any necessary indentation, followed by a newline.- See Also:
-
addLine
void addLine()Adds a newline. -
indent
void indent(int depth) Increase the indentation by the given factor.- API Note:
- Indentation depth is constant and controlled by the target itself.
depthhere indicates the number of indentations by which to increase.
-
unindent
void unindent(int depth) Decrease the indentation by the given factor.- API Note:
- Indentation depth is constant and controlled by the target itself.
depthhere indicates the number of indentations by which to decrease.
-