Class BoxNode

    • Field Detail

      • box

        protected org.fit.cssbox.layout.Box box
        The CSSBox box that forms this node
      • transform

        protected BoxTransform transform
        The transformation that should be applied to the box
    • Constructor Detail

      • BoxNode

        public BoxNode​(org.fit.cssbox.layout.Box box,
                       Page page,
                       float zoom)
        Creates a new node containing a box with a transparent background.
        Parameters:
        box - the contained box
        page - containing page
        zoom - zoom factor to apply
      • BoxNode

        public BoxNode​(org.fit.cssbox.layout.Box box,
                       Page page,
                       Color bgColor,
                       float zoom)
        Creates a new node containing a box with a computed background. The background is computed separately when creating the nodes because the Viewport (and some table elements) are treated in a special way.
        Parameters:
        box - the contained box
        page - containing page
        bgColor - computed backgound color to be used for the box
        zoom - zoom factor to apply