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,
                       org.eclipse.rdf4j.model.IRI pageIri,
                       float zoom)
        Creates a new node containing a box with a transparent background.
        Parameters:
        box - the contained box
        pageIri - containing page IRI
        zoom - zoom factor to apply
      • BoxNode

        public BoxNode​(org.fit.cssbox.layout.Box box,
                       org.eclipse.rdf4j.model.IRI pageIri,
                       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
        pageIri - containing page IRI
        bgColor - computed backgound color to be used for the box
        zoom - zoom factor to apply