public class LayoutDriver extends 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 and Description |
---|
LayoutDriver()
Default c'tor
|
LayoutDriver(LayoutEnv oEnv)
Constructor, creates an LayoutDriver object.
|
Modifier and Type | Method and Description |
---|---|
void |
absFillRect(Rect oRect,
int eDrawMode) |
void |
absGlyphs(int[] nGlyphs,
int nSize) |
void |
absLine(CoordPair oEnd,
int eDrawMode) |
void |
absText(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 environment
|
void |
setMappingLevel(int nSLevel) |
void |
setUnicodeChars(String text,
int nSize) |
int |
width() |
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
public LayoutDriver()
public LayoutDriver(LayoutEnv oEnv)
public void setLayoutEnv(LayoutEnv oEnv)
public void absFillRect(Rect oRect, int eDrawMode)
absFillRect
in class GFXDriver
public void setUnicodeChars(String text, int nSize)
public void mapGlyphs(GFXMappingList mappingList, boolean bIsRTL)
GFXDriver
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.
mapGlyphs
in class GFXDriver
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.public int getMappingLevel()
GFXDriver
getMappingLevel
in class GFXDriver
public void setMappingLevel(int nSLevel)
public boolean interactive()
interactive
in class GFXDriver
public void setClipRect(Rect oRect)
Copyright © 2010 - 2020 Adobe. All Rights Reserved