public class SimpleSymbolStyle extends Object implements SymbolStyle
Constructor and Description |
---|
SimpleSymbolStyle(FiniteAlphabet alphabet) |
Modifier and Type | Method and Description |
---|---|
Paint |
fillPaint(Symbol s)
Return the fill paint for a symbol.
|
Alphabet |
getAlphabet() |
static Map |
getStandardFillPaints(Alphabet alpha) |
static Map |
getStandardOutlinePaints(Alphabet alpha) |
Paint |
outlinePaint(Symbol s)
Return the outline paint for a symbol.
|
void |
setFillPaint(Symbol s,
Paint paint) |
void |
setOutlinePaint(Symbol s,
Paint paint) |
public SimpleSymbolStyle(FiniteAlphabet alphabet)
public Alphabet getAlphabet()
public Paint outlinePaint(Symbol s) throws IllegalSymbolException
SymbolStyle
outlinePaint
in interface SymbolStyle
s
- the symbol to outlineIllegalSymbolException
- if this SymbolStyle can not handle the
symbolpublic Paint fillPaint(Symbol s) throws IllegalSymbolException
SymbolStyle
fillPaint
in interface SymbolStyle
s
- the symbol to fillIllegalSymbolException
- if this SymbolStyle can not handle the
symbolpublic void setOutlinePaint(Symbol s, Paint paint) throws IllegalSymbolException
IllegalSymbolException
public void setFillPaint(Symbol s, Paint paint) throws IllegalSymbolException
IllegalSymbolException
public static Map getStandardFillPaints(Alphabet alpha)
public static Map getStandardOutlinePaints(Alphabet alpha)
Copyright © 2014 BioJava. All rights reserved.