Package org.biojava.bio.gui
Class TextBlock
java.lang.Object
org.biojava.bio.gui.TextBlock
- All Implemented Interfaces:
BlockPainter
A BlockPainter that renders letters in proportion to the size of the signal.
- Author:
- Matthew Pocock, Thomas Down
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieve the current font.void
paintBlock
(LogoContext ctxt, Rectangle2D block, AtomicSymbol sym) void
setLogoFont
(Font logoFont) Set the current logo font.
-
Constructor Details
-
TextBlock
public TextBlock()
-
-
Method Details
-
getLogoFont
Retrieve the current font.- Returns:
- the current logo font
-
setLogoFont
Set the current logo font.- Parameters:
logoFont
- the new Font to render the logo letters in
-
paintBlock
- Specified by:
paintBlock
in interfaceBlockPainter
-