com.androidplot.ui
Class SizeMetric

java.lang.Object
  extended by com.androidplot.ui.SizeMetric

public class SizeMetric
extends Object

Encapsulates a sizing algorithm and an associated value. The available algorithms list are stored in the SizeLayoutType enumeration.


Constructor Summary
SizeMetric(float value, SizeLayoutType layoutType)
           
 
Method Summary
 LayoutType getLayoutType()
           
 float getPixelValue(float size)
           
 float getValue()
           
 void set(float value, LayoutType layoutType)
           
 void setLayoutType(LayoutType layoutType)
           
 void setValue(float value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SizeMetric

public SizeMetric(float value,
                  SizeLayoutType layoutType)
Method Detail

getPixelValue

public float getPixelValue(float size)

set

public void set(float value,
                LayoutType layoutType)

getValue

public float getValue()

setValue

public void setValue(float value)

getLayoutType

public LayoutType getLayoutType()

setLayoutType

public void setLayoutType(LayoutType layoutType)


Copyright © 2010-2013 androidplot.com. All Rights Reserved.