Vector Graphics, 2.4

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: freehep-graphicsio-ps/src/main/java/org/freehep/graphicsio/ps/PSStringStyler.java cba39eb5843a 2006/03/20 18:04:28 duns $
Author:
Charles Loomis, Steffen Greiffenberg

Constructor Summary
PSStringStyler()
           
 
Method Summary
static String getEscaped(String str)
           
static String getStyledString(Map<AttributedCharacterIterator.Attribute,Object> 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<AttributedCharacterIterator.Attribute,Object> 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 (, ), \, %

Vector Graphics, 2.4

Copyright © 2014. All rights reserved.