Package org.biojava.bio.gui
Class SimpleSymbolStyle
java.lang.Object
org.biojava.bio.gui.SimpleSymbolStyle
- All Implemented Interfaces:
SymbolStyle
A no-frills implementation of SymbolStyle.
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the fill paint for a symbol.static Map
getStandardFillPaints
(Alphabet alpha) static Map
getStandardOutlinePaints
(Alphabet alpha) Return the outline paint for a symbol.void
setFillPaint
(Symbol s, Paint paint) void
setOutlinePaint
(Symbol s, Paint paint)
-
Constructor Details
-
SimpleSymbolStyle
-
-
Method Details
-
getAlphabet
-
outlinePaint
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
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
- Throws:
IllegalSymbolException
-
setFillPaint
- Throws:
IllegalSymbolException
-
getStandardFillPaints
-
getStandardOutlinePaints
-