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 theinvalid @link
IAxisLayout
View
and the font that was returned byinvalid @link
IAxisLayout
void
setBaseFont
(Font baseFont)
-
Field Details
-
view
-
baseFont
-
apply_WindowsHiDPI_Workaround
protected boolean apply_WindowsHiDPI_Workaround
-
-
Constructor Details
-
HiDPIProportionalFontSizePolicy
-
-
Method Details
-
getBaseFont
-
setBaseFont
-
apply
Modifies theinvalid @link
IAxisLayout
View
and the font that was returned byinvalid @link
IAxisLayout
- Specified by:
apply
in interfaceIFontSizePolicy
-