Package com.teamdev.jxbrowser.print
Interface Scaling
- All Known Subinterfaces:
Scaling.CustomScaling
public interface Scaling
The scaling used for printing.
- Since:
- 7.20
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
The custom scaling used for printing. -
Method Summary
Modifier and TypeMethodDescriptionstatic Scaling.CustomScaling
custom
(int scaleFactor) Creates a custom scaling which scales the content according to the givenscaleFactor
.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
Creates a default scaling for the printing content. -
fitToPage
Creates a scaling that fits the content of the page. -
fitToPaper
Creates a scaling that fits the content of the paper. -
custom
Creates a custom scaling which scales the content according to the givenscaleFactor
.- Parameters:
scaleFactor
- a scale factor to apply to the content, where100
is a normal size. Should be in the range from10
to200
- Throws:
IllegalArgumentException
- if thescaleFactor
less than10
or more than200
-