Package | Description |
---|---|
org.eclipse.swt.custom |
Modifier and Type | Field and Description |
---|---|
StyleRange |
PaintObjectEvent.style
the StyleRange
|
StyleRange |
Bullet.style
The bullet style.
|
StyleRange[] |
LineStyleEvent.styles
line styles (output)
Note: Because a StyleRange includes the start and length, the
same instance cannot occur multiple times in the array of styles.
|
Modifier and Type | Method and Description |
---|---|
StyleRange |
StyledText.getStyleRangeAtOffset(int offset)
Returns the style range at the given offset.
|
StyleRange[] |
StyledText.getStyleRanges()
Returns the styles.
|
StyleRange[] |
StyledText.getStyleRanges(boolean includeRanges)
Returns the styles.
|
StyleRange[] |
StyledText.getStyleRanges(int start,
int length)
Returns the styles for the given text range.
|
StyleRange[] |
StyledText.getStyleRanges(int start,
int length,
boolean includeRanges)
Returns the styles for the given text range.
|
Modifier and Type | Method and Description |
---|---|
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(int[] ranges,
StyleRange[] styles)
Sets styles to be used for rendering the widget content.
|
void |
StyledText.setStyleRanges(int start,
int length,
int[] ranges,
StyleRange[] styles)
Clears the styles in the range specified by
start and
length and adds the new styles. |
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.
|
Constructor and Description |
---|
Bullet(int type,
StyleRange style)
Create a new bullet the specified style and type.
|
Bullet(StyleRange style)
Create a new bullet with the specified style, and type
ST.BULLET_DOT . |
Copyright © 2017. All Rights Reserved.