Class RenderingContext

  • All Implemented Interfaces:
    CssContext

    public class RenderingContext
    extends java.lang.Object
    implements CssContext
    Supplies information about the context in which rendering will take place
    Author:
    jmarinacci November 16, 2004
    • Constructor Detail

      • RenderingContext

        public RenderingContext​(SharedContext sharedContext)

        needs a new instance every run

    • Method Detail

      • setContext

        public void setContext​(SharedContext sharedContext)
      • setBaseURL

        public void setBaseURL​(java.lang.String url)
      • getBaseURL

        public java.lang.String getBaseURL()
      • getDPI

        public float getDPI()
      • isPaged

        public boolean isPaged()
        Returns true if the currently set media type is paged. Currently returns true only for print , projection , and embossed , handheld , and tv . See the media section of the CSS 2.1 spec for more information on media types.
        Returns:
        The paged value
      • getFixedRectangle

        public java.awt.Rectangle getFixedRectangle()
      • getViewportRectangle

        public java.awt.Rectangle getViewportRectangle()
      • debugDrawBoxes

        public boolean debugDrawBoxes()
      • debugDrawLineBoxes

        public boolean debugDrawLineBoxes()
      • debugDrawInlineBoxes

        public boolean debugDrawInlineBoxes()
      • debugDrawFontMetrics

        public boolean debugDrawFontMetrics()
      • isInteractive

        public boolean isInteractive()
      • isPrint

        public boolean isPrint()
      • setOutputDevice

        public void setOutputDevice​(OutputDevice outputDevice)
      • setFontContext

        public void setFontContext​(FontContext fontContext)
      • setPage

        public void setPage​(int pageNo,
                            PageBox page)
      • getPageCount

        public int getPageCount()
      • setPageCount

        public void setPageCount​(int pageCount)
      • getPage

        public PageBox getPage()
      • getPageNo

        public int getPageNo()
      • getRootLayer

        public Layer getRootLayer()
      • setRootLayer

        public void setRootLayer​(Layer rootLayer)
      • getInitialPageNo

        public int getInitialPageNo()
      • setInitialPageNo

        public void setInitialPageNo​(int initialPageNo)
      • getBoxById

        public Box getBoxById​(java.lang.String id)