public class LayoutEnv extends GFXEnv
FIT_BOTTOM, FIT_CENTRE, FIT_LEFT, FIT_MIDDLE, FIT_RIGHT, FIT_TOP| Constructor and Description |
|---|
LayoutEnv()
Instantiates a default layout environment.
|
LayoutEnv(FontService oFontService,
Service oImageService,
HrefService oHrefService,
LayoutDriver oDriver)
Instantiates a
LayoutEnv from the given
arguments. |
| Modifier and Type | Method and Description |
|---|---|
FontService |
getFontService()
Gets the font service to be used with this layout env.
|
HrefService |
getHrefService()
Gets the HrefService that will resolve href content for protoable
node based on their content.
|
LayoutDriver |
getLayoutDriver()
Gets the LayoutDriver associated with
this environment.
|
int |
getMetaFileData(byte[] pClipData,
int size,
Rect oDrawArea)
Gets meta file data.
|
Model |
getModel()
Gets the model.
|
TextContext |
getTextContext()
Gets the text context.
|
TextResolver |
getTextResolver()
Gets the text resolver interface - acts as callback for
xfa:embed references
|
LayoutHandler |
layoutHandler()
Gets the layout handler that processes output from the layout.
|
void |
layoutHandler(LayoutHandler pHandler)
Sets the layout handler that processes output from the layout.
|
boolean |
renderText(LayoutHandler oLayoutHandler,
TextDisplay oDisplay,
CoordPair oOffset,
boolean bWrap,
boolean bTruncate,
Angle oAngle,
Rect oInvalidatedRect) |
boolean |
renderText(LayoutHandler oLayoutHandler,
TextDisplay oDisplay,
CoordPair oOffset,
boolean bWrap,
boolean bTruncate,
Rect oInvalidatedRect) |
void |
setClipRect(Rect oRect)
sets the clipping rectangle.
|
LayoutDriver |
setDriver(LayoutDriver oDriver)
Sets the driver, returning previous
|
void |
setFontService(FontService oFontService)
Sets the font service to be used with this layout env.
|
void |
setModel(Model oModel)
Sets the model.
|
void |
setTextResolver(TextResolver pResolver)
Sets the text resolver interface - acts as callback
for xfa:embed references
|
background, background, defaultColours, defaultColours, devH, devPoint, devRect, devW, devX, devY, displayAsPages, displayAsPages, draw3dEffects, draw3dEffects, driverAttach, driverAttach, driverDetach, driverDetach, eraseBg, fit, fit, fitPage, fitSides, fontService, fontService, getDriver, height, heightInAbsUnits, infoEnv, interactive, interactive, invalidateArea, legacyPositioning, legacyPositioning, refresh, scale, unitH, unitPoint, unitRect, unitW, unitX, unitY, validDriver, visibleArea, width, widthInAbsUnitspublic LayoutEnv()
public LayoutEnv(FontService oFontService, Service oImageService, HrefService oHrefService, LayoutDriver oDriver)
LayoutEnv from the given
arguments.oFontService - a font service.oImageService - an image service.oHrefService - an href service.oDriver - a layout driver.public void layoutHandler(LayoutHandler pHandler)
pHandler - the object to redirect the draw responsibilities to.public LayoutHandler layoutHandler()
public HrefService getHrefService()
public void setFontService(FontService oFontService)
public FontService getFontService()
public LayoutDriver setDriver(LayoutDriver oDriver)
public TextContext getTextContext()
public void setModel(Model oModel)
oModel - a model.public Model getModel()
public void setTextResolver(TextResolver pResolver)
public TextResolver getTextResolver()
public LayoutDriver getLayoutDriver()
public int getMetaFileData(byte[] pClipData,
int size,
Rect oDrawArea)
public void setClipRect(Rect oRect)
public boolean renderText(LayoutHandler oLayoutHandler, TextDisplay oDisplay, CoordPair oOffset, boolean bWrap, boolean bTruncate, Rect oInvalidatedRect)
public boolean renderText(LayoutHandler oLayoutHandler, TextDisplay oDisplay, CoordPair oOffset, boolean bWrap, boolean bTruncate, Angle oAngle, Rect oInvalidatedRect)
Copyright © 2010 - 2020 Adobe. All Rights Reserved