Examples of doDocumentLayout()


Examples of org.xhtmlrenderer.simple.XHTMLPanel.doDocumentLayout()

                // information, the render engine would lay out the runs of text to as wide a space as needed to
                // accomodate the text without breaks.
                panel.setSize(10000, 10000);

                // now we lay the document out again
                panel.doDocumentLayout(panel.getGraphics());

                // and reset the size
                panel.setSize(savedSize);

                f.pack();
View Full Code Here

Examples of org.xhtmlrenderer.simple.XHTMLPanel.doDocumentLayout()

        // you could either set a max width in a document box, or you can set it here.
        //
        // The document height will be calculated automatically based on content. We use an artificially large size
        // here to not constrain the layout algorithm.
        panel.setSize(targetWidth, 10000);
        panel.doDocumentLayout(panel.getGraphics());
        panel.setSize(orgSize);
        frame.pack();
        frame.setVisible(true);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.