Class LayoutDriver


  • public class LayoutDriver
    extends GFXDriver
    A superclass of GFXDriver used by the layout package.
    • Constructor Detail

      • LayoutDriver

        public LayoutDriver()
        Default c'tor
      • LayoutDriver

        public LayoutDriver​(LayoutEnv oEnv)
        Constructor, creates an LayoutDriver object.
    • Method Detail

      • setLayoutEnv

        public void setLayoutEnv​(LayoutEnv oEnv)
        Set the gfx environment
      • absText

        public void absText​(java.lang.String oText,
                            int eDrawMode)
        Specified by:
        absText in class GFXDriver
      • absGlyphs

        public void absGlyphs​(int[] nGlyphs,
                              int nSize)
        Overrides:
        absGlyphs in class GFXDriver
      • setUnicodeChars

        public void setUnicodeChars​(java.lang.String text,
                                    int nSize)
      • mapGlyphs

        public void mapGlyphs​(GFXMappingList mappingList,
                              boolean bIsRTL)
        Description copied from class: GFXDriver
        Full character/glyph mapping.

        If the driver needs legacy mapping, the caller must preceed each call to a text rendering method with a call to this method. Full mapping supports 1:1, N:1, 1:M and N:M mappings, as well as mappings that involve non-contiguous runs of Unicode content and glyph output.

        Overrides:
        mapGlyphs in class GFXDriver
        Parameters:
        mappingList - - Description of the mappings for the subsequent text rendering call. The Unicode character indexes in the mappings are relative to the line's text passed in SetUnicodeChars(). The glyph indexes are zero-based, relative to the glyphs in the next text rendering call.
        bIsRTL - - True if the subsequent run represents RTL text; FALSE for LTR text.
      • getMappingLevel

        public int getMappingLevel()
        Description copied from class: GFXDriver
        Return the mapping required by the driver.
        Overrides:
        getMappingLevel in class GFXDriver
        Returns:
        Mapping level that the client must implement in order to satisfy the driver's needs.
      • setMappingLevel

        public void setMappingLevel​(int nSLevel)
      • setClipRect

        public void setClipRect​(Rect oRect)