Package com.adobe.xfa.layout
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.
-
-
Field Summary
-
Fields inherited from class com.adobe.xfa.gfx.GFXDriver
ACTIVE, CAP_PIX_HEIGHT, CAP_PIX_WIDTH, CAP_REAL_HEIGHT, CAP_REAL_WIDTH, CAP_TYPE, DRAW_2D, DRAW_3D, DRAW_WELL, INACTIVE, MAPPING_FULL, MAPPING_LEGACY, MAPPING_SUPPRESS, moAngleStack, moClipStack, MODE_OPAQUE, MODE_TRANSPARENT, moOffsetStack, PUSHED, TYPE_PRINTER, TYPE_SCREEN
-
-
Constructor Summary
Constructors Constructor Description LayoutDriver()Default c'torLayoutDriver(LayoutEnv oEnv)Constructor, creates an LayoutDriver object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidabsFillRect(Rect oRect, int eDrawMode)voidabsGlyphs(int[] nGlyphs, int nSize)voidabsLine(CoordPair oEnd, int eDrawMode)voidabsText(java.lang.String oText, int eDrawMode)intgetMappingLevel()Return the mapping required by the driver.intheight()booleaninteractive()voidmapGlyphs(GFXMappingList mappingList, boolean bIsRTL)Full character/glyph mapping.voidparaHint()voidsetClipRect(Rect oRect)voidsetLayoutEnv(LayoutEnv oEnv)Set the gfx environmentvoidsetMappingLevel(int nSLevel)voidsetUnicodeChars(java.lang.String text, int nSize)intwidth()-
Methods inherited from class com.adobe.xfa.gfx.GFXDriver
absLine, absPosition, absPosition, angle, angle, charSpacing, charSpacing, charSpacingSupported, clearStacks, clipRect, clipRect, devH, devPoint, devRect, devUnitX, devUnitY, devW, devX, devY, dotsPerInch, draw3dEffects, draw3dEffects, env, fillAttr, fillAttr, fit, fontInstance, fontInstance, glyphOrientation, glyphOrientation, heightInUnits, lineAttr, lineAttr, mapChars, mode, mode, nonPrintOffset, offset, offset, offsetPoint, popAngle, popClipRect, popOffset, popRenderContext, pushAngle, pushClipRect, pushOffset, pushRenderContext, relFillRect, relFillRect, relGlyphs, relLine, relLine, relLine, relPosition, relPosition, relText, relText, resolutionChanged, rotatePoint, rotationPoint, scale, setUnicodeChars, textAttr, textAttr, unitH, unitPoint, unitRect, unitW, unitX, unitY, visibleArea, widthInUnits, wordSpacing, wordSpacing, wordSpacingSupported
-
-
-
-
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
-
absLine
public void absLine(CoordPair oEnd, int eDrawMode)
-
absFillRect
public void absFillRect(Rect oRect, int eDrawMode)
- Specified by:
absFillRectin classGFXDriver
-
absText
public void absText(java.lang.String oText, int eDrawMode)
-
setUnicodeChars
public void setUnicodeChars(java.lang.String text, int nSize)
-
mapGlyphs
public void mapGlyphs(GFXMappingList mappingList, boolean bIsRTL)
Description copied from class:GFXDriverFull 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:
mapGlyphsin classGFXDriver- 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:GFXDriverReturn the mapping required by the driver.- Overrides:
getMappingLevelin classGFXDriver- Returns:
- Mapping level that the client must implement in order to satisfy the driver's needs.
-
setMappingLevel
public void setMappingLevel(int nSLevel)
-
interactive
public boolean interactive()
- Specified by:
interactivein classGFXDriver
-
setClipRect
public void setClipRect(Rect oRect)
-
-