org.biojava.bio.gui
Class DNAStyle
java.lang.Object
org.biojava.bio.gui.DNAStyle
- All Implemented Interfaces:
- SymbolStyle
public class DNAStyle
- extends Object
- implements SymbolStyle
A simple implementation of SymbolStyle optimized for DNA.
- Author:
- Matthew Pocock
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DNAStyle
public DNAStyle()
outlinePaint
public Paint outlinePaint(Symbol s)
throws IllegalSymbolException
- Description copied from interface:
SymbolStyle
- Return the outline paint for a symbol.
- Specified by:
outlinePaint
in interface SymbolStyle
- 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:
SymbolStyle
- Return the fill paint for a symbol.
- Specified by:
fillPaint
in interface SymbolStyle
- 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