|
NextApp Echo3 v3.0.b4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo.app.Extent
nextapp.echo.app.DecimalExtent
public class DecimalExtent
A representation of an integer linear distance with units. DecimalExtent
objects are immutable once constructed.
This object should only be used when an extent requires a fractional (decimal) part, in all other
cases the plain Extent object should be used.
| Field Summary |
|---|
| Fields inherited from class nextapp.echo.app.Extent |
|---|
CM, EM, EX, IN, MM, PC, PERCENT, PT, PX |
| Constructor Summary | |
|---|---|
DecimalExtent(double decimalValue)
Creates a new DecimalExtent with pixel units. |
|
DecimalExtent(double decimalValue,
int units)
Creates a new DecimalExtent. |
|
| Method Summary | |
|---|---|
double |
getDecimalValue()
Returns the decimal value of the extent. |
int |
toMm()
Returns the value of the extent in millimeters. |
int |
toPoint()
Returns the value of the extent in points. |
java.lang.String |
toString()
Returns a string describing the state of the Extent. |
| Methods inherited from class nextapp.echo.app.Extent |
|---|
add, compareTo, equals, getUnits, getValue, isComparableTo, isEnglish, isPercentage, isPrint, isSI, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DecimalExtent(double decimalValue)
DecimalExtent with pixel units.
decimalValue - the value of the extent in pixels
public DecimalExtent(double decimalValue,
int units)
DecimalExtent.
decimalValue - the value of the extentunits - the units of the value, one of the following constants:
PC: PixelsPERCENT: Percent (of size of containing
component)PT: PointsCM: CentimetersMM: MillimetersIN: InchesEM: Ems (height of 'M' character)EX: Exs (height of 'x' character)PC: Picas| Method Detail |
|---|
public double getDecimalValue()
public int toMm()
Extent
toMm in class ExtentExtent.toMm()public int toPoint()
Extent
toPoint in class ExtentExtent.toPoint()public java.lang.String toString()
toString in class ExtentObject.toString()
|
NextApp Echo3 v3.0.b4 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||