Package org.biojava.bio.gui.sequence
Class SixFrameZiggyRenderer
- java.lang.Object
-
- org.biojava.utils.AbstractChangeable
-
- org.biojava.bio.gui.sequence.SixFrameZiggyRenderer
-
- All Implemented Interfaces:
Serializable,FeatureRenderer,Changeable
public class SixFrameZiggyRenderer extends AbstractChangeable implements FeatureRenderer, Serializable
A feature renderer that computes the data necessary to render multi-exon transcripts without CDS data.The actual drawing is done by a child renderer. In this case, SixFrameRenderer is used, which can use data from this renderer to display transcripts in the correct translation frames.
- Author:
- David Huen
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SixFrameZiggyRenderer(SixFrameRenderer pane)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetBlockDepth()doublegetDepth(SequenceRenderContext src)PaintgetFill()PaintgetOutline()FeatureHolderprocessMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)voidrenderFeature(Graphics2D g, Feature f, SequenceRenderContext context)voidsetBlockDepth(double depth)voidsetFill(Paint p)voidsetOutline(Paint p)-
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
-
-
-
Constructor Detail
-
SixFrameZiggyRenderer
public SixFrameZiggyRenderer(SixFrameRenderer pane)
-
-
Method Detail
-
setFill
public void setFill(Paint p) throws ChangeVetoException
- Throws:
ChangeVetoException
-
setOutline
public void setOutline(Paint p) throws ChangeVetoException
- Throws:
ChangeVetoException
-
getOutline
public Paint getOutline()
-
setBlockDepth
public void setBlockDepth(double depth) throws ChangeVetoException
- Throws:
ChangeVetoException
-
getBlockDepth
public double getBlockDepth()
-
getDepth
public double getDepth(SequenceRenderContext src)
- Specified by:
getDepthin interfaceFeatureRenderer
-
renderFeature
public void renderFeature(Graphics2D g, Feature f, SequenceRenderContext context)
- Specified by:
renderFeaturein interfaceFeatureRenderer
-
processMouseEvent
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
- Specified by:
processMouseEventin interfaceFeatureRenderer
-
-