com.uwyn.jhighlight.renderer
Class JavaXhtmlRenderer

java.lang.Object
  extended by com.uwyn.jhighlight.renderer.XhtmlRenderer
      extended by com.uwyn.jhighlight.renderer.JavaXhtmlRenderer
All Implemented Interfaces:
Renderer

public class JavaXhtmlRenderer
extends XhtmlRenderer

Generates highlighted syntax in XHTML from Java source.

Since:
1.0
Version:
$Revision: 3108 $
Author:
Geert Bevin (gbevin[remove] at uwyn dot com)

Field Summary
static HashMap DEFAULT_CSS
           
 
Constructor Summary
JavaXhtmlRenderer()
           
 
Method Summary
protected  String getCssClass(int style)
          Looks up the CSS class identifier that corresponds to the syntax style.
protected  Map getDefaultCssStyles()
          Returns a map of all the CSS styles that the renderer requires, together with default definitions for them.
protected  ExplicitStateHighlighter getHighlighter()
          Returns the language-specific highlighting lexer that should be used
 
Methods inherited from class com.uwyn.jhighlight.renderer.XhtmlRenderer
getCssClassDefinitions, getXhtmlFooter, getXhtmlHeader, getXhtmlHeaderFragment, highlight, highlight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CSS

public static final HashMap DEFAULT_CSS
Constructor Detail

JavaXhtmlRenderer

public JavaXhtmlRenderer()
Method Detail

getDefaultCssStyles

protected Map getDefaultCssStyles()
Description copied from class: XhtmlRenderer
Returns a map of all the CSS styles that the renderer requires, together with default definitions for them.

Specified by:
getDefaultCssStyles in class XhtmlRenderer
Returns:
The map of CSS styles.

getCssClass

protected String getCssClass(int style)
Description copied from class: XhtmlRenderer
Looks up the CSS class identifier that corresponds to the syntax style.

Specified by:
getCssClass in class XhtmlRenderer
Parameters:
style - The syntax style.
Returns:
The requested CSS class identifier; or

null if the syntax style isn't supported.


getHighlighter

protected ExplicitStateHighlighter getHighlighter()
Description copied from class: XhtmlRenderer
Returns the language-specific highlighting lexer that should be used

Specified by:
getHighlighter in class XhtmlRenderer
Returns:
The requested highlighting lexer.


Copyright © 2004-2006 Uwyn bvba/sprl and Omnicore Software. All Rights Reserved.