// 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
// 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;
import java.io.IOException;
import org.forester.phylogeny.Phylogeny;
+import org.forester.util.ForesterUtil;
-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;
/*
*
document.open();
final DefaultFontMapper mapper = new DefaultFontMapper();
FontFactory.registerDirectories();
- if ( Util.isWindows() ) {
+ if ( ForesterUtil.isWindows() ) {
mapper.insertDirectory( "C:\\WINDOWS\\Fonts\\" );
}
- else if ( Util.isMac() ) {
+ else if ( ForesterUtil.isMac() ) {
mapper.insertDirectory( "/Library/Fonts/" );
mapper.insertDirectory( "/System/Library/Fonts/" );
}
tree_panel.paintPhylogeny( g2, true, false, width, height, 0, 0 );
}
catch ( final Exception e ) {
- Util.unexpectedException( e );
+ AptxUtil.unexpectedException( e );
}
finally {
try {