JAL-3438 spotless for 2.11.2.0
[jalview.git] / src / org / jibble / epsgraphics / EpsGraphics2D.java
index fe6d962..b8ac5bd 100644 (file)
@@ -114,8 +114,8 @@ import java.util.Map;
  * <p>
  * Not all methods are implemented yet. Those that are not are clearly labelled.
  * <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 EpsGraphics2D extends java.awt.Graphics2D
@@ -176,7 +176,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
           int minY, int maxX, int maxY) throws IOException
   {
     this(title);
-    _document = new EpsDocument(title, outputStream, minX, minY, maxX, maxY);
+    _document = new EpsDocument(title, outputStream, minX, minY, maxX,
+            maxY);
   }
 
   /**
@@ -205,7 +206,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
   private void methodNotSupported()
   {
     EpsException e = new EpsException(MessageManager.formatMessage(
-            "exception.eps_method_not_supported", new String[] { VERSION }));
+            "exception.eps_method_not_supported", new String[]
+            { VERSION }));
     e.printStackTrace(System.err);
   }
 
@@ -405,7 +407,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
    * the top left.
    */
   @Override
-  public void draw3DRect(int x, int y, int width, int height, boolean raised)
+  public void draw3DRect(int x, int y, int width, int height,
+          boolean raised)
   {
     Color originalColor = getColor();
     Stroke originalStroke = getStroke();
@@ -445,7 +448,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
    * come from the top left.
    */
   @Override
-  public void fill3DRect(int x, int y, int width, int height, boolean raised)
+  public void fill3DRect(int x, int y, int width, int height,
+          boolean raised)
   {
     Color originalColor = getColor();
 
@@ -512,8 +516,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
     WritableRaster wr = img.copyData(null);
     BufferedImage img1 = new BufferedImage(cm, wr,
             cm.isAlphaPremultiplied(), properties);
-    AffineTransform at = AffineTransform.getTranslateInstance(
-            img.getMinX(), img.getMinY());
+    AffineTransform at = AffineTransform.getTranslateInstance(img.getMinX(),
+            img.getMinY());
     at.preConcatenate(xform);
     drawImage(img1, at, null);
   }
@@ -522,7 +526,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
    * Draws a RenderableImage by invoking its createDefaultRendering method.
    */
   @Override
-  public void drawRenderableImage(RenderableImage img, AffineTransform xform)
+  public void drawRenderableImage(RenderableImage img,
+          AffineTransform xform)
   {
     drawRenderedImage(img.createDefaultRendering(), xform);
   }
@@ -571,8 +576,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
     if (getAccurateTextMode())
     {
       TextLayout layout = new TextLayout(iterator, getFontRenderContext());
-      Shape shape = layout.getOutline(AffineTransform.getTranslateInstance(
-              x, y));
+      Shape shape = layout
+              .getOutline(AffineTransform.getTranslateInstance(x, y));
       draw(shape, "fill");
     }
     else
@@ -581,8 +586,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
       Point2D location = transform(x, y);
       append(location.getX() + " " + location.getY() + " moveto");
       StringBuffer buffer = new StringBuffer();
-      for (char ch = iterator.first(); ch != CharacterIterator.DONE; ch = iterator
-              .next())
+      for (char ch = iterator
+              .first(); ch != CharacterIterator.DONE; ch = iterator.next())
       {
         if (ch == '(' || ch == ')')
         {
@@ -1092,8 +1097,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
       } catch (Exception e)
       {
         throw new EpsException(MessageManager.formatMessage(
-                "exception.eps_unable_to_get_inverse_matrix",
-                new String[] { _transform.toString() }));
+                "exception.eps_unable_to_get_inverse_matrix", new String[]
+                { _transform.toString() }));
       }
     }
   }
@@ -1238,8 +1243,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
   public void drawArc(int x, int y, int width, int height, int startAngle,
           int arcAngle)
   {
-    Shape shape = new Arc2D.Float(x, y, width, height, startAngle,
-            arcAngle, Arc2D.OPEN);
+    Shape shape = new Arc2D.Float(x, y, width, height, startAngle, arcAngle,
+            Arc2D.OPEN);
     draw(shape);
   }
 
@@ -1250,8 +1255,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
   public void fillArc(int x, int y, int width, int height, int startAngle,
           int arcAngle)
   {
-    Shape shape = new Arc2D.Float(x, y, width, height, startAngle,
-            arcAngle, Arc2D.PIE);
+    Shape shape = new Arc2D.Float(x, y, width, height, startAngle, arcAngle,
+            Arc2D.PIE);
     draw(shape, "fill");
   }
 
@@ -1437,8 +1442,8 @@ public class EpsGraphics2D extends java.awt.Graphics2D
     } catch (Exception e)
     {
       throw new EpsException(MessageManager.formatMessage(
-              "exception.eps_unable_to_get_inverse_matrix",
-              new String[] { matrix.toString() }));
+              "exception.eps_unable_to_get_inverse_matrix", new String[]
+              { matrix.toString() }));
     }
     matrix.scale(1, -1);
     matrix.getMatrix(m);
@@ -1458,9 +1463,9 @@ public class EpsGraphics2D extends java.awt.Graphics2D
       for (int x = 0; x < width; x++)
       {
         Color color = new Color(pixels[x + width * y]);
-        line.append(toHexString(color.getRed())
-                + toHexString(color.getGreen())
-                + toHexString(color.getBlue()));
+        line.append(
+                toHexString(color.getRed()) + toHexString(color.getGreen())
+                        + toHexString(color.getBlue()));
         if (line.length() > 64)
         {
           append(line.toString());