Package org.biojava.bio.gui
Class DNAStyle
java.lang.Object
org.biojava.bio.gui.DNAStyle
- All Implemented Interfaces:
SymbolStyle
A simple implementation of SymbolStyle optimized for DNA.
- Author:
- Matthew Pocock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the fill paint for a symbol.Return the outline paint for a symbol.void
setFillPaint
(Symbol s, Paint paint) void
setOutlinePaint
(Symbol s, Paint paint)
-
Constructor Details
-
DNAStyle
public DNAStyle()
-
-
Method Details
-
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
-