-
public class Size
Defines physical dimensions & scaling characteristics
-
-
Field Summary
Fields Modifier and Type Field Description public static Size
FILL
private SizeMetric
height
private SizeMetric
width
-
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 SizeMetric
getHeight()
void
setHeight(SizeMetric height)
SizeMetric
getWidth()
void
setWidth(SizeMetric width)
RectF
getRectF(RectF canvasRect)
Calculates a RectF with calculated width and height. -
-
Constructor Detail
-
Size
Size(float height, SizeMode heightLayoutType, float width, SizeMode widthLayoutType)
Convenience constructor.- 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.
-
-
Method Detail
-
getHeight
SizeMetric getHeight()
-
setHeight
void setHeight(SizeMetric height)
-
getWidth
SizeMetric getWidth()
-
setWidth
void setWidth(SizeMetric width)
-
-
-
-