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 void
absFillRect(Rect oRect, int eDrawMode)
void
absGlyphs(int[] nGlyphs, int nSize)
void
absLine(CoordPair oEnd, int eDrawMode)
void
absText(java.lang.String oText, int eDrawMode)
int
getMappingLevel()
Return the mapping required by the driver.int
height()
boolean
interactive()
void
mapGlyphs(GFXMappingList mappingList, boolean bIsRTL)
Full character/glyph mapping.void
paraHint()
void
setClipRect(Rect oRect)
void
setLayoutEnv(LayoutEnv oEnv)
Set the gfx environmentvoid
setMappingLevel(int nSLevel)
void
setUnicodeChars(java.lang.String text, int nSize)
int
width()
-
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:
absFillRect
in 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: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 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:GFXDriver
Return the mapping required by the driver.- Overrides:
getMappingLevel
in 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:
interactive
in classGFXDriver
-
setClipRect
public void setClipRect(Rect oRect)
-
-