Package org.biojava.bio.gui.sequence
Class ZiggyFeatureRenderer
- java.lang.Object
-
- org.biojava.utils.AbstractChangeable
-
- org.biojava.bio.gui.sequence.ZiggyFeatureRenderer
-
- All Implemented Interfaces:
Serializable
,FeatureRenderer
,Changeable
public class ZiggyFeatureRenderer extends AbstractChangeable implements FeatureRenderer, Serializable
A feature renderer that draws non-contiguous features as a set of boxes joined by zig-zags.This is applicable to rendering cds's or non-contiguous homologies for example.
- Author:
- Matthew Pocock
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ZiggyFeatureRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBlockDepth()
double
getDepth(SequenceRenderContext src)
Paint
getFill()
Paint
getOutline()
FeatureHolder
processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
void
renderFeature(Graphics2D g, Feature f, SequenceRenderContext context)
void
setBlockDepth(double depth)
void
setFill(Paint p)
void
setOutline(Paint p)
-
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
-
-
-
Constructor Detail
-
ZiggyFeatureRenderer
public ZiggyFeatureRenderer()
-
-
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:
getDepth
in interfaceFeatureRenderer
-
renderFeature
public void renderFeature(Graphics2D g, Feature f, SequenceRenderContext context)
- Specified by:
renderFeature
in interfaceFeatureRenderer
-
processMouseEvent
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
- Specified by:
processMouseEvent
in interfaceFeatureRenderer
-
-