public class RTFDocument extends DefaultStyledDocument
| Modifier and Type | Class and Description |
|---|---|
class |
RTFDocument.CellElement |
class |
RTFDocument.RowElement |
class |
RTFDocument.TableElement |
DefaultStyledDocument.AttributeUndoableEdit, DefaultStyledDocument.ElementBuffer, DefaultStyledDocument.ElementSpec, DefaultStyledDocument.SectionElementAbstractDocument.AbstractElement, AbstractDocument.AttributeContext, AbstractDocument.BranchElement, AbstractDocument.Content, AbstractDocument.DefaultDocumentEvent, AbstractDocument.ElementEdit, AbstractDocument.LeafElement| Modifier and Type | Field and Description |
|---|---|
int |
DOCUMENT_WIDTH |
boolean |
isSplitted |
buffer, BUFFER_SIZE_DEFAULTBAD_LOCATION, BidiElementName, ContentElementName, ElementNameAttribute, listenerList, ParagraphElementName, SectionElementNameStreamDescriptionProperty, TitleProperty| Constructor and Description |
|---|
RTFDocument() |
RTFDocument(AbstractDocument.Content c,
StyleContext styles) |
RTFDocument(StyleContext styles) |
| Modifier and Type | Method and Description |
|---|---|
protected Element |
createBranchElement(Element parent,
AttributeSet a) |
protected Element |
createLeafElement(Element parent,
AttributeSet a,
int p0,
int p1) |
void |
deleteColumn(int offset) |
void |
deleteLastParagraph(RTFDocument.CellElement cell) |
void |
deleteRow(int offset) |
void |
deleteTable(int offset) |
Element |
getCell(int offset) |
Insets |
getDocumentMargins() |
Vector |
getInnerTableList(int startOffset,
int endOffset) |
Element |
getParagraph(int offset) |
Element |
getRow(int offset) |
Element |
getTable(int offset) |
void |
insertColumn(int offset,
int colWidth,
boolean insertBefore) |
void |
insertPicture(ImageIcon icon,
int pos) |
void |
insertRow(int offset,
boolean insertAbove) |
void |
insertString(int offs,
String str,
AttributeSet a) |
Element |
insertTable(int offset,
int rowCount,
int colCount,
AttributeSet attr,
int[] colWidths,
int[] rowHeights) |
void |
refresh() |
void |
remove(int offset,
int length) |
void |
setDocumentMargins(Insets margins) |
void |
setParagraphAttributes(int offset,
int length,
AttributeSet attrs,
boolean replace) |
addDocumentListener, addStyle, create, createDefaultRoot, getBackground, getCharacterElement, getDefaultRootElement, getFont, getForeground, getLogicalStyle, getParagraphElement, getStyle, getStyleNames, insert, insertUpdate, removeDocumentListener, removeElement, removeStyle, removeUpdate, setCharacterAttributes, setLogicalStyle, styleChangedaddUndoableEditListener, createPosition, dump, fireChangedUpdate, fireInsertUpdate, fireRemoveUpdate, fireUndoableEditUpdate, getAsynchronousLoadPriority, getAttributeContext, getBidiRootElement, getContent, getCurrentWriter, getDocumentFilter, getDocumentListeners, getDocumentProperties, getEndPosition, getLength, getListeners, getProperty, getRootElements, getStartPosition, getText, getText, getUndoableEditListeners, postRemoveUpdate, putProperty, readLock, readUnlock, removeUndoableEditListener, render, replace, setAsynchronousLoadPriority, setDocumentFilter, setDocumentProperties, writeLock, writeUnlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddUndoableEditListener, createPosition, getEndPosition, getLength, getProperty, getRootElements, getStartPosition, getText, getText, putProperty, removeUndoableEditListener, renderpublic RTFDocument(AbstractDocument.Content c, StyleContext styles)
public RTFDocument(StyleContext styles)
public RTFDocument()
public void insertString(int offs,
String str,
AttributeSet a)
throws BadLocationException
insertString in interface DocumentinsertString in class AbstractDocumentBadLocationExceptionprotected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1)
createLeafElement in class AbstractDocumentprotected Element createBranchElement(Element parent, AttributeSet a)
createBranchElement in class AbstractDocumentpublic Element insertTable(int offset, int rowCount, int colCount, AttributeSet attr, int[] colWidths, int[] rowHeights)
public void insertPicture(ImageIcon icon, int pos)
public void deleteTable(int offset)
public void deleteRow(int offset)
public void deleteColumn(int offset)
public void insertRow(int offset,
boolean insertAbove)
public void insertColumn(int offset,
int colWidth,
boolean insertBefore)
public void setDocumentMargins(Insets margins)
public Insets getDocumentMargins()
public void remove(int offset,
int length)
throws BadLocationException
remove in interface Documentremove in class AbstractDocumentBadLocationExceptionpublic Element getCell(int offset)
public Element getRow(int offset)
public Element getParagraph(int offset)
public Vector getInnerTableList(int startOffset, int endOffset)
public void deleteLastParagraph(RTFDocument.CellElement cell)
public Element getTable(int offset)
public void setParagraphAttributes(int offset,
int length,
AttributeSet attrs,
boolean replace)
setParagraphAttributes in interface StyledDocumentsetParagraphAttributes in class DefaultStyledDocumentpublic void refresh()
Copyright © 2016 Imatia Innovation S.L.. All rights reserved.