Examples of SaveToFilePageFormat


Examples of net.sourceforge.squirrel_sql.plugins.graph.graphtofiles.SaveToFilePageFormat

         else
         {
            // No paper edges. We print the Graph as it is to a single image.

            Dimension graphPixelSize = _printable.initPrintNoScaleSinglePage();
            SaveToFilePageFormat pf = new SaveToFilePageFormat(graphPixelSize);

            BufferedImage img = prepareImage(graphPixelSize.width, graphPixelSize.height);
            _printable.print(img.getGraphics(), pf, 0);

            images.add(img);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.plugins.graph.graphtofiles.SaveToFilePageFormat

   private PageFormat initPrint(boolean isSaveToFile)
   {
      FormatXmlBean format = (FormatXmlBean)_panel.cboFormat.getSelectedItem();
      _printable.initPrint(format.getWidth(), format.getHeight(), _panel.sldEdges.getValue() / 100.0);

      PageFormat pf = isSaveToFile ? new SaveToFilePageFormat(format) : new PageFormat();

      if(format.isLandscape())
      {
         pf.setOrientation(PageFormat.LANDSCAPE);
      }
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.