org.biojava.bio.gui
Class SimpleSymbolStyle
java.lang.Object
|
+--org.biojava.bio.gui.SimpleSymbolStyle
- public class SimpleSymbolStyle
- extends java.lang.Object
- implements SymbolStyle
A no-frills implementation of SymbolStyle.
- Author:
- Matthew Pocock
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SimpleSymbolStyle
public SimpleSymbolStyle(FiniteAlphabet alphabet)
getAlphabet
public Alphabet getAlphabet()
outlinePaint
public java.awt.Paint outlinePaint(Symbol r)
throws IllegalSymbolException
- Description copied from interface: SymbolStyle
- Return the outline paint for a symbol.
- Specified by:
- outlinePaint in interface SymbolStyle
- Tags copied from interface: SymbolStyle
- Parameters:
r
- 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 r)
throws IllegalSymbolException
- Description copied from interface: SymbolStyle
- Return the fill paint for a symbol.
- Specified by:
- fillPaint in interface SymbolStyle
- Tags copied from interface: SymbolStyle
- Parameters:
r
- the symbol to fill- Returns:
- the Paint to use
- Throws:
- IllegalSymbolException - if this SymbolStyle can not handle the
symbol
setOutlinePaint
public void setOutlinePaint(Symbol r,
java.awt.Paint paint)
throws IllegalSymbolException
setFillPaint
public void setFillPaint(Symbol r,
java.awt.Paint paint)
throws IllegalSymbolException
getStandardFillPaints
public static java.util.Map getStandardFillPaints(Alphabet alpha)
getStandardOutlinePaints
public static java.util.Map getStandardOutlinePaints(Alphabet alpha)