Class PrintConfigAttributes

java.lang.Object
org.eclipse.nebula.widgets.nattable.print.config.PrintConfigAttributes

public final class PrintConfigAttributes extends Object
Configuration attributes that are used to configure printing.
Since:
1.5
  • Field Details

    • FITTING_MODE

      public static final ConfigAttribute<Direction> FITTING_MODE
      Configuration attribute to configure the scaling mode on printing.
      • Direction.NONE - no content related scaling, simple DPI scaling (default)
      • Direction.HORIZONTAL - the content is scaled so that all columns are printed on one page
      • Direction.VERTICAL - the content is scaled so that all rows are printed on one page
      • Direction.BOTH - the content is scaled so that all columns and rows are printed on one page
    • STRETCH

      public static final ConfigAttribute<Boolean> STRETCH
      Configuration attribute to configure a scaling option in case FITTING_MODE is set. By default only downscaling is supported on enabling the fit-to-page scaling. By setting STRETCH to true also upscaling will be performed to make the most out of the available space.

      Note: stretching is only supported for fitting mode Direction.HORIZONTAL.

    • DATE_FORMAT

      public static final ConfigAttribute<String> DATE_FORMAT
      Configuration attribute to configure the date format that is used for rendering the print date in the footer region. If not specified the default value EEE, d MMM yyyy HH:mm a will be used.
    • DEFAULT_PAGE_ORIENTATION

      public static final ConfigAttribute<Integer> DEFAULT_PAGE_ORIENTATION
      Configuration attribute to configure the default orientation of the paper that should be applied to the PrintDialog. Can be either PrinterData#PORTRAIT or PrinterData#LANDSCAPE.
      Since:
      1.6