Package com.independentsoft.office.odf
Class Size
java.lang.Object
com.independentsoft.office.odf.Size
Represents a size.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Creates a new object that is a deep copy of the current instance.getUnit()Gets the size unit.doublegetValue()Gets the size value.voidSets the size unit.voidsetValue(double value)Sets the size value.toString()Converts the value of the current Size object to its equivalent string representation.
-
Constructor Details
-
Size
public Size()Initializes a new instance of the Size class. -
Size
Initializes a new instance of the Size class.- Parameters:
size- the sizeunit- the unit
-
Size
Initializes a new instance of the Size class.- Parameters:
size- the size
-
-
Method Details
-
clone
Creates a new object that is a deep copy of the current instance. -
toString
Converts the value of the current Size object to its equivalent string representation. -
getValue
public double getValue()Gets the size value.- Returns:
- the value
-
setValue
public void setValue(double value)Sets the size value.- Parameters:
value- the new value
-
getUnit
Gets the size unit.- Returns:
- the unit
-
setUnit
Sets the size unit.- Parameters:
unit- the new unit
-