git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3438 spotless for 2.11.2.0
[jalview.git]
/
src
/
org
/
jibble
/
epsgraphics
/
EpsDocument.java
diff --git
a/src/org/jibble/epsgraphics/EpsDocument.java
b/src/org/jibble/epsgraphics/EpsDocument.java
old mode 100755
(executable)
new mode 100644
(file)
index
b5e67c3
..
4ec529a
--- a/
src/org/jibble/epsgraphics/EpsDocument.java
+++ b/
src/org/jibble/epsgraphics/EpsDocument.java
@@
-20,17
+20,20
@@
*/
package org.jibble.epsgraphics;
*/
package org.jibble.epsgraphics;
-import jalview.util.MessageManager;
-
-import java.io.*;
-import java.util.*;
+import java.io.BufferedWriter;
+import java.io.IOException;
+import java.io.OutputStream;
+import java.io.OutputStreamWriter;
+import java.io.StringWriter;
+import java.io.Writer;
+import java.util.Date;
/**
* This represents an EPS document. Several EpsGraphics2D objects may point to
* the same EpsDocument.
* <p>
/**
* This represents an EPS document. Several EpsGraphics2D objects may point to
* the same EpsDocument.
* <p>
- * Copyright Paul Mutton, <a
- * href="http://www.jibble.org/">http://www.jibble.org/</a>
+ * Copyright Paul Mutton,
+ * <a href="http://www.jibble.org/">http://www.jibble.org/</a>
*
*/
public class EpsDocument
*
*/
public class EpsDocument
@@
-62,8
+65,8
@@
public class EpsDocument
this.minY = minY;
this.maxX = maxX;
this.maxY = maxY;
this.minY = minY;
this.maxX = maxX;
this.maxY = maxY;
- _bufferedWriter = new BufferedWriter(new OutputStreamWriter(
- outputStream));
+ _bufferedWriter = new BufferedWriter(
+ new OutputStreamWriter(outputStream));
write(_bufferedWriter);
}
write(_bufferedWriter);
}
@@
-159,7
+162,7
@@
public class EpsDocument
_bufferedWriter.write(line + "\n");
} catch (IOException e)
{
_bufferedWriter.write(line + "\n");
} catch (IOException e)
{
- throw new EpsException(MessageManager.formatMessage("exception.eps_coudnt_write_output_file", new String[]{e.getMessage()}));
+ throw new EpsException("Could not write to the output file: " + e);
}
}
}
}
@@
-204,8
+207,8
@@
public class EpsDocument
}
else
{
}
else
{
- writer.write(offsetX + " " + ((maxY - minY) - offsetY)
- + " translate\n");
+ writer.write(
+ offsetX + " " + ((maxY - minY) - offsetY) + " translate\n");
}
writer.flush();
}
writer.flush();