Class HiDPIProportionalFontSizePolicy
java.lang.Object
org.jzy3d.plot3d.primitives.axis.layout.fonts.HiDPIProportionalFontSizePolicy
- All Implemented Interfaces:
IFontSizePolicy
This is the greatest
.
IFontSizePolicy since it scale base font with current pixel scale.
This is mainly useful to keep the same text size visually when a chart is moved from a HiDPI
screen to a non HiDPI screen.
The base font is based on
invalid @link
IAxisLayout#getFont()
- Author:
- Martin Pernollet
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(AxisLayout layout) Modifies thefont according to the pixel scale returned by theinvalid @link
IAxisLayoutViewand the font that was returned byat the first call to this method.invalid @link
IAxisLayoutvoidsetBaseFont(Font baseFont)
-
Field Details
-
view
-
baseFont
-
apply_WindowsHiDPI_Workaround
protected boolean apply_WindowsHiDPI_Workaround
-
-
Constructor Details
-
HiDPIProportionalFontSizePolicy
-
-
Method Details
-
getBaseFont
-
setBaseFont
-
apply
Modifies thefont according to the pixel scale returned by theinvalid @link
IAxisLayoutViewand the font that was returned byat the first call to this method.invalid @link
IAxisLayout- Specified by:
applyin interfaceIFontSizePolicy
-