dsto.dfc.swing.text
Class SimpleDocument

java.lang.Object
  extended by dsto.dfc.swing.text.SimpleDocument

public class SimpleDocument
extends Object

Version:
$Revision$
Author:
Robbe WT Stewart

Nested Class Summary
static class SimpleDocument.LineMetrics
           
 
Constructor Summary
SimpleDocument()
           
SimpleDocument(String[] lines, Color[] colors, Font[] fonts)
           
 
Method Summary
protected  void computeLineSizes()
           
 Document createJFCDocument()
          Convert and answer this object into JFC Document
 Color getColor(int index)
           
 Font getFont(int index)
           
 String getLine(int index)
           
 int getLineCount()
           
 SimpleDocument.LineMetrics getLineSize(int index)
           
 Dimension getSize()
           
 String getText()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleDocument

public SimpleDocument()

SimpleDocument

public SimpleDocument(String[] lines,
                      Color[] colors,
                      Font[] fonts)
Method Detail

getSize

public Dimension getSize()

getLineSize

public SimpleDocument.LineMetrics getLineSize(int index)

getText

public String getText()

getLineCount

public int getLineCount()

getLine

public String getLine(int index)

getColor

public Color getColor(int index)

getFont

public Font getFont(int index)

createJFCDocument

public Document createJFCDocument()
Convert and answer this object into JFC Document

Returns:
styled document converted to JFC document
See Also:
Document

computeLineSizes

protected void computeLineSizes()


Copyright © 2008 Commonwealth of Australia