From cb4cdb90936729028f6e137ee07a6d093cdcc83a Mon Sep 17 00:00:00 2001 From: Martina Summer-Kutmon Date: Thu, 3 Oct 2024 13:07:40 +0200 Subject: [PATCH] remove TIFF exporter (has some issues) --- .../src/org/pathvisio/core/model/BatikImageExporter.java | 4 ++-- .../src/org/pathvisio/core/util/ColorExporter.java | 6 +++--- .../src/org/pathvisio/core/util/Converter.java | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/modules/org.pathvisio.core/src/org/pathvisio/core/model/BatikImageExporter.java b/modules/org.pathvisio.core/src/org/pathvisio/core/model/BatikImageExporter.java index 6741a9664..975a4b0b1 100644 --- a/modules/org.pathvisio.core/src/org/pathvisio/core/model/BatikImageExporter.java +++ b/modules/org.pathvisio.core/src/org/pathvisio/core/model/BatikImageExporter.java @@ -85,8 +85,8 @@ public void doExport(File file, VPathway vPathway, TranscodingHints hints) throw } else if (getType().equals(TYPE_PNG)) { t = new PNGTranscoder(); System.out.println("hi"); - } else if (getType().equals(TYPE_TIFF)) { - t = new TIFFTranscoder(); +// } else if (getType().equals(TYPE_TIFF)) { +// t = new TIFFTranscoder(); } else if (getType().equals(TYPE_PDF)) { try { Class pdfClass = Class.forName("org.apache.fop.svg.PDFTranscoder"); diff --git a/modules/org.pathvisio.core/src/org/pathvisio/core/util/ColorExporter.java b/modules/org.pathvisio.core/src/org/pathvisio/core/util/ColorExporter.java index cf0de218c..55d326e2e 100644 --- a/modules/org.pathvisio.core/src/org/pathvisio/core/util/ColorExporter.java +++ b/modules/org.pathvisio.core/src/org/pathvisio/core/util/ColorExporter.java @@ -190,8 +190,8 @@ public static void main(String[] args) { exporter = new BatikImageExporter(ImageExporter.TYPE_PNG); } else if(outStr.endsWith(ImageExporter.TYPE_PDF)) { exporter = new BatikImageExporter(ImageExporter.TYPE_PDF); - } else if(outStr.endsWith(ImageExporter.TYPE_TIFF)) { - exporter = new BatikImageExporter(ImageExporter.TYPE_TIFF); +// } else if(outStr.endsWith(ImageExporter.TYPE_TIFF)) { +// exporter = new BatikImageExporter(ImageExporter.TYPE_TIFF); } else { exporter = new BatikImageExporter(ImageExporter.TYPE_SVG); } @@ -214,7 +214,7 @@ static void printHelp() { "\t-c\tA string containing the graphId of the object to color, followed " + "by the color to be used for that object (hexadecimal, e.g. FF0000 for red)\n" + "The export format is determined by the output file extension and can be one of: " + - "svg, pdf, png, tiff" + "svg, pdf, png" ); } } diff --git a/modules/org.pathvisio.core/src/org/pathvisio/core/util/Converter.java b/modules/org.pathvisio.core/src/org/pathvisio/core/util/Converter.java index 717be9f9b..860b8b86e 100644 --- a/modules/org.pathvisio.core/src/org/pathvisio/core/util/Converter.java +++ b/modules/org.pathvisio.core/src/org/pathvisio/core/util/Converter.java @@ -82,11 +82,11 @@ public static void main(String[] args) Engine engine = new Engine(); engine.addPathwayImporter(new GpmlFormat()); engine.addPathwayImporter(new MappFormat()); - engine.addPathwayExporter(new MappFormat()); +// engine.addPathwayExporter(new MappFormat()); engine.addPathwayExporter(new GpmlFormat()); engine.addPathwayExporter(new BatikImageExporter(ImageExporter.TYPE_SVG)); engine.addPathwayExporter(new RasterImageExporter(ImageExporter.TYPE_PNG)); - engine.addPathwayExporter(new BatikImageExporter(ImageExporter.TYPE_TIFF)); +// engine.addPathwayExporter(new BatikImageExporter(ImageExporter.TYPE_TIFF)); engine.addPathwayExporter(new BatikImageExporter(ImageExporter.TYPE_PDF)); engine.addPathwayExporter(new EUGeneExporter()); engine.addPathwayExporter(new DataNodeListExporter());