public class HighlightTextAnnotation
extends java.lang.Object
| Constructor and Description |
|---|
HighlightTextAnnotation(long startCharCount,
long endCharCount,
ColorInfo foreground,
ColorInfo background)
Creates a text annotation with a specific foreground and background
color.
|
HighlightTextAnnotation(long startCharCount,
long endCharCount,
ColorInfo foreground,
ColorInfo background,
java.util.EnumSet<CharAttributeValues> charAttrs,
java.util.EnumSet<CharAttributeValues> charMask)
Creates a text annotation that changes the character attributes and
applies a specific foreground and background color to the specified
text.
|
HighlightTextAnnotation(long startCharCount,
long endCharCount,
java.util.EnumSet<CharAttributeValues> charAttrs,
java.util.EnumSet<CharAttributeValues> charMask)
Creates a text annotation that changes the character attributes of
the specified text.
|
| Modifier and Type | Method and Description |
|---|---|
net.bitform.oilink.OILinkMessages.HiliteText |
getOILinkHiliteText()
Used internally by the Outside In API and not to be used externally.
|
public HighlightTextAnnotation(long startCharCount,
long endCharCount,
ColorInfo foreground,
ColorInfo background)
startCharCount - the character count of the starting positionendCharCount - the character count of the end positionforeground - the text color of the highlightbackground - the background color of the highlightpublic HighlightTextAnnotation(long startCharCount,
long endCharCount,
java.util.EnumSet<CharAttributeValues> charAttrs,
java.util.EnumSet<CharAttributeValues> charMask)
startCharCount - the character count of the starting positionendCharCount - the character count of the end positioncharAttrs - the set of character attributes that are "on"charMask - the character attributes to apply. If the mask set
contains an attribute that is not in the charAttrs set, then that
attribute will be set to "off"public HighlightTextAnnotation(long startCharCount,
long endCharCount,
ColorInfo foreground,
ColorInfo background,
java.util.EnumSet<CharAttributeValues> charAttrs,
java.util.EnumSet<CharAttributeValues> charMask)
startCharCount - the character count of the starting positionendCharCount - the character count of the end positionforeground - the text color of the highlightbackground - the background color of the highlightcharAttrs - the set of character attributes that are "on"charMask - the character attributes to apply. If the mask set
contains an attribute that is not in the charAttrs set, then that
attribute will be set to "off"