Re: custom controls: printing

2015-02-01 Thread Tom Eugelink
So, stuff is getting printed, but it is way too large. Is there any manual on how to implement printing? Tom

Re: custom controls: printing

2015-01-28 Thread Tom Eugelink
On 29-1-2015 08:01, Phil Race wrote: If you create an Agenda that is never displayed but has the same data and set its size so that it can display all the data, I expect it should be possible to scale it so that it fits on one page like the example you referenced but once you have 500 items in y

Re: custom controls: printing

2015-01-28 Thread Phil Race
On 1/28/15 10:23 PM, Tom Eugelink wrote: Ok, I see my question is not quite clear: I'm not looking for how to print, I am trying to figure out how to properly implement printing on a custom control, more specifically JFxtras' Agenda. Agenda has the same problem as the more recognizable usecase

Re: custom controls: printing

2015-01-28 Thread Tom Eugelink
Ok, I see my question is not quite clear: I'm not looking for how to print, I am trying to figure out how to properly implement printing on a custom control, more specifically JFxtras' Agenda. Agenda has the same problem as the more recognizable usecase of a spreadsheet: it uses a scrollpane in

Re: custom controls: printing

2015-01-28 Thread Phil Race
That example is not great as it picked the one node type that knows how to do something special with printing and completely overlooks it. The print(Node) method it provides can print any node type but it is scaling it to fit on a single side of paper. That's not ideal for a huge spreadsheet/ta

Re: custom controls: printing

2015-01-27 Thread Tom Eugelink
Ok, so looking at some examples like http://java.dzone.com/articles/introduction-example-javafx-8 where PrintJob is let lose on a node, JavaFX's PrintJob will either use the screen rendering or -if present- call: public void print(PrinterJob job) Correct? Tom On 28-1-2015 02:43, Phil Race w

Re: custom controls: printing

2015-01-27 Thread Phil Race
On 1/27/15 4:08 PM, Tom Eugelink wrote: Do I need to do something special to support printing of custom controls? The use case is that on screen a spreadsheet can be shown in a scrollpane, but when printing the whole spreadsheet should be printed. Being a 'custom' control doesn't really make a

custom controls: printing

2015-01-27 Thread Tom Eugelink
Do I need to do something special to support printing of custom controls? The use case is that on screen a spreadsheet can be shown in a scrollpane, but when printing the whole spreadsheet should be printed. Tom