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) |
doPaintToken
backgroundColorByRepresentation, calculateFont, calculatePreferredWidth, equals, getBackgroundColorMap, getColor, getDefaultBackgroundColor, getFontColor, getFontName, getFontStyle, getPreferredHeight, getPreferredWidth, hashCode, paintText, setDefaultBackgroundColor, setFontColor, setFontName, setFontStyle
paintToken
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
paintToken
public NucleotideTokenPainter()
public static void putNucleotideColors(java.util.Map<java.lang.String,java.awt.Color> map)
protected boolean isAmbiguity(java.lang.String tokenRepresentation)
AbstractBioPolymerTokenPainter
isAmbiguity
in class AbstractBioPolymerTokenPainter
tokenRepresentation
- the token representationtrue
if the token is ambiguous and shall have a background with multiple colors,
false
otherwiseprotected char[] calculateConstituents(java.lang.String tokenRepresentation)
AbstractBioPolymerTokenPainter
calculateConstituents
in class AbstractBioPolymerTokenPainter
tokenRepresentation
- the ambiguous token representation