org.biojava.bio.gui
Class DNAStyle

java.lang.Object
  extended byorg.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
DNAStyle()
           
 
Method Summary
 java.awt.Paint fillPaint(Symbol s)
          Return the fill paint for a symbol.
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DNAStyle

public DNAStyle()
Method Detail

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 interface SymbolStyle
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 interface SymbolStyle
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