Interface Scaling

All Known Subinterfaces:
Scaling.CustomScaling

public interface Scaling
The scaling used for printing.
Since:
7.20
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    The custom scaling used for printing.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    custom(int scaleFactor)
    Creates a custom scaling which scales the content according to the given scaleFactor.
    static Scaling
    Creates a default scaling for the printing content.
    static Scaling
    Creates a scaling that fits the content of the page.
    static Scaling
    Creates a scaling that fits the content of the paper.
  • Method Details

    • defaultScaling

      static Scaling defaultScaling()
      Creates a default scaling for the printing content.
    • fitToPage

      static Scaling fitToPage()
      Creates a scaling that fits the content of the page.
    • fitToPaper

      static Scaling fitToPaper()
      Creates a scaling that fits the content of the paper.
    • custom

      static Scaling.CustomScaling custom(int scaleFactor)
      Creates a custom scaling which scales the content according to the given scaleFactor.
      Parameters:
      scaleFactor - a scale factor to apply to the content, where 100 is a normal size. Should be in the range from 10 to 200
      Throws:
      IllegalArgumentException - if the scaleFactor less than 10 or more than 200