Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
org.eclipse.swt.custom.StyleRange

Packages that use StyleRange
org.eclipse.jface.text | Provides a framework for creating and manipulating text documents.
org.eclipse.swt.custom | SWT Custom widgets.

Uses of StyleRange in org.eclipse.jface.text

Methods in org.eclipse.jface.text that return StyleRange
`protected StyleRange` | `TextViewer.modelStyleRange2WidgetStyleRange(StyleRange range)` Translates a style range given relative to the viewer's document into style ranges relative to the viewer's widget or `null`.
`StyleRange` | `TextPresentation.getDefaultStyleRange()` Returns this presentation's default style range.
`StyleRange` | `TextPresentation.getFirstStyleRange()` Returns the style range with the smallest offset ignoring the default style range or null if the presentation is empty.
`StyleRange` | `TextPresentation.getLastStyleRange()` Returns the style range with the highest offset ignoring the default style range.

Methods in org.eclipse.jface.text with parameters of type StyleRange
`protected StyleRange` | `TextViewer.modelStyleRange2WidgetStyleRange(StyleRange range)` Translates a style range given relative to the viewer's document into style ranges relative to the viewer's widget or `null`.
`void` | `TextPresentation.setDefaultStyleRange(StyleRange range)` Set the default style range of this presentation.
`void` | `TextPresentation.addStyleRange(StyleRange range)` Add the given range to the presentation.
`void` | `TextPresentation.replaceStyleRange(StyleRange range)` Replaces the given range in this presentation.
`void` | `TextPresentation.mergeStyleRange(StyleRange range)` Merges the given range into this presentation.
`void` | `TextPresentation.replaceStyleRanges(StyleRange[] ranges)` Replaces the given ranges in this presentation.
`void` | `TextPresentation.mergeStyleRanges(StyleRange[] ranges)` Merges the given ranges into this presentation.

Uses of StyleRange in org.eclipse.swt.custom

Fields in org.eclipse.swt.custom declared as StyleRange
`StyleRange[]` | `LineStyleEvent.styles`

Methods in org.eclipse.swt.custom that return StyleRange
`StyleRange` | `StyledText.getStyleRangeAtOffset(int offset)` Returns the style range at the given offset.
`StyleRange[]` | `StyledText.getStyleRanges()` Returns the styles.
`StyleRange[]` | `StyledText.getStyleRanges(int start, int length)` Returns the styles for the given text range.

Methods in org.eclipse.swt.custom with parameters of type StyleRange
`void` | `StyledText.replaceStyleRanges(int start, int length, StyleRange[] ranges)` Replaces the styles in the given range with new styles.
`void` | `StyledText.setStyleRange(StyleRange range)` Adds the specified style.
`void` | `StyledText.setStyleRanges(StyleRange[] ranges)` Sets styles to be used for rendering the widget content.
`boolean` | `StyleRange.similarTo(StyleRange style)` Compares the specified object to this StyleRange and answer if the two are similar.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| Eclipse Platform Release 3.0
PREV NEXT | FRAMES NO FRAMES

Guidelines for using Eclipse APIs.

Copyright (c) IBM Corp. and others 2000, 2004. All rights reserved.