Package org.biojava.bio.gui
Class PlainStyle
- java.lang.Object
-
- org.biojava.bio.gui.PlainStyle
-
- All Implemented Interfaces:
SymbolStyle
public class PlainStyle extends Object implements SymbolStyle
A simple implementation of SymbolStyle that just uses a single paint for outlines and a single paint for filling.- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description PlainStyle()PlainStyle(Paint outlinePaint, Paint fillPaint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PaintfillPaint(Symbol s)Return the fill paint for a symbol.PaintoutlinePaint(Symbol s)Return the outline paint for a symbol.
-
-
-
Constructor Detail
-
PlainStyle
public PlainStyle()
-
PlainStyle
public PlainStyle(Paint outlinePaint, Paint fillPaint)
-
-
Method Detail
-
outlinePaint
public Paint outlinePaint(Symbol s)
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
-
fillPaint
public Paint fillPaint(Symbol s)
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
-
-