public final class DisplayMetricsTransformer extends java.lang.Object implements IDisplayMetricsTransformer
Constructor and Description |
---|
DisplayMetricsTransformer(android.content.Context context)
Creates a new instance of
DisplayMetricsTransformer class |
Modifier and Type | Method and Description |
---|---|
int |
transformFromDeviceIndependentPixels(float value)
Transforms the value in a Device Independent Pixels to its final int value
|
int |
transformFromInches(float value)
Transforms the value in an Inches to its final int value
|
int |
transformFromMillimeters(float value)
Transforms the value in a Millimeters to its final int value
|
int |
transformFromPoints(float value)
Transforms the value in a Points to its final int value
|
int |
transformFromScaledPixels(float value)
Transforms the value in a Scaled Pixels to its final int value
|
public DisplayMetricsTransformer(android.content.Context context)
DisplayMetricsTransformer
classcontext
- The context of applicationpublic int transformFromDeviceIndependentPixels(float value)
transformFromDeviceIndependentPixels
in interface IDisplayMetricsTransformer
value
- The value to apply the unit to.public int transformFromScaledPixels(float value)
transformFromScaledPixels
in interface IDisplayMetricsTransformer
value
- The value to apply the unit to.public int transformFromPoints(float value)
transformFromPoints
in interface IDisplayMetricsTransformer
value
- The value to apply the unit to.public int transformFromInches(float value)
transformFromInches
in interface IDisplayMetricsTransformer
value
- The value to apply the unit to.public int transformFromMillimeters(float value)
transformFromMillimeters
in interface IDisplayMetricsTransformer
value
- The value to apply the unit to.