Method Summary |
|
public void | addStyleRange(StyleRange range) Add the given range to the presentation. |
public static void | applyTextPresentation(TextPresentation presentation, StyledText text) Applies the given presentation to the given text widget. |
public void | clear() Clears this presentation by resetting all applied changes. |
public Iterator | getAllStyleRangeIterator() Returns an iterator which enumerates all style ranges of this presentation
except the default style range. |
public IRegion | getCoverage() Returns the coverage of this presentation as clipped by the presentation's
result window. |
public StyleRange | getDefaultStyleRange() Returns this presentation's default style range. |
public int | getDenumerableRanges() Returns the number of style ranges in the presentation not counting the default
style range. |
public IRegion | getExtent() Returns the extent of this presentation clipped by the
presentation's result window. |
public StyleRange | getFirstStyleRange() Returns the style range with the smallest offset ignoring the default style range or null
if the presentation is empty. |
public StyleRange | getLastStyleRange() Returns the style range with the highest offset ignoring the default style range. |
public Iterator | getNonDefaultStyleRangeIterator() Returns an iterator which enumerates all style ranged which define a style
different from the presentation's default style range. |
public boolean | isEmpty() Returns whether this collection contains any style range including
the default style range. |
public void | mergeStyleRange(StyleRange range) Merges the given range into this presentation. |
public void | mergeStyleRanges(StyleRange[] ranges) Merges the given ranges into this presentation. |
public void | replaceStyleRange(StyleRange range) Replaces the given range in this presentation. |
public void | replaceStyleRanges(StyleRange[] ranges) Replaces the given ranges in this presentation. |
public void | setDefaultStyleRange(StyleRange range) Set the default style range of this presentation. |
public void | setResultWindow(IRegion resultWindow) Sets the result window for this presentation. |