yu.ac.bg.etf.javaqx.qswing.text
Class TextHighlighter

java.lang.Object
  extended byyu.ac.bg.etf.javaqx.qswing.text.TextHighlighter
Direct Known Subclasses:
CppHighlighter, JavaHighlighter

public abstract class TextHighlighter
extends java.lang.Object

Abstract Text Highlighter.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Constructor Summary
TextHighlighter()
          Constructs new TextHighlighter object.
 
Method Summary
protected abstract  void highlightBlock(int blockStart, java.lang.String blockText)
          Highlighs specified block of text.
protected  void setFormat(int start, int length, CharacterFormat format)
          Sets the color for the specified text segment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextHighlighter

public TextHighlighter()
Constructs new TextHighlighter object.

Method Detail

highlightBlock

protected abstract void highlightBlock(int blockStart,
                                       java.lang.String blockText)
Highlighs specified block of text.

Parameters:
blockStart - the start of the block
blockText - the text of the block

setFormat

protected void setFormat(int start,
                         int length,
                         CharacterFormat format)
Sets the color for the specified text segment.

Parameters:
start - the start of the segment
length - the length of the segment
format - the character format


Copyright © 2007 ETF and contributors. All Rights Reserved.