org.freehep.graphicsio.ps
Class PSStringStyler

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

public class PSStringStyler
extends 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 String getEscaped(String str)
           
static String getStyledString(Map attributes, String string)
          Must override the parse method because the PostScript string must be initialized and terminated.
static String getUnicodes(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 String getStyledString(Map attributes,
                                     String string)
Must override the parse method because the PostScript string must be initialized and terminated.


getUnicodes

public static String getUnicodes(String str)
Converts str into unicodes

Returns:
list of unicodes for str

getEscaped

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


Copyright © 2012. All Rights Reserved.