|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OutputTarget
Interface for all output formats. This interface is sufficient for output
targets that are really converters, i.e. that need no layout, that read
directly from the FOTree. For output targets that require layout, i.e. that
read from the AreaTree, see Renderer
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
aXSL API 0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This documentation was created August 8 2007 by The aXSL Group and may be freely copied. See license for details.