public class MaxLineWidthDocument extends SubDocument
GET_REGION
Constructor and Description |
---|
MaxLineWidthDocument(ITextSegment region,
FormattableDocument parent,
int maxLineWidth) |
Modifier and Type | Method and Description |
---|---|
void |
addReplacer(ITextReplacer replacer)
Add a new replacer to the document.
|
ITextReplacerContext |
createReplacements(ITextReplacerContext context)
Creates the real replacements for this region.
|
protected void |
validate(HiddenRegionReplacer replacer) |
protected void |
validate(ITextReplacer replacer) |
getFormatter, getRegion, getRequest, requireFitsInLine, requireFitsInLine, requireFitsInLine
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
append, append, format, formatConditionally, formatConditionally, interior, interior, interior, prepend, prepend, renderToTextReplacements, set, set, surround, surround, withReplacerFilter
public MaxLineWidthDocument(ITextSegment region, FormattableDocument parent, int maxLineWidth)
public void addReplacer(ITextReplacer replacer)
IFormattableDocument
addReplacer
in interface IFormattableDocument
addReplacer
in interface ICompositeTextReplacer
addReplacer
in class FormattableDocument
public ITextReplacerContext createReplacements(ITextReplacerContext context)
ITextReplacer
createReplacements
in interface ITextReplacer
createReplacements
in class SubDocument
protected void validate(HiddenRegionReplacer replacer) throws FormattingNotApplicableException
FormattingNotApplicableException
protected void validate(ITextReplacer replacer) throws FormattingNotApplicableException
FormattingNotApplicableException