Class HiDPIProportionalFontSizePolicy
- java.lang.Object
-
- org.jzy3d.plot3d.primitives.axis.layout.fonts.HiDPIProportionalFontSizePolicy
-
- All Implemented Interfaces:
IFontSizePolicy
public class HiDPIProportionalFontSizePolicy extends Object implements IFontSizePolicy
This is the greatestIFontSizePolicy
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 onIAxisLayout#getFont()
.- Author:
- Martin Pernollet
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
apply_WindowsHiDPI_Workaround
protected Font
baseFont
protected View
view
-
Constructor Summary
Constructors Constructor Description HiDPIProportionalFontSizePolicy(View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Font
apply(AxisLayout layout)
Modifies theIAxisLayout
font according to the pixel scale returned by theView
and the font that was returned byIAxisLayout
at the first call to this method.
-
-
-
Constructor Detail
-
HiDPIProportionalFontSizePolicy
public HiDPIProportionalFontSizePolicy(View view)
-
-
Method Detail
-
apply
public Font apply(AxisLayout layout)
Modifies theIAxisLayout
font according to the pixel scale returned by theView
and the font that was returned byIAxisLayout
at the first call to this method.- Specified by:
apply
in interfaceIFontSizePolicy
-
-