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 greatestIFontSizePolicysince 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 booleanapply_WindowsHiDPI_Workaroundprotected FontbaseFontprotected Viewview
-
Constructor Summary
Constructors Constructor Description HiDPIProportionalFontSizePolicy(View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Fontapply(AxisLayout layout)Modifies theIAxisLayoutfont according to the pixel scale returned by theViewand the font that was returned byIAxisLayoutat the first call to this method.
-
-
-
Constructor Detail
-
HiDPIProportionalFontSizePolicy
public HiDPIProportionalFontSizePolicy(View view)
-
-
Method Detail
-
apply
public Font apply(AxisLayout layout)
Modifies theIAxisLayoutfont according to the pixel scale returned by theViewand the font that was returned byIAxisLayoutat the first call to this method.- Specified by:
applyin interfaceIFontSizePolicy
-
-