aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/pcl
diff options
context:
space:
mode:
authorVincent Hennebert <vhennebert@apache.org>2013-04-09 17:31:41 +0000
committerVincent Hennebert <vhennebert@apache.org>2013-04-09 17:31:41 +0000
commit37ea66b1918a88490046c51ed1ac8acd49c661b7 (patch)
treee019cba719102e952845903812fb97521c7ec0e2 /src/java/org/apache/fop/render/pcl
parentce39d4c2fb899be5d8d705fe72e0153fde21e592 (diff)
downloadxmlgraphics-fop-37ea66b1918a88490046c51ed1ac8acd49c661b7.tar.gz
xmlgraphics-fop-37ea66b1918a88490046c51ed1ac8acd49c661b7.zip
Cosmetics only: enabled Checkstyle ParenPad rule and fixed corresponding violations
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@1466146 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/pcl')
-rw-r--r--src/java/org/apache/fop/render/pcl/PCLGraphics2D.java2
-rw-r--r--src/java/org/apache/fop/render/pcl/PCLPainter.java7
2 files changed, 4 insertions, 5 deletions
diff --git a/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java b/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java
index 0fbf86c2c..009306620 100644
--- a/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java
+++ b/src/java/org/apache/fop/render/pcl/PCLGraphics2D.java
@@ -159,7 +159,7 @@ public class PCLGraphics2D extends AbstractGraphics2D {
}
}
if (len == 1) {
- gen.writeText("," + gen.formatDouble2(da[0] * 100 / patternLen ));
+ gen.writeText("," + gen.formatDouble2(da[0] * 100 / patternLen));
}
gen.writeText(";");
diff --git a/src/java/org/apache/fop/render/pcl/PCLPainter.java b/src/java/org/apache/fop/render/pcl/PCLPainter.java
index 179a4f527..974f5d7da 100644
--- a/src/java/org/apache/fop/render/pcl/PCLPainter.java
+++ b/src/java/org/apache/fop/render/pcl/PCLPainter.java
@@ -346,7 +346,7 @@ public class PCLPainter extends AbstractIFPainter<PCLDocumentHandler> implements
float fontSize = state.getFontSize() / 1000f;
Font font = getFontInfo().getFontInstance(triplet, state.getFontSize());
int l = text.length();
- int[] dx = IFUtil.convertDPToDX ( dp );
+ int[] dx = IFUtil.convertDPToDX (dp);
int dxl = (dx != null ? dx.length : 0);
StringBuffer sb = new StringBuffer(Math.max(16, l));
@@ -390,8 +390,7 @@ public class PCLPainter extends AbstractIFPainter<PCLDocumentHandler> implements
private static final double SAFETY_MARGIN_FACTOR = 0.05;
- private Rectangle getTextBoundingBox( // CSOK: ParameterNumber
- int x, int y,
+ private Rectangle getTextBoundingBox(int x, int y,
int letterSpacing, int wordSpacing, int[][] dp,
String text,
Font font, FontMetricsMapper metrics) {
@@ -403,7 +402,7 @@ public class PCLPainter extends AbstractIFPainter<PCLDocumentHandler> implements
0, maxAscent - descent + 2 * safetyMargin);
int l = text.length();
- int[] dx = IFUtil.convertDPToDX ( dp );
+ int[] dx = IFUtil.convertDPToDX (dp);
int dxl = (dx != null ? dx.length : 0);
if (dx != null && dxl > 0 && dx[0] != 0) {