Is it possible for J2TreePrinter to print my JTree so that it paginates horizontally?

0
Posted

Is it possible for J2TreePrinter to print my JTree so that it paginates horizontally?

0

No. There is no natural place to break a JTree horizontally. Hence, J2TreePrinter automatically performs a shrink-to-fit operation to make your JTree fit within the available page width, then it paginates the resulting JTree vertically as needed over multiple pages. If you are willing to paginate your JTree broken on pixel boundaries, you can use J2PanelPrinter in TILE mode to print your JTree across multiple pages horizontally (but it will be broken vertically on pixel boundaries as well, rather than row/node boundaries as in a J2TreePrinter).

Related Questions