Package org.biojava.bio.gui.sequence
Class CircularPaddedRenderer
- java.lang.Object
-
- org.biojava.bio.gui.sequence.CircularPaddedRenderer
-
- All Implemented Interfaces:
CircularRenderer
public class CircularPaddedRenderer extends Object implements CircularRenderer
- Author:
- Matthew Pocock
-
-
Constructor Summary
Constructors Constructor Description CircularPaddedRenderer()CircularPaddedRenderer(double prePadding, double postPadding)CircularPaddedRenderer(CircularRenderer delegate)CircularPaddedRenderer(CircularRenderer delegate, double prePadding, double postPadding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetDepth(CircularRendererContext crc)Get the depth needed for this renderer.voidpaint(Graphics2D g2, CircularRendererContext crc)Paint this renderer.
-
-
-
Constructor Detail
-
CircularPaddedRenderer
public CircularPaddedRenderer()
-
CircularPaddedRenderer
public CircularPaddedRenderer(CircularRenderer delegate)
-
CircularPaddedRenderer
public CircularPaddedRenderer(double prePadding, double postPadding)
-
CircularPaddedRenderer
public CircularPaddedRenderer(CircularRenderer delegate, double prePadding, double postPadding)
-
-
Method Detail
-
getDepth
public double getDepth(CircularRendererContext crc)
Description copied from interface:CircularRendererGet the depth needed for this renderer.- Specified by:
getDepthin 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:CircularRendererPaint this renderer.- Specified by:
paintin interfaceCircularRenderer- Parameters:
g2- the graphics to paint tocrc- the context giving the data to paint
-
-