Package org.biojava.bio.gui
Class SimpleSymbolStyle
- java.lang.Object
-
- org.biojava.bio.gui.SimpleSymbolStyle
-
- All Implemented Interfaces:
SymbolStyle
public class SimpleSymbolStyle extends java.lang.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 java.awt.Paint
fillPaint(Symbol s)
Return the fill paint for a symbol.Alphabet
getAlphabet()
static java.util.Map
getStandardFillPaints(Alphabet alpha)
static java.util.Map
getStandardOutlinePaints(Alphabet alpha)
java.awt.Paint
outlinePaint(Symbol s)
Return the outline paint for a symbol.void
setFillPaint(Symbol s, java.awt.Paint paint)
void
setOutlinePaint(Symbol s, java.awt.Paint paint)
-
-
-
Constructor Detail
-
SimpleSymbolStyle
public SimpleSymbolStyle(FiniteAlphabet alphabet)
-
-
Method Detail
-
getAlphabet
public Alphabet getAlphabet()
-
outlinePaint
public java.awt.Paint outlinePaint(Symbol s) throws IllegalSymbolException
Description copied from interface:SymbolStyle
Return the outline paint for a symbol.- Specified by:
outlinePaint
in interfaceSymbolStyle
- Parameters:
s
- the symbol to outline- Returns:
- the Paint to use
- Throws:
IllegalSymbolException
- if this SymbolStyle can not handle the symbol
-
fillPaint
public java.awt.Paint fillPaint(Symbol s) throws IllegalSymbolException
Description copied from interface:SymbolStyle
Return the fill paint for a symbol.- Specified by:
fillPaint
in 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, java.awt.Paint paint) throws IllegalSymbolException
- Throws:
IllegalSymbolException
-
setFillPaint
public void setFillPaint(Symbol s, java.awt.Paint paint) throws IllegalSymbolException
- Throws:
IllegalSymbolException
-
getStandardFillPaints
public static java.util.Map getStandardFillPaints(Alphabet alpha)
-
getStandardOutlinePaints
public static java.util.Map getStandardOutlinePaints(Alphabet alpha)
-
-