public abstract class IlvUnit extends Object
Modifier and Type | Class and Description |
---|---|
static class |
IlvUnit.Dimension
Defines a dimension with its unit of measurement.
|
static class |
IlvUnit.Measure
Defines a distance with its unit of measurement.
|
static class |
IlvUnit.Point
Defines a point with its unit of measurement.
|
static class |
IlvUnit.Rectangle
Defines a rectangle with its unit of measurement.
|
Modifier and Type | Field and Description |
---|---|
static IlvUnit |
CM
The centimeter unit.
|
static IlvUnit |
INCHES
The inch unit.
|
static IlvUnit |
POINTS
The points unit, that corresponds to 1/72nds of an inch.
|
Modifier and Type | Method and Description |
---|---|
double |
getAs(double value,
IlvUnit unit)
Translates a value defined in this unit of measurement
to the specified unit of measurement.
|
String |
toString()
Returns a string representation of this object.
|
public static final IlvUnit CM
public static final IlvUnit INCHES
public static final IlvUnit POINTS
public double getAs(double value, IlvUnit unit)
value
- The value to translate.unit
- The unit of measurement to translate to.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.