|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dante.extex.backend.documentWriter.postscript.util.PsUnit
This class contains some utility methods.
Method Summary | |
static int |
getChar(java.lang.CharSequence seq,
Count index)
Get the next character from a character sequence. |
static long |
getFloat(java.lang.CharSequence seq,
Count index)
Scan a floating point number from a character sequence. |
static long |
getLength(java.lang.CharSequence seq,
Count index)
Parse a character sequence for a length and return it in sp. |
static void |
toPoint(FixedDimen d,
java.lang.StringBuffer out,
boolean strip)
This method produces a printable representation of a length in terms of PostScript points. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static int getChar(java.lang.CharSequence seq, Count index)
seq
- the sequence to read fromindex
- the index of the next character to read
public static long getFloat(java.lang.CharSequence seq, Count index)
seq
- the sequence to read fromindex
- the index of the next character to read
public static long getLength(java.lang.CharSequence seq, Count index) throws java.lang.NumberFormatException
Examples
1sp .2 pt -3.4 mm
seq
- the sequence to read fromindex
- the index of the next character to read
java.lang.NumberFormatException
- in case of a parsing errorpublic static void toPoint(FixedDimen d, java.lang.StringBuffer out, boolean strip)
d
- the dimen to convertout
- the target bufferstrip
- indicator whether rounding to the next higher integral
number is desirable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |