Method
putInBrackets
(String key, java.awt.Color color)
Source from the content-addressed store, hash-verified
| 81 | } |
| 82 | |
| 83 | public ValveWriter putInBrackets(String key, java.awt.Color color) throws IOException { |
| 84 | if (color != null) { |
| 85 | this.put(key, "{" + color.getRed() + " " + color.getGreen() + " " + color.getBlue() + "}"); |
| 86 | } |
| 87 | return this; |
| 88 | } |
| 89 | |
| 90 | public ValveWriter putTransparentColor(String key, Color color) throws IOException { |
| 91 | return this.put(key, color.red + " " + color.green + " " + color.blue + " " + color.alpha); |
Tested by
no test coverage detected