站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.1

NbDocument.Printable (NetBeans Text API) - NetBeans API Javadoc 5.5.1

org.openide.text 6.9.32

org.openide.text
Interface NbDocument.Printable

All Superinterfaces:
Document
Enclosing class:
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.


Field Summary
 
Fields inherited from interface javax.swing.text.Document
StreamDescriptionProperty, TitleProperty
 
Method Summary
 AttributedCharacterIterator[] createPrintIterators()
          Get an attributed character iterator for the document, so that it may be printed.
 
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
 

Method Detail

createPrintIterators

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 AttributedCharacterIterators to be used for printing
See Also:
NbDocument.findPageable(javax.swing.text.StyledDocument)

org.openide.text 6.9.32

Built on March 26 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.