Package org.biojava.bio.gui.sequence
Class LabelRenderer.RenderNothing
java.lang.Object
org.biojava.bio.gui.sequence.LabelRenderer.RenderNothing
- All Implemented Interfaces:
LabelRenderer
- Enclosing interface:
LabelRenderer
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.gui.sequence.LabelRenderer
LabelRenderer.RenderNothing
-
Field Summary
Fields inherited from interface org.biojava.bio.gui.sequence.LabelRenderer
RENDER_NOTHING
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
Retrieve the minimum space required to render the label.void
paint
(Graphics2D g, SequenceRenderContext sp, int min, int max, SequenceRenderContext.Border border) Render a label for the information for sp to g.
-
Constructor Details
-
RenderNothing
public RenderNothing()
-
-
Method Details
-
paint
public void paint(Graphics2D g, SequenceRenderContext sp, int min, int max, SequenceRenderContext.Border border) Description copied from interface:LabelRenderer
Render a label for the information for sp to g.- Specified by:
paint
in interfaceLabelRenderer
- Parameters:
g
- the Graphics2D to render tosp
- the SequencePanel that encapsulates the information to rendermin
- the minimum symbol to render (inclusive)max
- the maximum symbol to render (inclusive)
-
getMinimumWidth
Description copied from interface:LabelRenderer
Retrieve the minimum space required to render the label.- Specified by:
getMinimumWidth
in interfaceLabelRenderer
- Parameters:
src
- the SequencePanel to return info for- Returns:
- the leading distance of the renderer for that sequence panel
-