Package org.biojava.bio.gui
Class DNAStyle
- java.lang.Object
-
- org.biojava.bio.gui.DNAStyle
-
- All Implemented Interfaces:
SymbolStyle
public class DNAStyle extends java.lang.Object implements SymbolStyle
A simple implementation of SymbolStyle optimized for DNA.- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description DNAStyle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.PaintfillPaint(Symbol s)Return the fill paint for a symbol.java.awt.PaintoutlinePaint(Symbol s)Return the outline paint for a symbol.voidsetFillPaint(Symbol s, java.awt.Paint paint)voidsetOutlinePaint(Symbol s, java.awt.Paint paint)
-
-
-
Method Detail
-
outlinePaint
public java.awt.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 java.awt.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, java.awt.Paint paint) throws IllegalSymbolException
- Throws:
IllegalSymbolException
-
setFillPaint
public void setFillPaint(Symbol s, java.awt.Paint paint) throws IllegalSymbolException
- Throws:
IllegalSymbolException
-
-