RFR: 8223717: javafx printing: Support Specifying Print to File in the API [v5]
Kevin Rushforth
kcr at openjdk.java.net
Thu Jul 1 01:06:24 UTC 2021
On Thu, 1 Jul 2021 00:15:13 GMT, Phil Race <prr at openjdk.org> wrote:
>> modules/javafx.graphics/src/main/java/javafx/print/JobSettings.java line 481:
>>
>>> 479: * such as Postscript or PDF, and the application intends to distribute
>>> 480: * the result instead of printing it, or for some other reason the
>>> 481: * application does not want physical media (paper) emitted by the printer.
>>
>> Very minor: maybe consider combining the first three paragraphs into a single paragraph?
>
> well .. I usually like a short paragraph that succinctly says what it does as the first paragraph
>
> Anyway I've re-read all this and I prefer it as it is.
ok
>> modules/javafx.graphics/src/main/java/javafx/print/JobSettings.java line 486:
>>
>>> 484: * equivalent to null, which means output is sent to the printer.
>>> 485: * So in order to reset to print to the printer, clear the value of
>>> 486: * this property by setting it to null or an empty string.
>>
>> This doesn't flow as well as it could. I think you only need to mention once that `null` is the same as an empty string, and then you can just say "empty string". Maybe something like this?
>>
>>
>> The default value is an empty string, which means output is sent to the printer. So in order to reset
>> to print to the printer, clear the value of this property by setting it to an empty string. A value
>> of {@code null} is treated as an empty string.
>
> But I don't say it twice. I say
>> The default value is an empty string, which is interpreted as unset, equivalent to null,
>
> and
>> clear the value of this property by setting it to null or an empty string.
>
> which is somewhat different and makes i t very clear that either will work ..
>
> So I think this is all fine and flows as intended.
ok
-------------
PR: https://git.openjdk.java.net/jfx/pull/543
More information about the openjfx-dev
mailing list