public class RoundRectangularBeadRenderer extends AbstractBeadRenderer
RoundRectangularBeadRenderer renders features
as rectangles with rounded corners. Their outline and fill
Paint, Stroke, feature depth, Y-axis
displacement are configurable.| Modifier and Type | Field and Description |
|---|---|
protected double |
arcHeight |
protected double |
arcWidth |
protected RoundRectangle2D |
rect |
beadDepth, beadDisplacement, beadFill, beadOutline, beadStroke, delegates, delegationCache, DEPTH, DISPLACEMENT, FILL, OUTLINE, STROKE| Constructor and Description |
|---|
RoundRectangularBeadRenderer()
Creates a new
RoundRectangularBeadRenderer
object with the default settings. |
RoundRectangularBeadRenderer(double beadDepth,
double beadDisplacement,
Paint beadOutline,
Paint beadFill,
Stroke beadStroke,
double arcWidth,
double arcHeight)
Creates a new
RoundRectangularBeadRenderer. |
| Modifier and Type | Method and Description |
|---|---|
double |
getDepth(SequenceRenderContext context)
getDepth calculates the depth required by this
renderer to display its beads. |
void |
renderBead(Graphics2D g2,
Feature f,
SequenceRenderContext context)
renderBead renders features as a rectangle with
rounded corners. |
getBeadDepth, getBeadDisplacement, getBeadFill, getBeadOutline, getBeadStroke, processMouseEvent, removeDelegateRenderer, renderFeature, setBeadDepth, setBeadDisplacement, setBeadFill, setBeadOutline, setBeadStroke, setDelegateRendereraddChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerprotected RoundRectangle2D rect
protected double arcWidth
protected double arcHeight
public RoundRectangularBeadRenderer()
RoundRectangularBeadRenderer
object with the default settings.public RoundRectangularBeadRenderer(double beadDepth, double beadDisplacement, Paint beadOutline, Paint beadFill, Stroke beadStroke, double arcWidth, double arcHeight)
RoundRectangularBeadRenderer.beadDepth - a double.beadDisplacement - a double.beadOutline - a Paint.beadFill - a Paint.beadStroke - a Stroke.arcWidth - a double value which sets the arc
width of the corners.arcHeight - a double value which sets the arc
height of the corners.public void renderBead(Graphics2D g2, Feature f, SequenceRenderContext context)
renderBead renders features as a rectangle with
rounded corners.renderBead in interface BeadFeatureRendererrenderBead in class AbstractBeadRendererg2 - a Graphics2D.f - a Feature to render.context - a SequenceRenderContext context.public double getDepth(SequenceRenderContext context)
getDepth calculates the depth required by this
renderer to display its beads.getDepth in interface FeatureRenderergetDepth in class AbstractBeadRenderercontext - a SequenceRenderContext.double.Copyright © 2020 BioJava. All rights reserved.