Class DefaultHorizontalDpiConverter
java.lang.Object
org.eclipse.nebula.widgets.nattable.layer.AbstractDpiConverter
org.eclipse.nebula.widgets.nattable.layer.DefaultHorizontalDpiConverter
- All Implemented Interfaces:
IDpiConverter
Default implementation of an
IDpiConverter
that provides the
horizontal dots per inch from the default display via
Device.getDPI()
.- Since:
- 2.0
-
Field Summary
Fields inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractDpiConverter
dpi, scaleFactor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Sets the value for the dpi member variable.Methods inherited from class org.eclipse.nebula.widgets.nattable.layer.AbstractDpiConverter
convertDpiToPixel, convertPixelToDpi, getCurrentDpiFactor, getDpi
-
Constructor Details
-
DefaultHorizontalDpiConverter
public DefaultHorizontalDpiConverter()
-
-
Method Details
-
readDpiFromDisplay
protected void readDpiFromDisplay()Description copied from class:AbstractDpiConverter
Sets the value for the dpi member variable.IMPORTANT:
Ensure the load operation is done in the UI thread!- Specified by:
readDpiFromDisplay
in classAbstractDpiConverter
-