Permalink
Browse files

formatted relevant code

  • Loading branch information...
1 parent 56aa608 commit 607584db5c0e8bc114f2d39dc7df854669894713 @p-goetz p-goetz committed Jan 26, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 src/graph/Plot.java
View
@@ -127,11 +127,12 @@ public void setDimensions(final short width, final short height) {
*/
public void setColors(String colors) {
if (colors != null) {
- if (colors.length() == 15 &&
- colors.matches("x[0-9A-Fa-f]{6} x[0-9A-Fa-f]{6}")) {
+ if (colors.length() == 15
+ && colors.matches("x[0-9A-Fa-f]{6} x[0-9A-Fa-f]{6}")) {
this.colors = colors;
} else {
- throw new IllegalArgumentException("colors parameter must match the format \"x000000 xFFFFFF\" for foreground and background colors");
+ throw new IllegalArgumentException(
+ "colors parameter must match the format \"x000000 xFFFFFF\" for foreground and background colors");
}
}
}
@@ -232,7 +233,7 @@ private void writeGnuplotScript(final String basepath,
.append(Short.toString(width)).append(",")
.append(Short.toString(height));
- if(colors != null) {
+ if (colors != null) {
gp.append(" ").append(colors);
}

0 comments on commit 607584d

Please sign in to comment.