public class ZiggyFeatureRenderer extends AbstractChangeable implements FeatureRenderer, Serializable
This is applicable to rendering cds's or non-contiguous homologies for example.
Constructor and Description |
---|
ZiggyFeatureRenderer() |
Modifier and Type | Method and 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) |
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
public ZiggyFeatureRenderer()
public void setFill(Paint p) throws ChangeVetoException
ChangeVetoException
public void setOutline(Paint p) throws ChangeVetoException
ChangeVetoException
public Paint getOutline()
public void setBlockDepth(double depth) throws ChangeVetoException
ChangeVetoException
public double getBlockDepth()
public double getDepth(SequenceRenderContext src)
getDepth
in interface FeatureRenderer
public void renderFeature(Graphics2D g, Feature f, SequenceRenderContext context)
renderFeature
in interface FeatureRenderer
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
processMouseEvent
in interface FeatureRenderer
Copyright © 2014 BioJava. All rights reserved.