Package com.androidplot.ui
Class Size
-
- All Implemented Interfaces:
public class SizeDefines physical dimensions &scaling characteristics
-
-
Field Summary
Fields Modifier and Type Field Description public static SizeFILLpublic SizeMetricheightpublic SizeMetricwidth
-
Constructor Summary
Constructors Constructor Description Size(float height, SizeMode heightLayoutType, float width, SizeMode widthLayoutType)Convenience constructor. Size(SizeMetric height, SizeMetric width)Creates a new SizeMetrics instance using the specified size layout algorithm and value.
-
Method Summary
Modifier and Type Method Description SizeMetricgetHeight()voidsetHeight(@NonNull() SizeMetric height)SizeMetricgetWidth()voidsetWidth(@NonNull() SizeMetric width)RectFgetRectF(@NonNull() RectF canvasRect)Calculates a RectF with calculated width and height. -
-
Constructor Detail
-
Size
Size(float height, SizeMode heightLayoutType, float width, SizeMode widthLayoutType)
Convenience constructor. Wraps Size.
- Parameters:
height- Height value used algorithm to calculate the height of the associated widget(s).heightLayoutType- Algorithm used to calculate the height of the associated widget(s).width- Width value used algorithm to calculate the width of the associated widget(s).widthLayoutType- Algorithm used to calculate the width of the associated widget(s).
-
Size
Size(SizeMetric height, SizeMetric width)
Creates a new SizeMetrics instance using the specified size layout algorithm and value. See SizeMetric for details on what can be passed in.
-
-
Method Detail
-
getHeight
@NonNull() SizeMetric getHeight()
-
setHeight
void setHeight(@NonNull() SizeMetric height)
-
getWidth
@NonNull() SizeMetric getWidth()
-
setWidth
void setWidth(@NonNull() SizeMetric width)
-
-
-
-