Package com.androidplot.ui
Class SizeMetric
-
- All Implemented Interfaces:
public class SizeMetric extends LayoutMetric<SizeMode>
Encapsulates a sizing algorithm and an associated value. The available algorithms list are stored in the SizeMode enumeration.
-
-
Field Summary
Fields Modifier and Type Field Description public LayoutTypelayoutTypepublic floatvalue
-
Constructor Summary
Constructors Constructor Description SizeMetric(float value, SizeMode layoutType)
-
Method Summary
Modifier and Type Method Description floatgetPixelValue(float size)voidsetLayoutType(@NonNull() SizeMode layoutType)-
-
Constructor Detail
-
SizeMetric
SizeMetric(float value, SizeMode layoutType)
-
-
Method Detail
-
getPixelValue
float getPixelValue(float size)
-
setLayoutType
void setLayoutType(@NonNull() SizeMode layoutType)
-
-
-
-