Package org.biojava.bio.gui
Class SimpleSymbolStyle
- java.lang.Object
-
- org.biojava.bio.gui.SimpleSymbolStyle
-
- All Implemented Interfaces:
SymbolStyle
public class SimpleSymbolStyle extends Object implements SymbolStyle
A no-frills implementation of SymbolStyle.- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description SimpleSymbolStyle(FiniteAlphabet alphabet)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaintfillPaint(Symbol s)Return the fill paint for a symbol.AlphabetgetAlphabet()static MapgetStandardFillPaints(Alphabet alpha)static MapgetStandardOutlinePaints(Alphabet alpha)PaintoutlinePaint(Symbol s)Return the outline paint for a symbol.voidsetFillPaint(Symbol s, Paint paint)voidsetOutlinePaint(Symbol s, Paint paint)
-
-
-
Constructor Detail
-
SimpleSymbolStyle
public SimpleSymbolStyle(FiniteAlphabet alphabet)
-
-
Method Detail
-
getAlphabet
public Alphabet getAlphabet()
-
outlinePaint
public Paint outlinePaint(Symbol s) throws IllegalSymbolException
Description copied from interface:SymbolStyleReturn the outline paint for a symbol.- Specified by:
outlinePaintin interfaceSymbolStyle- Parameters:
s- the symbol to outline- Returns:
- the Paint to use
- Throws:
IllegalSymbolException- if this SymbolStyle can not handle the symbol
-
fillPaint
public Paint fillPaint(Symbol s) throws IllegalSymbolException
Description copied from interface:SymbolStyleReturn the fill paint for a symbol.- Specified by:
fillPaintin interfaceSymbolStyle- Parameters:
s- the symbol to fill- Returns:
- the Paint to use
- Throws:
IllegalSymbolException- if this SymbolStyle can not handle the symbol
-
setOutlinePaint
public void setOutlinePaint(Symbol s, Paint paint) throws IllegalSymbolException
- Throws:
IllegalSymbolException
-
setFillPaint
public void setFillPaint(Symbol s, Paint paint) throws IllegalSymbolException
- Throws:
IllegalSymbolException
-
getStandardFillPaints
public static Map getStandardFillPaints(Alphabet alpha)
-
getStandardOutlinePaints
public static Map getStandardOutlinePaints(Alphabet alpha)
-
-