public interface Scaling
Modifier and Type | Interface and Description |
---|---|
static interface |
Scaling.CustomScaling
The custom scaling used for printing.
|
Modifier and Type | Method and Description |
---|---|
static Scaling.CustomScaling |
custom(int scaleFactor)
Creates a custom scaling which scales the content according to the given
scaleFactor . |
static Scaling |
defaultScaling()
Creates a default scaling for the printing content.
|
static Scaling |
fitToPage()
Creates a scaling that fits the content of the page.
|
static Scaling |
fitToPaper()
Creates a scaling that fits the content of the paper.
|
static Scaling defaultScaling()
static Scaling fitToPage()
static Scaling fitToPaper()
static Scaling.CustomScaling custom(int scaleFactor)
scaleFactor
.scaleFactor
- a scale factor to apply to the content, where 100
is a normal size. Should
be in the range from 10
to 200
java.lang.IllegalArgumentException
- if the scaleFactor
less than 10
or more than 200