com.aspose.slides

Interfaces

Classes

Exceptions

com.aspose.slides

Class HtmlGenerator

  • java.lang.Object
    • com.aspose.slides.HtmlGenerator
  • All Implemented Interfaces:
    IHtmlGenerator


    public final class HtmlGenerator
    extends java.lang.Object
    implements IHtmlGenerator

    Html generator.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addAttributeValue(char[] value)
      Quotes attribute value and adds it to the html file.
      void addAttributeValue(char[] value, int startIndex, int length)
      Quotes attribute value and adds it to the html file.
      void addAttributeValue(java.lang.String value)
      Quotes attribute value and adds it to the html file.
      void addHtml(char[] html)
      Adds formatted HTML text.
      void addHtml(char[] html, int startIndex, int length)
      Adds formatted HTML text.
      void addHtml(java.lang.String html)
      Adds formatted HTML text.
      void addText(char[] text)
      Adds plain text to the html files, replacing special characters with html entities.
      void addText(char[] text, int startIndex, int length)
      Adds plain text to the html files, replacing special characters with html entities.
      void addText(java.lang.String text)
      Adds plain text to the html files, replacing special characters with html entities.
      int getNextSlideIndex()
      Returns index of a slide, which will be rendered after the current slide or -1 if currently rendering last slide.
      int getPreviousSlideIndex()
      Returns index of previously rendered slide or -1 if first slide is rendering.
      java.awt.geom.Dimension2D getSlideImageSize()
      Returns slide image size.
      int getSlideImageSizeUnit()
      Returns a unit in which slide image size is specified.
      java.lang.String getSlideImageSizeUnitCode()
      Returns a css code of unit in which slide image size is specified.
      int getSlideIndex()
      Returns index of currently rendering slide.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • addHtml

        public final void addHtml(java.lang.String html)

        Adds formatted HTML text.

        Specified by:
        addHtml in interface IHtmlGenerator
        Parameters:
        html - Text to add.
      • addHtml

        public final void addHtml(char[] html)

        Adds formatted HTML text.

        Specified by:
        addHtml in interface IHtmlGenerator
        Parameters:
        html - Text to add.
      • addHtml

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

        Adds formatted HTML text.

        Specified by:
        addHtml in interface IHtmlGenerator
        Parameters:
        html - Text to add.
        startIndex - Start index of the portion to add.
        length - Length of the portion to add.
      • addText

        public final void addText(java.lang.String text)

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

        Specified by:
        addText in interface IHtmlGenerator
        Parameters:
        text - Text to add.
      • addText

        public final void addText(char[] text)

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

        Specified by:
        addText in interface IHtmlGenerator
        Parameters:
        text - Text to add.
      • addText

        public final 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.

        Specified by:
        addText in interface IHtmlGenerator
        Parameters:
        text - Text to add.
        startIndex - Start index of the portion to add.
        length - Length of the portion to add.
      • addAttributeValue

        public final void addAttributeValue(java.lang.String value)

        Quotes attribute value and adds it to the html file.

        Specified by:
        addAttributeValue in interface IHtmlGenerator
        Parameters:
        value - Attribute value string.
      • addAttributeValue

        public final void addAttributeValue(char[] value)

        Quotes attribute value and adds it to the html file.

        Specified by:
        addAttributeValue in interface IHtmlGenerator
        Parameters:
        value - Attribute value string.
      • addAttributeValue

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

        Quotes attribute value and adds it to the html file.

        Specified by:
        addAttributeValue in interface IHtmlGenerator
        Parameters:
        value - Attribute value string.
        startIndex - Start index of the portion to add.
        length - Length of the portion to add.
      • getSlideImageSize

        public final java.awt.geom.Dimension2D getSlideImageSize()

        Returns slide image size. Read-only Dimension2D.

        Specified by:
        getSlideImageSize in interface IHtmlGenerator
      • getSlideImageSizeUnitCode

        public final java.lang.String getSlideImageSizeUnitCode()

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

        Specified by:
        getSlideImageSizeUnitCode in interface IHtmlGenerator
      • getPreviousSlideIndex

        public final int getPreviousSlideIndex()

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

        Specified by:
        getPreviousSlideIndex in interface IHtmlGenerator
      • getSlideIndex

        public final int getSlideIndex()

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

        Specified by:
        getSlideIndex in interface IHtmlGenerator
      • getNextSlideIndex

        public final 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.

        Specified by:
        getNextSlideIndex in interface IHtmlGenerator