Package com.adobe.xfa.layout
Class LayoutDriver
java.lang.Object
com.adobe.xfa.gfx.GFXDriver
com.adobe.xfa.layout.LayoutDriver
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
ConstructorsConstructorDescriptionDefault c'torLayoutDriver(LayoutEnv oEnv) Constructor, creates an LayoutDriver object. -
Method Summary
Modifier and TypeMethodDescriptionvoidabsFillRect(Rect oRect, int eDrawMode) voidabsGlyphs(int[] nGlyphs, int nSize) voidvoidintReturn the mapping required by the driver.intheight()booleanvoidmapGlyphs(GFXMappingList mappingList, boolean bIsRTL) Full character/glyph mapping.voidparaHint()voidsetClipRect(Rect oRect) voidsetLayoutEnv(LayoutEnv oEnv) Set the gfx environmentvoidsetMappingLevel(int nSLevel) voidsetUnicodeChars(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 Details
-
LayoutDriver
public LayoutDriver()Default c'tor -
LayoutDriver
Constructor, creates an LayoutDriver object.
-
-
Method Details
-
setLayoutEnv
Set the gfx environment -
absLine
-
absFillRect
- Specified by:
absFillRectin classGFXDriver
-
absText
-
absGlyphs
public void absGlyphs(int[] nGlyphs, int nSize) -
setUnicodeChars
-
mapGlyphs
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) -
height
public int height() -
width
public int width() -
interactive
public boolean interactive()- Specified by:
interactivein classGFXDriver
-
setClipRect
-
paraHint
public void paraHint()
-