org.apache.batik.util.gui.xmleditor

Class XMLView

public class XMLView extends PlainView

View that uses the lexical information to determine the style characteristics of the text that it renders. This simply colorizes the various tokens and assumes a constant font family and size.
Field Summary
protected XMLContextcontext
protected XMLScannerlexer
protected inttabSize
Constructor Summary
XMLView(XMLContext context, Element elem)
Construct a simple colorized view of XML text.
Method Summary
protected intdrawUnselectedText(Graphics g, int x, int y, int p0, int p1)
intgetTabSize()

Field Detail

context

protected XMLContext context

lexer

protected XMLScanner lexer

tabSize

protected int tabSize

Constructor Detail

XMLView

public XMLView(XMLContext context, Element elem)
Construct a simple colorized view of XML text.

Method Detail

drawUnselectedText

protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
{@inheritDoc }

getTabSize

public int getTabSize()
{@inheritDoc }
Copyright B) 2008 Apache Software Foundation. All Rights Reserved.