Class GFXEnv

  • Direct Known Subclasses:
    LayoutEnv

    public abstract class GFXEnv
    extends java.lang.Object
    A base class to position, align, etc, objects within a given environment.
    • Constructor Detail

      • GFXEnv

        public GFXEnv​(boolean bInfoEnv)
      • GFXEnv

        public GFXEnv()
    • Method Detail

      • background

        public void background​(GFXFillAttr oBackground)
      • 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

        public int devH​(UnitSpan oHeight)
      • devW

        public int devW​(UnitSpan oWidth)
      • devX

        public int devX​(UnitSpan oX)
      • devY

        public int devY​(UnitSpan oY)
      • driverAttach

        public GFXDriver driverAttach()
      • driverAttach

        public GFXDriver driverAttach​(GFXModelContext poModelContext)
        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

        public void driverDetach​(GFXModelContext poModelContext)
        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

        public void fit​(double dScale,
                        CoordPair oOrigin,
                        int nFit,
                        boolean bInvalidate)
      • fit

        public void fit​(double dScale,
                        CoordPair oOrigin,
                        int nFit)
      • fitPage

        public void fitPage​(Rect oPageRect)
      • fontService

        public void fontService​(FontService poNewService)
      • height

        public int height()
      • heightInAbsUnits

        public UnitSpan 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

        public void invalidateArea​(GFXModelContext poModelContext,
                                   Rect oInvalidArea,
                                   boolean bEraseBG)
        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

        public UnitSpan unitH​(int lHeight)
      • unitPoint

        public CoordPair unitPoint​(int lX,
                                   int lY)
      • unitRect

        public Rect unitRect​(int lLeft,
                             int lTop,
                             int lRight,
                             int lBottom)
      • unitW

        public UnitSpan unitW​(int lWidth)
      • unitX

        public UnitSpan unitX​(int lX)
      • unitY

        public UnitSpan unitY​(int lY)
      • visibleArea

        public Rect visibleArea()
      • width

        public int width()
      • widthInAbsUnits

        public UnitSpan widthInAbsUnits()
      • validDriver

        public GFXDriver validDriver()