org.freehep.graphicsio.ps
Class PSStringStyler
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PSStringStyler
public PSStringStyler()
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 (, ), \, %
Copyright © 2014. All rights reserved.