Package com.ironsoftware.ironpdf.edit
Class Length
- java.lang.Object
- 
- com.ironsoftware.ironpdf.edit.Length
 
- 
 public class Length extends Object A length value withMeasurementUnitAllows use and interchange of units such as inches, mm, pt, percentages, pixels and points when editing a PDF. 
- 
- 
Constructor SummaryConstructors Constructor Description Length()Gets default length : 0%Length(double value)Instantiates a new Length.Length(double value, MeasurementUnit unit)Instantiates a new Length.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description MeasurementUnitgetUnit()Gets unit.doublegetValue()Gets value.voidsetUnit(MeasurementUnit value)Sets unit.voidsetValue(double value)Sets value.
 
- 
- 
- 
Constructor Detail- 
Lengthpublic Length(double value) Instantiates a new Length. Default MeasurementUnit isMeasurementUnit.PERCENTAGE- Parameters:
- value- the value
 
 - 
Lengthpublic Length(double value, MeasurementUnit unit)Instantiates a new Length. A length value withMeasurementUnit.- Parameters:
- value- the value
- unit- the unit
 
 - 
Lengthpublic Length() Gets default length : 0%
 
- 
 - 
Method Detail- 
getUnitpublic final MeasurementUnit getUnit() Gets unit.MeasurementUnit- Returns:
- the unit
 
 - 
setUnitpublic final void setUnit(MeasurementUnit value) Sets unit.MeasurementUnit- Parameters:
- value- the value
 
 - 
getValuepublic final double getValue() Gets value.- Returns:
- the value
 
 - 
setValuepublic final void setValue(double value) Sets value.- Parameters:
- value- the value
 
 
- 
 
-