dsto.dfc.swing.text
Class SimpleDocument
java.lang.Object
dsto.dfc.swing.text.SimpleDocument
public class SimpleDocument
- extends Object
- Version:
- $Revision$
- Author:
- Robbe WT Stewart
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDocument
public SimpleDocument()
SimpleDocument
public SimpleDocument(String[] lines,
Color[] colors,
Font[] fonts)
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