Unit.UnitInit| Constructor and Description |
|---|
LengthOrAuto()
Initializes a new instance of the
LengthOrAuto class and sets state to 'auto'. |
LengthOrAuto(Length length)
Initializes a new instance of the
LengthOrAuto class and sets state to 'lenght'. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Unit other)
Determines whether the specified
Unit, is equal to this instance. |
Length |
getLength()
Gets or sets the length.
|
UnitType |
getUnitType_LengthOrAuto_New()
Gets the unit type of the
Unit. |
boolean |
isAuto()
Gets a value indicating whether this instance is in 'auto'.
|
void |
setAuto()
Resets container to state 'auto'.
|
void |
setLength(Length value)
Gets or sets the length.
|
static LengthOrAuto |
to_LengthOrAuto(Length length)
|
java.lang.String |
toString()
Returns a
String that represents this instance. |
equals, fromCentimeters, fromDegrees, fromDotsPerCentimeters, fromDotsPerInch, fromDotsPerPixel, fromGradians, fromHertz, fromInches, fromKiloHertz, fromMillimeters, fromMilliseconds, fromPicas, fromPixels, fromPoints, fromQuarterMillimeters, fromRadians, fromSeconds, fromTurns, getUnitType, hashCodepublic LengthOrAuto()
Initializes a new instance of the LengthOrAuto class and sets state to 'auto'.
public LengthOrAuto(Length length)
Initializes a new instance of the LengthOrAuto class and sets state to 'lenght'.
length - The length.public static LengthOrAuto to_LengthOrAuto(Length length)
Performs an implicit conversion from Length(getLength/setLength(Length)) to LengthOrAuto.
length - The value.public UnitType getUnitType_LengthOrAuto_New()
Gets the unit type of the Unit.
public Length getLength()
Gets or sets the length.
Value: The length.public void setLength(Length value)
Gets or sets the length.
Value: The length.public void setAuto()
Resets container to state 'auto'.
public boolean isAuto()
Gets a value indicating whether this instance is in 'auto'.
Value:true if this instance is automatic; otherwise, false.public boolean equals(Unit other)
Determines whether the specified Unit, is equal to this instance.