public class SubDocument extends FormattableDocument implements IFormattableSubDocument, ICompositeTextReplacer
GET_REGION
Constructor and Description |
---|
SubDocument(ITextSegment region,
IFormattableDocument parent) |
Modifier and Type | Method and Description |
---|---|
ITextReplacerContext |
createReplacements(ITextReplacerContext previous)
Creates the real replacements for this region.
|
AbstractFormatter2 |
getFormatter()
Returns the formatter that is being used.
|
ITextSegment |
getRegion()
Returns the region this formattable document is responsible for.
|
FormatterRequest |
getRequest()
Returns the current formatting request.
|
IFormattableSubDocument |
requireFitsInLine() |
IFormattableSubDocument |
requireFitsInLine(int offset,
int length) |
IFormattableSubDocument |
requireFitsInLine(int offset,
int length,
int maxLineWidth) |
addReplacer, append, append, applyTextReplacements, createTextReplacerSet, format, formatConditionally, formatConditionally, getPreferences, getTextRegionAccess, interior, interior, interior, needsAutowrap, prepend, prepend, renderToTextReplacements, set, set, surround, surround, toString, withReplacerFilter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addReplacer, append, append, format, formatConditionally, formatConditionally, interior, interior, interior, prepend, prepend, renderToTextReplacements, set, set, surround, surround, withReplacerFilter
addReplacer
public SubDocument(ITextSegment region, IFormattableDocument parent)
public ITextReplacerContext createReplacements(ITextReplacerContext previous)
ITextReplacer
createReplacements
in interface ITextReplacer
createReplacements
in class FormattableDocument
public AbstractFormatter2 getFormatter()
IFormattableDocument
getFormatter
in interface IFormattableDocument
public ITextSegment getRegion()
IFormattableDocument
getRegion
in interface IFormattableDocument
getRegion
in interface ITextReplacer
public FormatterRequest getRequest()
IFormattableDocument
getRequest
in interface IFormattableDocument
public IFormattableSubDocument requireFitsInLine()
requireFitsInLine
in interface IFormattableSubDocument
public IFormattableSubDocument requireFitsInLine(int offset, int length)
public IFormattableSubDocument requireFitsInLine(int offset, int length, int maxLineWidth)
requireFitsInLine
in interface IFormattableSubDocument