|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.font.type.tfm.TFMFixWord
TFM-FixWord
The dimensions are represented in the same way as in tfm files. Higher 12 bits is the whole part and lower 20 bits is the fractional part.
Field Summary | |
static int |
CONV
conf |
static int |
FIXWORDDENOMINATOR
fixdominator |
static int |
FRACTIONDIGITS
FRACTIONDIGITS |
static TFMFixWord |
NULL
NULL |
static TFMFixWord |
TEN
TEN |
static int |
TFMCONV
tfmconf |
static TFMFixWord |
UNITY
UNITY |
static TFMFixWord |
ZERO
ZERO |
Constructor Summary | |
TFMFixWord()
Create a new object |
|
TFMFixWord(int val)
Create a new object |
|
TFMFixWord(int num,
int den)
Create new object |
|
TFMFixWord(java.lang.String val)
Create a new object |
Method Summary | |
long |
getValue()
Return the internal value |
boolean |
lessThan(int num)
less than |
boolean |
moreThan(int num)
more than |
void |
setValue(long v)
Set the value. |
double |
toDouble()
Returns the value as double in untis. |
java.lang.String |
toString()
Return the values as String |
java.lang.String |
toStringComma()
Returns the value as Sting in untis with comma (0.00000...). |
java.lang.String |
toStringUnits()
Return the value as String in units. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final TFMFixWord NULL
public static final TFMFixWord ZERO
public static final TFMFixWord UNITY
public static final TFMFixWord TEN
public static final int FIXWORDDENOMINATOR
public static final int TFMCONV
public static final int CONV
public static final int FRACTIONDIGITS
Constructor Detail |
public TFMFixWord(int val)
val
- the values as intpublic TFMFixWord()
public TFMFixWord(java.lang.String val)
val
- the values as Stringpublic TFMFixWord(int num, int den)
num
- the numden
- the denMethod Detail |
public long getValue()
public boolean lessThan(int num)
num
- the value to compare
true
, if the internal values is lesser,
otherwise false
public boolean moreThan(int num)
num
- the value to compare
true
, if the internal values are more,
otherwise false
public java.lang.String toStringUnits()
It devide the value by 1000.
public java.lang.String toStringComma()
public double toDouble()
public java.lang.String toString()
public void setValue(long v)
v
- The value to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |