org.foray.common.ps
Class PsUtil

java.lang.Object
  extended by org.foray.common.ps.PsUtil

public final class PsUtil
extends Object

PostScript-related tools included in the Common module to prevent unnecessary dependencies on the PostScript module.


Field Summary
static byte MATRIX_QTY_ELEMENTS
          The number of array elements in a PostScript matrix, that is, 6.
 
Method Summary
static String doubleOut(double doubleValue)
          Format a double primitive as PostScript output.
static String doubleOut(Double theDouble)
          Format a Double instance as PostScript output.
static String doubleOut(double doubleValue, int radix)
          Format a double primitive as PostScript output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MATRIX_QTY_ELEMENTS

public static final byte MATRIX_QTY_ELEMENTS
The number of array elements in a PostScript matrix, that is, 6.

See Also:
Constant Field Values
Method Detail

doubleOut

public static String doubleOut(Double theDouble)
Format a Double instance as PostScript output.

Parameters:
theDouble - The Double instance to format.
Returns:
The Double as PostScript output.

doubleOut

public static String doubleOut(double doubleValue)
Format a double primitive as PostScript output.

Parameters:
doubleValue - The double primitive to format.
Returns:
The double primitive as PostScript output.

doubleOut

public static String doubleOut(double doubleValue,
                               int radix)
Format a double primitive as PostScript output.

Parameters:
doubleValue - The double primitive to format.
radix - The root numbering system in which the number should be written. For example, for decimal, the value should be 10, for octal, the value should be 8.
Returns:
The double primitive as PostScript output.


Copyright © 2017. All rights reserved.