|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.biojava.utils.AbstractChangeable
org.biojava.bio.gui.sequence.AbstractBeadRenderer
org.biojava.bio.gui.sequence.EllipticalBeadRenderer
public class EllipticalBeadRenderer
EllipticalBeadRenderer renders features as simple
ellipses. Their outline and fill Paint,
Stroke, feature depth, Y-axis displacement are
configurable. Also configurable is the minimum ratio of long axis
to short axis of the ellipse - this prevents long features also
becoming ever wider and obscuring neighbours.
| Field Summary | |
|---|---|
protected double |
dimensionRatio
|
static ChangeType |
RATIO
Constant RATIO indicating a change to the minimum
allowed ratio of long axis to short axis of the features. |
| Fields inherited from class org.biojava.bio.gui.sequence.AbstractBeadRenderer |
|---|
beadDepth, beadDisplacement, beadFill, beadOutline, beadStroke, delegates, delegationCache, DEPTH, DISPLACEMENT, FILL, OUTLINE, STROKE |
| Constructor Summary | |
|---|---|
EllipticalBeadRenderer()
Creates a new EllipticalBeadRenderer object
with the default settings. |
|
EllipticalBeadRenderer(double beadDepth,
double beadDisplacement,
Paint beadOutline,
Paint beadFill,
Stroke beadStroke,
double dimensionRatio)
Creates a new EllipticalBeadRenderer. |
|
| Method Summary | |
|---|---|
double |
getDepth(SequenceRenderContext context)
getDepth calculates the depth required by this
renderer to display its beads. |
double |
getDimensionRatio()
getDimensionRatio returns the maximum ratio of
long dimension to short dimension of the bead. |
void |
renderBead(Graphics2D g2,
Feature f,
SequenceRenderContext context)
renderBead renders features as simple ellipse. |
void |
setDimensionRatio(double ratio)
setDimensionRatio sets the minimum ratio of
long dimension to short dimension of the bead. |
| Methods inherited from class org.biojava.bio.gui.sequence.AbstractBeadRenderer |
|---|
getBeadDepth, getBeadDisplacement, getBeadFill, getBeadOutline, getBeadStroke, processMouseEvent, removeDelegateRenderer, renderFeature, setBeadDepth, setBeadDisplacement, setBeadFill, setBeadOutline, setBeadStroke, setDelegateRenderer |
| Methods inherited from class org.biojava.utils.AbstractChangeable |
|---|
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ChangeType RATIO
RATIO indicating a change to the minimum
allowed ratio of long axis to short axis of the features.
protected double dimensionRatio
| Constructor Detail |
|---|
public EllipticalBeadRenderer()
EllipticalBeadRenderer object
with the default settings.
public EllipticalBeadRenderer(double beadDepth,
double beadDisplacement,
Paint beadOutline,
Paint beadFill,
Stroke beadStroke,
double dimensionRatio)
EllipticalBeadRenderer.
beadDepth - a double.beadDisplacement - a double.beadOutline - a Paint.beadFill - a Paint.beadStroke - a Stroke.dimensionRatio - a double.| Method Detail |
|---|
public void renderBead(Graphics2D g2,
Feature f,
SequenceRenderContext context)
renderBead renders features as simple ellipse.
renderBead in interface BeadFeatureRendererrenderBead in class AbstractBeadRendererg2 - a Graphics2D context.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 object.
double.public double getDimensionRatio()
getDimensionRatio returns the maximum ratio of
long dimension to short dimension of the bead. This should be
equal, or greater than 1.
double.
public void setDimensionRatio(double ratio)
throws ChangeVetoException
setDimensionRatio sets the minimum ratio of
long dimension to short dimension of the bead. This should be
equal, or greater than 1.
ratio - a double ratio of depth.
ChangeVetoException - if an error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||