public class NucleotideTokenPainter extends AbstractBioPolymerTokenPainter
DEFAULT_HEIGHT, DEFAULT_WIDTH, FONT_SIZE_FACTOR, MIN_FONT_SIZE| Constructor and Description |
|---|
NucleotideTokenPainter()
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
protected char[] |
calculateConstituents(java.lang.String tokenRepresentation)
To be implemented by inherited classes to determine the non-ambiguous tokens that could be represented
by the specified ambiguity code.
|
protected boolean |
isAmbiguity(java.lang.String tokenRepresentation)
To be implemented by inherited classes to determine whether the specified token representation
is an ambiguity code.
|
static void |
putNucleotideColors(java.util.Map<java.lang.String,java.awt.Color> map) |
doPaintTokenbackgroundColorByRepresentation, calculateFont, calculatePreferredWidth, equals, getBackgroundColorMap, getColor, getDefaultBackgroundColor, getFontColor, getFontName, getFontStyle, getPreferredHeight, getPreferredWidth, hashCode, paintText, setDefaultBackgroundColor, setFontColor, setFontName, setFontStylepaintTokenclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitpaintTokenpublic NucleotideTokenPainter()
public static void putNucleotideColors(java.util.Map<java.lang.String,java.awt.Color> map)
protected boolean isAmbiguity(java.lang.String tokenRepresentation)
AbstractBioPolymerTokenPainterisAmbiguity in class AbstractBioPolymerTokenPaintertokenRepresentation - the token representationtrue if the token is ambiguous and shall have a background with multiple colors,
false otherwiseprotected char[] calculateConstituents(java.lang.String tokenRepresentation)
AbstractBioPolymerTokenPaintercalculateConstituents in class AbstractBioPolymerTokenPaintertokenRepresentation - the ambiguous token representation