Class LayoutDriver

java.lang.Object
com.adobe.xfa.gfx.GFXDriver
com.adobe.xfa.layout.LayoutDriver

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

    • LayoutDriver

      public LayoutDriver()
      Default c'tor
    • LayoutDriver

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

    • setLayoutEnv

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

      public void absLine(CoordPair oEnd, int eDrawMode)
      Specified by:
      absLine in class GFXDriver
    • absFillRect

      public void absFillRect(Rect oRect, int eDrawMode)
      Specified by:
      absFillRect in class GFXDriver
    • absText

      public void absText(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(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)
    • height

      public int height()
      Specified by:
      height in class GFXDriver
    • width

      public int width()
      Specified by:
      width in class GFXDriver
    • interactive

      public boolean interactive()
      Specified by:
      interactive in class GFXDriver
    • setClipRect

      public void setClipRect(Rect oRect)
    • paraHint

      public void paraHint()
      Overrides:
      paraHint in class GFXDriver