org.jboss.highlight.renderer
Class FORenderer
java.lang.Object
org.jboss.highlight.renderer.FORenderer
public class FORenderer
- extends Object
Parses the contents of programlisting elements to allow FO syntax
highlighting.
- Since:
- 1.0
- Version:
- $Revision$
- Author:
- Geert Bevin (gbevin[remove] at uwyn dot com), Mark Newton (mark.newton@jboss.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FORenderer
public FORenderer()
getNoOfTokens
public static int getNoOfTokens(int caller)
getStyle
public static String getStyle(int caller,
int index)
getToken
public static String getToken(int caller,
int index)
isParsable
public static boolean isParsable(String role)
parseText
public int parseText(String role,
String text,
String encoding)
throws IOException
- Parse the text into tokens and store in a list.
Also store a corresponding list of styles for each token.
- Throws:
IOException
getCssClass
protected String getCssClass(String role,
int style)
Copyright © 2012 JBoss.org. All Rights Reserved.