当前页面:
在线文档首页 >
NetBeans API Javadoc 4.1.0
NbDocument.Printable (NetBeans APIs) - NetBeans API Javadoc 4.1.0
org.openide.text
Interface NbDocument.Printable
- All Superinterfaces:
- Document
- Enclosing interface:
- NbDocument
- public static interface NbDocument.Printable
- extends Document
Document which may support styled text printing.
Any document that wishes to support special formatting while printing
can implement this interface and provide a AttributedCharacterIterator
specifying colors, fonts, etc.
Methods inherited from interface javax.swing.text.Document |
addDocumentListener, addUndoableEditListener, createPosition, getDefaultRootElement, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, insertString, putProperty, remove, removeDocumentListener, removeUndoableEditListener, render |
createPrintIterators
public AttributedCharacterIterator[] createPrintIterators()
- Get an attributed character iterator for the document, so that it may be printed.
For a convenient way to do this, you may use a simple implementation
of an
attributed character list.
- Returns:
- list of
AttributedCharacterIterator
s to be used for printing - See Also:
NbDocument.findPageable(javax.swing.text.StyledDocument)