|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.androidplot.ui.layout.SizeMetrics
public class SizeMetrics
Encapsulates sizing preferences associated with a Widget; how/if it scales etc.
| Constructor Summary | |
|---|---|
SizeMetrics(float height,
SizeLayoutType heightLayoutType,
float width,
SizeLayoutType widthLayoutType)
Convenience constructor. |
|
SizeMetrics(SizeMetric heightMetric,
SizeMetric widthMetric)
Creates a new SizeMetrics instance using the specified size layout algorithm and value. |
|
| Method Summary | |
|---|---|
SizeMetric |
getHeightMetric()
|
android.graphics.RectF |
getRectF(android.graphics.RectF canvasRect)
Calculates a RectF with calculated width and height. |
android.graphics.RectF |
getRoundedRect(android.graphics.RectF canvasRect)
Same as getRectF but with edges rounded to the nearest full pixel. |
SizeMetric |
getWidthMetric()
|
void |
setHeightMetric(SizeMetric heightMetric)
|
void |
setWidthMetric(SizeMetric widthMetric)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SizeMetrics(float height,
SizeLayoutType heightLayoutType,
float width,
SizeLayoutType widthLayoutType)
SizeMetrics(SizeMetric, SizeMetric).
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).
public SizeMetrics(SizeMetric heightMetric,
SizeMetric widthMetric)
SizeMetric for details on what can be passed in.
heightMetric - widthMetric - | Method Detail |
|---|
public SizeMetric getHeightMetric()
public void setHeightMetric(SizeMetric heightMetric)
public SizeMetric getWidthMetric()
public android.graphics.RectF getRectF(android.graphics.RectF canvasRect)
canvasRect -
public android.graphics.RectF getRoundedRect(android.graphics.RectF canvasRect)
canvasRect -
public void setWidthMetric(SizeMetric widthMetric)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||