X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Farchaeopteryx%2FPdfExporter.java;h=6305a858588569e94d7aa9471e4748579310e833;hb=790ebe51ea3e7fcafc91057f4842453a1c351b61;hp=5b524e9e5bc34a23f7a10fa803029ebceb3c08b9;hpb=ccf4c584032d16ed0ed8d0678f01305887724f96;p=jalview.git diff --git a/forester/java/src/org/forester/archaeopteryx/PdfExporter.java b/forester/java/src/org/forester/archaeopteryx/PdfExporter.java index 5b524e9..6305a85 100644 --- a/forester/java/src/org/forester/archaeopteryx/PdfExporter.java +++ b/forester/java/src/org/forester/archaeopteryx/PdfExporter.java @@ -8,7 +8,7 @@ // and Howard Hughes Medical Institute // Copyright (C) 2003-2007 Ethalinda K.S. Cannon // All rights reserved -// +// // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; either @@ -18,13 +18,13 @@ // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. -// +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA // // Contact: phylosoft @ gmail . com -// WWW: www.phylosoft.org/forester +// WWW: https://sites.google.com/site/cmzmasek/home/software/forester package org.forester.archaeopteryx; @@ -35,13 +35,13 @@ import java.io.IOException; import org.forester.phylogeny.Phylogeny; -import com.lowagie.text.Document; -import com.lowagie.text.DocumentException; -import com.lowagie.text.FontFactory; -import com.lowagie.text.Rectangle; -import com.lowagie.text.pdf.DefaultFontMapper; -import com.lowagie.text.pdf.PdfContentByte; -import com.lowagie.text.pdf.PdfWriter; +import com.itextpdf.text.Document; +import com.itextpdf.text.DocumentException; +import com.itextpdf.text.FontFactory; +import com.itextpdf.text.Rectangle; +import com.itextpdf.text.pdf.DefaultFontMapper; +import com.itextpdf.text.pdf.PdfContentByte; +import com.itextpdf.text.pdf.PdfWriter; /* * @@ -92,10 +92,10 @@ final class PdfExporter { document.open(); final DefaultFontMapper mapper = new DefaultFontMapper(); FontFactory.registerDirectories(); - if ( Util.isWindows() ) { + if ( AptxUtil.isWindows() ) { mapper.insertDirectory( "C:\\WINDOWS\\Fonts\\" ); } - else if ( Util.isMac() ) { + else if ( AptxUtil.isMac() ) { mapper.insertDirectory( "/Library/Fonts/" ); mapper.insertDirectory( "/System/Library/Fonts/" ); } @@ -111,7 +111,7 @@ final class PdfExporter { tree_panel.paintPhylogeny( g2, true, false, width, height, 0, 0 ); } catch ( final Exception e ) { - Util.unexpectedException( e ); + AptxUtil.unexpectedException( e ); } finally { try {