public class WitnessLabelProvider extends LabelProvider implements DelegatingStyledCellLabelProvider.IStyledLabelProvider, IColorProvider
Witness
Modifier and Type | Field and Description |
---|---|
static StyledString.Styler |
EQUAL_STYLER
Styler for tokens that are equivalent to the base text's entry at this
position.
|
Constructor and Description |
---|
WitnessLabelProvider(CollationResults collationResults,
Witness witness)
Creates a new label provider for the given witness.
|
Modifier and Type | Method and Description |
---|---|
Color |
getBackground(Object element) |
Color |
getForeground(Object element) |
StyledString |
getStyledText(Object element) |
getImage, getText
addListener, dispose, fireLabelProviderChanged, isLabelProperty, removeListener
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getImage
addListener, dispose, isLabelProperty, removeListener
public static StyledString.Styler EQUAL_STYLER
getEquivalenceColor()
public WitnessLabelProvider(CollationResults collationResults, Witness witness)
collationResults
- used to determine the current base textwitness
- the witness that we should labelpublic StyledString getStyledText(Object element)
getStyledText
in interface DelegatingStyledCellLabelProvider.IStyledLabelProvider
public Color getForeground(Object element)
getForeground
in interface IColorProvider
public Color getBackground(Object element)
getBackground
in interface IColorProvider
Copyright © 2013 TextGrid. All Rights Reserved.