org.sourcejammer.client.gui
Class LineSplitter

java.lang.Object
  |
  +--org.sourcejammer.client.gui.LineSplitter

public class LineSplitter
extends java.lang.Object

Title: $FileName: LineSplitter.java$

Version:
$VerNum: 2$

$Description: Object used to split a long string into a number of lines.$ $KeyWordsOff: $

Author:
$AuthorName: Rob MacGrogan$

Field Summary
private  int index
           
private  java.util.ArrayList lines
           
private  int maxLineLength
           
private  java.lang.String originalLine
           
 
Constructor Summary
LineSplitter()
           
 
Method Summary
private  void extractLine()
           
private  boolean findNextLongLine()
           
 java.util.ArrayList getLines()
          Returns the lines.
 java.lang.String getLinesString()
           
static void main(java.lang.String[] args)
           
 void process()
           
 void setMaxLineLength(int maxLineLength)
          Sets the maxLineLength.
 void setOriginalLine(java.lang.String originalLine)
          Sets the originalLine.
private  void skipShortLines()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originalLine

private java.lang.String originalLine

lines

private java.util.ArrayList lines

maxLineLength

private int maxLineLength

index

private int index
Constructor Detail

LineSplitter

public LineSplitter()
Method Detail

process

public void process()

findNextLongLine

private boolean findNextLongLine()

extractLine

private void extractLine()

skipShortLines

private void skipShortLines()

setOriginalLine

public void setOriginalLine(java.lang.String originalLine)
Sets the originalLine.

Parameters:
originalLine - The originalLine to set

setMaxLineLength

public void setMaxLineLength(int maxLineLength)
Sets the maxLineLength.

Parameters:
maxLineLength - The maxLineLength to set

getLines

public java.util.ArrayList getLines()
Returns the lines.

Returns:
ArrayList

getLinesString

public java.lang.String getLinesString()

main

public static void main(java.lang.String[] args)


Copyright 2003 Soucejammer project.