Package org.biojava.bio.gui.sequence
Class CircularMLR
- java.lang.Object
-
- org.biojava.bio.gui.sequence.CircularMLR
-
- All Implemented Interfaces:
CircularRenderer
public class CircularMLR extends Object implements CircularRenderer
Renders multiple renderers, each in their own concentric rings.- Since:
- 1.4
- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description CircularMLR()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRenderer(CircularRenderer renderer)
double
getDepth(CircularRendererContext crc)
Get the depth needed for this renderer.void
paint(Graphics2D g2, CircularRendererContext crc)
Paint this renderer.void
removeRenderer(CircularRenderer renderer)
-
-
-
Constructor Detail
-
CircularMLR
public CircularMLR()
-
-
Method Detail
-
addRenderer
public void addRenderer(CircularRenderer renderer)
-
removeRenderer
public void removeRenderer(CircularRenderer renderer)
-
getDepth
public double getDepth(CircularRendererContext crc)
Description copied from interface:CircularRenderer
Get the depth needed for this renderer.- Specified by:
getDepth
in interfaceCircularRenderer
- Parameters:
crc
- the CircularRendererContext to render information from- Returns:
- the depth required to render the context
-
paint
public void paint(Graphics2D g2, CircularRendererContext crc)
Description copied from interface:CircularRenderer
Paint this renderer.- Specified by:
paint
in interfaceCircularRenderer
- Parameters:
g2
- the graphics to paint tocrc
- the context giving the data to paint
-
-