public class Length
extends java.lang.Object
| Constructor and Description |
|---|
Length()
Length is "auto"
|
Length(double value)
Default unit is px
|
Length(double value,
Unit unit) |
public Length()
public Length(double value)
value - of Unit.px typepublic Length(double value,
Unit unit)
value - unit valueunit - 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