org.basex.gui.view.text
Class XMLSyntax

java.lang.Object
  extended by org.basex.gui.layout.BaseXSyntax
      extended by org.basex.gui.view.text.XMLSyntax

public final class XMLSyntax
extends BaseXSyntax

This abstract class defines syntax highlighting of text panels.

Author:
Workgroup DBIS, University of Konstanz 2005-08, ISC License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.gui.layout.BaseXSyntax
SIMPLE
 
Constructor Summary
XMLSyntax()
           
 
Method Summary
 java.awt.Color getColor(java.lang.String word)
          Returns the color for the current token.
 void init()
          Initializes the highlighter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSyntax

public XMLSyntax()
Method Detail

init

public void init()
Description copied from class: BaseXSyntax
Initializes the highlighter.

Specified by:
init in class BaseXSyntax

getColor

public java.awt.Color getColor(java.lang.String word)
Description copied from class: BaseXSyntax
Returns the color for the current token.

Specified by:
getColor in class BaseXSyntax
Parameters:
word - current token
Returns:
color