public interface OutputTarget
Renderer
.Modifier and Type | Method and Description |
---|---|
int[] |
getFontSources()
Indicates which font sources can be used by this OutputTarget.
|
boolean |
outputStreamRequired()
Indicates whether an OutputStream is required by this target.
|
void |
setApplicationName(java.lang.String applicationName)
Sets the application name meta-information item.
|
void |
setApplicationNameShort(java.lang.String applicationNameShort)
Sets a short version of the application name meta-information item.
|
void |
setApplicationVersion(java.lang.String applicationVersion)
Sets the application version meta-information item.
|
void |
setDeveloperUrlShort(java.lang.String developerURLShort)
Sets a short version of the developer's URL meta-information item.
|
void |
setFontConsumer(FontConsumer fontConsumer)
Sets the FontConsumer to be used for this output.
|
void |
setOutputStream(java.io.OutputStream stream)
Sets the OutputStream, if any, to which the output should be written.
|
void |
setStrokeText(boolean stroke)
Sets whether SVG Text should be stroked.
|
void |
startOutput()
Hook allowing the OutputTarget to initialize itself and prepare to
render pages.
|
void |
stopOutput()
Hook allowing the OutputTarget to clean up.
|
boolean outputStreamRequired()
int[] getFontSources()
FontConsumer.FONT_SOURCE_FREE_STANDING
and
FontConsumer.FONT_SOURCE_SYSTEM
.
The order of the array signifies the order of preference for selection
purposes.
For example, if both system fonts and free-standing fonts can be used,
but free-standing fonts are preferred, the array should contain
{ FONT_SOURCE_FREE_STANDING, FONT_SOURCE_SYSTEM };void setOutputStream(java.io.OutputStream stream)
stream
- The OutputStream to which the output should be written.void setApplicationName(java.lang.String applicationName)
applicationName
- The application name to set.void setApplicationNameShort(java.lang.String applicationNameShort)
applicationNameShort
- The short application name to set.void setApplicationVersion(java.lang.String applicationVersion)
applicationVersion
- The application version to set.void setDeveloperUrlShort(java.lang.String developerURLShort)
developerURLShort
- The short developer URL to set.void setStrokeText(boolean stroke)
stroke
- Set to true for stroked text.void setFontConsumer(FontConsumer fontConsumer)
fontConsumer
- The FontConsumer to set.void startOutput() throws OutputException
OutputException
- For problems writing the output.void stopOutput() throws OutputException
OutputException
- For problems writing the output.This documentation was created 2017-01-24 at 21:26 GMT by The aXSL Group and may be freely copied. See license for details.