org.freehep.graphicsio.ps
Class PSStringStyler

java.lang.Object
  extended by org.freehep.graphicsio.ps.PSStringStyler

public class PSStringStyler
extends java.lang.Object

Class to create a "cfont" tag in PS. Use getStyledString(java.util.Map, String) to operate.

Version:
$Id: PSStringStyler.java 8584 2006-08-10 23:06:37Z duns $
Author:
Charles Loomis, Steffen Greiffenberg

Constructor Summary
PSStringStyler()
           
 
Method Summary
static java.lang.String getEscaped(java.lang.String str)
           
static java.lang.String getStyledString(java.util.Map attributes, java.lang.String string)
          Must override the parse method because the PostScript string must be initialized and terminated.
static java.lang.String getUnicodes(java.lang.String str)
          Converts str into unicodes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSStringStyler

public PSStringStyler()
Method Detail

getStyledString

public static java.lang.String getStyledString(java.util.Map attributes,
                                               java.lang.String string)
Must override the parse method because the PostScript string must be initialized and terminated.


getUnicodes

public static java.lang.String getUnicodes(java.lang.String str)
Converts str into unicodes

Returns:
list of unicodes for str

getEscaped

public static java.lang.String getEscaped(java.lang.String str)
Parameters:
str - string to convert
Returns:
str with replaced (, ), \, %


Copyright © 2000-2007 FreeHEP. All Rights Reserved.