|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.documents.contents.composition.Length
public final class Length
Distance measure.
| Nested Class Summary | |
|---|---|
static class |
Length.UnitModeEnum
Measurement mode. |
| Constructor Summary | |
|---|---|
Length(double value,
Length.UnitModeEnum unitMode)
|
|
| Method Summary | |
|---|---|
Length.UnitModeEnum |
getUnitMode()
Gets the measurement mode applied to the distance value. |
double |
getValue()
Gets the distance value. |
double |
getValue(double baseValue)
Gets the resolved distance value. |
void |
setUnitMode(Length.UnitModeEnum value)
|
void |
setValue(double value)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Length(double value,
Length.UnitModeEnum unitMode)
| Method Detail |
|---|
public Length.UnitModeEnum getUnitMode()
distance value.
public double getValue()
According to the applied unit mode, this value can be
either an absolute measure or a ratio to be resolved through a base value.
getValue(double)public double getValue(double baseValue)
This method ensures that relative distance values are transformed according to the specified base value.
baseValue - Value used to resolve relative values.public void setUnitMode(Length.UnitModeEnum value)
public void setValue(double value)
public String toString()
toString in class Object
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||