| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IDpiConverter
Interface to add support for scaling.
This interface is inspired by Riena and the corresponding talk at EclipseCon 2014 Scaling SWT on high-resolution screens
| Method Summary | |
|---|---|
 int | 
convertDpiToPixel(int dpi)
Converts the given DPI scaled value to a pixel value.  | 
 int | 
convertPixelToDpi(int pixel)
Converts the given amount of pixels to a DPI scaled value.  | 
 float | 
getCurrentDpiFactor()
 | 
 int | 
getDpi()
Returns the dots per inch of the display.  | 
| Method Detail | 
|---|
int getDpi()
float getCurrentDpiFactor()
int convertPixelToDpi(int pixel)
pixel - the amount of pixels to convert.
int convertDpiToPixel(int dpi)
dpi - the DPI value to convert.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||