Package com.adobe.xfa.gfx
Class GFXEnv
java.lang.Object
com.adobe.xfa.gfx.GFXEnv
- Direct Known Subclasses:
LayoutEnv
A base class to position, align, etc,
objects within a given environment.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbackground(GFXFillAttr oBackground) booleanvoiddefaultColours(boolean bDefaultColours) intintintintbooleanvoiddisplayAsPages(boolean bDisplayAsPages) booleanvoiddraw3dEffects(boolean b3dEffects) driverAttach(GFXModelContext poModelContext) Attach/create a driver instance to render the given model context in this view.voidvoiddriverDetach(GFXModelContext poModelContext) Detach/release a driver instance previously created to render the given model context in this view.booleaneraseBg()voidvoidvoidvoidvoidfontService(FontService poNewService) intheight()booleaninfoEnv()booleanvoidinteractive(boolean bInteractive) voidinvalidateArea(GFXModelContext poModelContext, Rect oInvalidArea, boolean bEraseBG) Invalidate some part of a given model context in this view.booleanvoidlegacyPositioning(boolean bLegacyPositioning) voidrefresh()doublescale()unitH(int lHeight) unitPoint(int lX, int lY) unitRect(int lLeft, int lTop, int lRight, int lBottom) unitW(int lWidth) unitX(int lX) unitY(int lY) intwidth()
-
Field Details
-
FIT_LEFT
public static final int FIT_LEFT- See Also:
-
FIT_CENTRE
public static final int FIT_CENTRE- See Also:
-
FIT_RIGHT
public static final int FIT_RIGHT- See Also:
-
FIT_TOP
public static final int FIT_TOP- See Also:
-
FIT_MIDDLE
public static final int FIT_MIDDLE- See Also:
-
FIT_BOTTOM
public static final int FIT_BOTTOM- See Also:
-
-
Constructor Details
-
GFXEnv
public GFXEnv(boolean bInfoEnv) -
GFXEnv
public GFXEnv()
-
-
Method Details
-
background
-
background
-
defaultColours
public boolean defaultColours() -
defaultColours
public void defaultColours(boolean bDefaultColours) -
draw3dEffects
public boolean draw3dEffects() -
draw3dEffects
public void draw3dEffects(boolean b3dEffects) -
displayAsPages
public boolean displayAsPages() -
displayAsPages
public void displayAsPages(boolean bDisplayAsPages) -
devH
-
devPoint
-
devRect
-
devW
-
devX
-
devY
-
driverAttach
-
driverAttach
Attach/create a driver instance to render the given model context in this view.Attaching with different model contexts will likely produce different driver instances--instances that are aware of the co-ordinate spaces of their respective model contexts.
The default implementation simply calls the existing overload of DriverAttach() that has no parameters.
- Parameters:
poModelContext- - Pointer to model context for the driver instance.- Returns:
- Pointer to a driver instance the client can use to render the given model context in this view.
-
driverDetach
public void driverDetach() -
driverDetach
Detach/release a driver instance previously created to render the given model context in this view.The default implementation simply calls the existing overload of DriverDetach() that has no parameters.
- Parameters:
poModelContext- - Pointer to model context for the driver instance.
-
eraseBg
public boolean eraseBg() -
fit
-
fit
-
fitPage
-
fitSides
-
fontService
-
fontService
-
getDriver
-
height
public int height() -
heightInAbsUnits
-
infoEnv
public boolean infoEnv() -
interactive
public boolean interactive() -
interactive
public void interactive(boolean bInteractive) -
legacyPositioning
public boolean legacyPositioning() -
legacyPositioning
public void legacyPositioning(boolean bLegacyPositioning) -
invalidateArea
Invalidate some part of a given model context in this view.The default implementation simply calls the existing overload of InvalidateArea() that is not model context aware.
- Parameters:
poModelContext- - Pointer to model context for the driver instance.oInvalidArea- - Rectangular area to invalidate. This will be in the co-ordinate space of the given model context.bEraseBG- - True if the background is to be erased first; false if not.
-
refresh
public void refresh() -
scale
public double scale() -
unitH
-
unitPoint
-
unitRect
-
unitW
-
unitX
-
unitY
-
visibleArea
-
width
public int width() -
widthInAbsUnits
-
validDriver
-