com.kitfox.svg.xml
Class NumberWithUnits
java.lang.Object
com.kitfox.svg.xml.NumberWithUnits
- All Implemented Interfaces:
- Serializable
public class NumberWithUnits
- extends Object
- implements Serializable
- Author:
- Mark McKay, Mark McKay
- See Also:
- Serialized Form
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
UT_UNITLESS
public static final int UT_UNITLESS
- See Also:
- Constant Field Values
UT_PX
public static final int UT_PX
- See Also:
- Constant Field Values
UT_CM
public static final int UT_CM
- See Also:
- Constant Field Values
UT_MM
public static final int UT_MM
- See Also:
- Constant Field Values
UT_IN
public static final int UT_IN
- See Also:
- Constant Field Values
UT_EM
public static final int UT_EM
- See Also:
- Constant Field Values
UT_EX
public static final int UT_EX
- See Also:
- Constant Field Values
UT_PT
public static final int UT_PT
- See Also:
- Constant Field Values
UT_PC
public static final int UT_PC
- See Also:
- Constant Field Values
UT_PERCENT
public static final int UT_PERCENT
- See Also:
- Constant Field Values
NumberWithUnits
public NumberWithUnits()
- Creates a new instance of NumberWithUnits
NumberWithUnits
public NumberWithUnits(String value)
NumberWithUnits
public NumberWithUnits(float value,
int unitType)
getValue
public float getValue()
getUnits
public int getUnits()
set
public void set(String value)
unitsAsString
public static String unitsAsString(int unitIdx)
toString
public String toString()
- Overrides:
toString in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2011-2012 Barchart, Inc.. All Rights Reserved.