JAL-1355
[jalview.git] / src / org / jibble / epsgraphics / EpsGraphics2D.java
index c82d4fc..ca1b304 100755 (executable)
@@ -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);