com.androidplot.ui.layout
Class SizeMetrics
java.lang.Object
com.androidplot.ui.layout.SizeMetrics
public class SizeMetrics
- extends Object
Encapsulates sizing preferences associated with a Widget; how/if it scales etc.
SizeMetrics
public SizeMetrics(float height,
SizeLayoutType heightLayoutType,
float width,
SizeLayoutType widthLayoutType)
- Convenience constructor. Wraps
SizeMetrics(SizeMetric, SizeMetric)
.
- 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).
SizeMetrics
public SizeMetrics(SizeMetric heightMetric,
SizeMetric widthMetric)
- Creates a new SizeMetrics instance using the specified size layout algorithm and value.
See
SizeMetric
for details on what can be passed in.
- Parameters:
heightMetric
- widthMetric
-
getHeightMetric
public SizeMetric getHeightMetric()
setHeightMetric
public void setHeightMetric(SizeMetric heightMetric)
getWidthMetric
public SizeMetric getWidthMetric()
setWidthMetric
public void setWidthMetric(SizeMetric widthMetric)
Copyright © 2011. All Rights Reserved.