|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnextapp.echo2.app.Extent
com.sptci.echo2.style.Extent
public class Extent
A custom extent class to use in styles. It is recomended that you
use the getInstance(int) method or its overloaded derivatives to avoid
replication across sessions.
The following shows the recommended way to use this class:
import com.sptci.echo2.style.Extent;
...
Extent width = Extent.getInstance( 400 );
Extent height = Extent.getInstance( 300 );
© Copyright 2007 Sans Pareil Technologies, Inc.
| Field Summary | |
|---|---|
protected static Map<String,Extent> |
cache
The map used to maintain a cache of extent instances required by the application. |
| Fields inherited from class nextapp.echo2.app.Extent |
|---|
CM, EM, EX, IN, MM, PC, PERCENT, PT, PX |
| Constructor Summary | |
|---|---|
Extent(int size)
Deprecated. Use getInstance( int ) instead. |
|
Extent(int size,
int units)
Deprecated. Use getInstance( int, int ) instead. |
|
| Method Summary | |
|---|---|
static Extent |
getInstance(int size)
Fetch an extent instance that represents the specified size in the default units. |
static Extent |
getInstance(int size,
int units)
Fetch an extent instance that represents the specified size in the specified units. |
protected static String |
getKey(int size,
int units)
Return a unique key to use for the specified extent size expressed in the specified units. |
| 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 |
| Field Detail |
|---|
protected static final Map<String,Extent> cache
| Constructor Detail |
|---|
@Deprecated public Extent(int size)
getInstance( int ) instead.
Extent.PX units.
size - The size represented by this extent.
@Deprecated
public Extent(int size,
int units)
getInstance( int, int ) instead.
size - The size represented by this extent.units - The unit of measure used to express this extent.| Method Detail |
|---|
public static Extent getInstance(int size)
size - The size represented by this extent.getInstance( int, int )
public static Extent getInstance(int size,
int units)
size - The size represented by this extent.units - The unit of measure used to express this extent.getKey( int, int )
protected static String getKey(int size,
int units)
size - The size for which a key is to be generated.units - The unit of measure used to express the size.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||