Four Js Genero Report Writer
FourJs.Report.Runtime.SVGRenderer Class Reference

Class for configuring SVG output. More...

Inheritance diagram for FourJs.Report.Runtime.SVGRenderer:
FourJs.Report.Runtime.FormatProducer FourJs.Report.Runtime.LayoutedPagesConsumer

Public Member Functions

 SVGRenderer (FormatHandler handler)
 Creates a SVGRenderer object that outputs to the given handler object. More...
 
- Public Member Functions inherited from FourJs.Report.Runtime.FormatProducer
 FormatProducer (FormatHandler handler)
 Creates a FormatProducer object that outputs to the given handler object. More...
 

Static Public Attributes

static String legalCopyright = Version.CLASS_COPYRIGHT
 
- Static Public Attributes inherited from FourJs.Report.Runtime.FormatProducer
static String legalCopyright = Version.CLASS_COPYRIGHT
 

Properties

int fromPage [get, set]
 Sets the first page to be included in the document. fromPage an integer greater than zero and less than or equal to toPage More...
 
int toPage [get, set]
 Sets the last page (inclusive) to be included in the document. toPage an integer greater than zero and less than or equal to fromPage More...
 
bool embedFonts [get, set]
 Activates font embedding if true, external font referencing if false. The default value is true. embedFonts whether fonts are embedded in the document or external references are used More...
 
String charsetToEmbed [get, set]
 Selects a character set for font embedding whose characters will be embedded (if available in the selected fonts). The default value is "DEFAULT". More...
 
- Properties inherited from FourJs.Report.Runtime.FormatProducer
FormatHandler handler [get]
 Sets the specified handler as the handler for the output produced by this processor. More...
 

Detailed Description

Class for configuring SVG output.

Font embedding

Fonts are embedded by default. Embedding is available for any font listed by the utility com.fourjs.report.main.FontInfo.

Compatibility

The SVG produced makes use of the pageSet and page element specified in SVG Print to separate the different page images from each other. However, these elements are not yet recognized by most browsers or SVG editors.

Processing large documents

The delay between input and output is one page. Documents not containing "Page N of M" paginations exhibit nearly constant memory consumption while documents containing them have a linear consumption of about 20 KB per page. The paginations do not interfere with the streaming since a SVG specific referencing mechanism is used to update the paginations at the end of a block when the total number of pages is known.

Constructor & Destructor Documentation

FourJs.Report.Runtime.SVGRenderer.SVGRenderer ( FormatHandler  handler)

Creates a SVGRenderer object that outputs to the given handler object.

Parameters
handlerA FormatHandler

Property Documentation

String FourJs.Report.Runtime.SVGRenderer.charsetToEmbed
getset

Selects a character set for font embedding whose characters will be embedded (if available in the selected fonts). The default value is "DEFAULT".

charsetToEmbed one of the following values:

  • "DEFAULT": All characters from the code pages ISO-8859-1 thru ISO-8859-15 (About 700 characters)
  • "ALL": All characters available in a particular font
  • Any encoding supported by the JVM (see java.nio.charset.Charset#availableCharsets)

/p>

embedFonts

bool FourJs.Report.Runtime.SVGRenderer.embedFonts
getset

Activates font embedding if true, external font referencing if false. The default value is true. embedFonts whether fonts are embedded in the document or external references are used

int FourJs.Report.Runtime.SVGRenderer.fromPage
getset

Sets the first page to be included in the document. fromPage an integer greater than zero and less than or equal to toPage

Exceptions
ArgumentOutOfRangeExceptionif the above condition is violated.
int FourJs.Report.Runtime.SVGRenderer.toPage
getset

Sets the last page (inclusive) to be included in the document. toPage an integer greater than zero and less than or equal to fromPage

Exceptions
ArgumentOutOfRangeExceptionif the above condition is violated.