|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.Extent
echopointng.ExtentEx
public class ExtentEx
ExtentEx is a version of Extent that allows
more convinence methods and construction
| Field Summary |
|---|
| Fields inherited from class nextapp.echo2.app.Extent |
|---|
CM, EM, EX, IN, MM, PC, PERCENT, PT, PX |
| Constructor Summary | |
|---|---|
ExtentEx(int value)
Creates a new ExtentEx with pixel units. |
|
ExtentEx(int value,
int units)
Creates a new ExtentEx. |
|
ExtentEx(java.lang.String extentStr)
Creates a new ExtentEx using a string
parameter that is converted into value and units,
in the form : [integer][unit]
where [unit] is one of [px | % | pt | cm | mm | in | em | ex | pc]
and no spaces are allowed betwwen the integer value and the
unit. |
|
| Method Summary |
|---|
| Methods inherited from class nextapp.echo2.app.Extent |
|---|
add, compareTo, equals, getUnits, getValue, isComparableTo, isEnglish, isPercentage, isPrint, isSI, toMm, toPoint, toString, validate |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExtentEx(java.lang.String extentStr)
ExtentEx using a string
parameter that is converted into value and units,
in the form : [integer][unit]where [unit] is one of
[px | % | pt | cm | mm | in | em | ex | pc]and no spaces are allowed betwwen the integer value and the unit.
For example '5em', '12pt', '50%' or '22cm'.
The ExtentKit is used under the covers and an
IllegalArgumentException is thrown if the string cant be
converted.
extentStr - the extent string specifying the extent values and units
java.lang.IllegalArgumentException - - if the extent string cannot be convertedExtentKit.makeExtent(String)public ExtentEx(int value)
ExtentEx with pixel units.
value - the value of the extent in pixels
public ExtentEx(int value,
int units)
ExtentEx.
value - 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||