public final class Length
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description | 
|---|
Length()
Length is "auto" 
 | 
Length(double value)
Creates length with default unit  
Unit.px | 
Length(double value,
      Unit unit)
Creates length with given value and  
Unit | 
public Length()
public Length(double value)
Unit.pxvalue - of Unit.px typepublic java.lang.String toString()
toString in class java.lang.Objectpublic Unit getUnit()
public double getValue()
public boolean isAuto()
public Length setAuto(boolean auto)
auto - the auto to setpublic Length setValue(double value)
value - the value to set