X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fjibble%2Fepsgraphics%2FEpsGraphics2D.java;h=ca1b304c2beb24c59091253d150a8975ff0e163d;hb=aced09c4feeaf3406269442c14e54abeeb4cad81;hp=c82d4fc661da90723cac867b092f34c9a68e3a74;hpb=5d32c7ad007e098894b332b6fca61e1824972c50;p=jalview.git diff --git a/src/org/jibble/epsgraphics/EpsGraphics2D.java b/src/org/jibble/epsgraphics/EpsGraphics2D.java index c82d4fc..ca1b304 100755 --- a/src/org/jibble/epsgraphics/EpsGraphics2D.java +++ b/src/org/jibble/epsgraphics/EpsGraphics2D.java @@ -20,6 +20,8 @@ */ package org.jibble.epsgraphics; +import jalview.util.MessageManager; + import java.io.*; import java.text.*; import java.util.*; @@ -161,9 +163,7 @@ public class EpsGraphics2D extends java.awt.Graphics2D */ private void methodNotSupported() { - EpsException e = new EpsException( - "Method not currently supported by EpsGraphics2D version " - + VERSION); + EpsException e = new EpsException(MessageManager.formatMessage("exception.eps_method_not_supported", new String[]{VERSION})); e.printStackTrace(System.err); } @@ -995,8 +995,7 @@ public class EpsGraphics2D extends java.awt.Graphics2D return t.createTransformedShape(_clip); } catch (Exception e) { - throw new EpsException("Unable to get inverse of matrix: " - + _transform); + throw new EpsException(MessageManager.formatMessage("exception.eps_unable_to_get_inverse_matrix", new String[]{_transform.toString()})); } } } @@ -1314,7 +1313,7 @@ public class EpsGraphics2D extends java.awt.Graphics2D matrix = matrix.createInverse(); } catch (Exception e) { - throw new EpsException("Unable to get inverse of matrix: " + matrix); + throw new EpsException(MessageManager.formatMessage("exception.eps_unable_to_get_inverse_matrix", new String[]{matrix.toString()})); } matrix.scale(1, -1); matrix.getMatrix(m);