IHtmlGenerator

public interface IHtmlGenerator

Html generator.

Methods

MethodDescription
addHtml(String html)Adds formatted HTML text.
addHtml(char[] html)Adds formatted HTML text.
addHtml(char[] html, int startIndex, int length)Adds formatted HTML text.
addText(String text)Adds plain text to the html files, replacing special characters with html entities.
addText(char[] text)Adds plain text to the html files, replacing special characters with html entities.
addText(char[] text, int startIndex, int length)Adds plain text to the html files, replacing special characters with html entities.
addAttributeValue(String value)Quotes attribute value and adds it to the html file.
addAttributeValue(char[] value)Quotes attribute value and adds it to the html file.
addAttributeValue(char[] value, int startIndex, int length)Quotes attribute value and adds it to the html file.
getSlideImageSize()Returns slide image size.
getSlideImageSizeUnit()Returns a unit in which slide image size is specified.
getSlideImageSizeUnitCode()Returns a css code of unit in which slide image size is specified.
getPreviousSlideIndex()Returns index of previously rendered slide or -1 if first slide is rendering.
getSlideIndex()Returns index of currently rendering slide.
getNextSlideIndex()Returns index of a slide, which will be rendered after the current slide or -1 if currently rendering last slide.

addHtml(String html)

public abstract void addHtml(String html)

Adds formatted HTML text.

Parameters:

ParameterTypeDescription
htmljava.lang.StringText to add.

addHtml(char[] html)

public abstract void addHtml(char[] html)

Adds formatted HTML text.

Parameters:

ParameterTypeDescription
htmlchar[]Text to add.

addHtml(char[] html, int startIndex, int length)

public abstract void addHtml(char[] html, int startIndex, int length)

Adds formatted HTML text.

Parameters:

ParameterTypeDescription
htmlchar[]Text to add.
startIndexintStart index of the portion to add.
lengthintLength of the portion to add.

addText(String text)

public abstract void addText(String text)

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

Parameters:

ParameterTypeDescription
textjava.lang.StringText to add.

addText(char[] text)

public abstract void addText(char[] text)

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

Parameters:

ParameterTypeDescription
textchar[]Text to add.

addText(char[] text, int startIndex, int length)

public abstract void addText(char[] text, int startIndex, int length)

Adds plain text to the html files, replacing special characters with html entities. Linebreaks and whitespaces aren’t replaced.

Parameters:

ParameterTypeDescription
textchar[]Text to add.
startIndexintStart index of the portion to add.
lengthintLength of the portion to add.

addAttributeValue(String value)

public abstract void addAttributeValue(String value)

Quotes attribute value and adds it to the html file.

Parameters:

ParameterTypeDescription
valuejava.lang.StringAttribute value string.

addAttributeValue(char[] value)

public abstract void addAttributeValue(char[] value)

Quotes attribute value and adds it to the html file.

Parameters:

ParameterTypeDescription
valuechar[]Attribute value string.

addAttributeValue(char[] value, int startIndex, int length)

public abstract void addAttributeValue(char[] value, int startIndex, int length)

Quotes attribute value and adds it to the html file.

Parameters:

ParameterTypeDescription
valuechar[]Attribute value string.
startIndexintStart index of the portion to add.
lengthintLength of the portion to add.

getSlideImageSize()

public abstract Dimension2D getSlideImageSize()

Returns slide image size. Read-only java.awt.geom.Dimension2D.

Returns: java.awt.geom.Dimension2D

getSlideImageSizeUnit()

public abstract int getSlideImageSizeUnit()

Returns a unit in which slide image size is specified. Read-only SvgCoordinateUnit.

Returns: int

getSlideImageSizeUnitCode()

public abstract String getSlideImageSizeUnitCode()

Returns a css code of unit in which slide image size is specified. Read-only String.

Returns: java.lang.String

getPreviousSlideIndex()

public abstract int getPreviousSlideIndex()

Returns index of previously rendered slide or -1 if first slide is rendering. Read-only int.

Returns: int

getSlideIndex()

public abstract int getSlideIndex()

Returns index of currently rendering slide. Read-only int.

Returns: int

getNextSlideIndex()

public abstract int getNextSlideIndex()

Returns index of a slide, which will be rendered after the current slide or -1 if currently rendering last slide. Read-only int.

Returns: int