palmed.edit.view
Class TranslatedLineVisitor

java.lang.Object
  extended by palmed.edit.view.TranslatedLineVisitor
All Implemented Interfaces:
ILineVisitor

public final class TranslatedLineVisitor
extends java.lang.Object
implements ILineVisitor

This class wraps a line visitor to translate each line to a given column.

Version:
$Revision$ $Date$
Author:
Mathieu Champlon

Constructor Summary
TranslatedLineVisitor(ILineVisitor visitor, int column)
          Create a translated line visitor.
 
Method Summary
 void visit(java.lang.String text, int start, int end, boolean continues)
          Handle a line of text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TranslatedLineVisitor

public TranslatedLineVisitor(ILineVisitor visitor,
                             int column)
Create a translated line visitor.

Parameters:
visitor - the visitor to wrap
column - the number of column to translate the lines to the left
Method Detail

visit

public void visit(java.lang.String text,
                  int start,
                  int end,
                  boolean continues)
Handle a line of text.

Specified by:
visit in interface ILineVisitor
Parameters:
text - the content
start - the selection start position
end - the selection end position
continues - whether the selection continues on the next line or not


Copyright © 2004-2006 PalmEd. All Rights Reserved.