org.eclipse.nebula.widgets.nattable.print
Class LayerPrinter

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.print.LayerPrinter

public class LayerPrinter
extends Object

This class is used to print a layer. Usually you create an instance by using the top most layer in the layer stack. For grids this is the GridLayer, otherwise the ViewportLayer is a good choice.


Field Summary
static int FOOTER_HEIGHT_IN_PRINTER_DPI
           
 
Constructor Summary
LayerPrinter(ILayer layer, IConfigRegistry configRegistry)
           
 
Method Summary
 void print(org.eclipse.swt.widgets.Shell shell)
          Will first open the PrintDialog to let a user configure the print job and then starts the print job.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOOTER_HEIGHT_IN_PRINTER_DPI

public static final int FOOTER_HEIGHT_IN_PRINTER_DPI
See Also:
Constant Field Values
Constructor Detail

LayerPrinter

public LayerPrinter(ILayer layer,
                    IConfigRegistry configRegistry)
Parameters:
layer - The layer to print. Usually the top most layer in the layer stack. For grids this should be the GridLayer, for custom CompositeLayer compositions the CompositeLayer, otherwise the ViewportLayer is a good choice.
configRegistry - The ConfigRegistry needed for rendering to the print GC.
Method Detail

print

public void print(org.eclipse.swt.widgets.Shell shell)
Will first open the PrintDialog to let a user configure the print job and then starts the print job.

Parameters:
shell - The shell which should be the parent of the PrintDialog.


Copyright © 2015. All rights reserved.