Package org.biojava.bio.gui.sequence
Class BasicFeatureRenderer
- java.lang.Object
-
- org.biojava.utils.AbstractChangeable
-
- org.biojava.bio.gui.sequence.BasicFeatureRenderer
-
- All Implemented Interfaces:
FeatureRenderer,Changeable
public class BasicFeatureRenderer extends AbstractChangeable implements FeatureRenderer
- Author:
- Matthew Pocock, Keith James, Thomas Down
-
-
Field Summary
Fields Modifier and Type Field Description static ChangeTypeFILLstatic ChangeTypeOUTLINEstatic ChangeTypeSCOOPstatic ChangeTypeSIZE
-
Constructor Summary
Constructors Constructor Description BasicFeatureRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetArrowScoop()doublegetArrowSize()doublegetDepth(SequenceRenderContext src)PaintgetFill()PaintgetOutline()FeatureHolderprocessMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)voidrenderFeature(Graphics2D g, Feature f, SequenceRenderContext src)voidsetArrowScoop(double arrowScoop)voidsetArrowSize(double arrowSize)voidsetFill(Paint p)voidsetOutline(Paint p)-
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
-
-
-
Field Detail
-
FILL
public static final ChangeType FILL
-
OUTLINE
public static final ChangeType OUTLINE
-
SIZE
public static final ChangeType SIZE
-
SCOOP
public static final ChangeType SCOOP
-
-
Constructor Detail
-
BasicFeatureRenderer
public BasicFeatureRenderer()
-
-
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()
-
setArrowSize
public void setArrowSize(double arrowSize) throws ChangeVetoException
- Throws:
ChangeVetoException
-
getArrowSize
public double getArrowSize()
-
setArrowScoop
public void setArrowScoop(double arrowScoop) throws ChangeVetoException
- Throws:
ChangeVetoException
-
getArrowScoop
public double getArrowScoop()
-
renderFeature
public void renderFeature(Graphics2D g, Feature f, SequenceRenderContext src)
- Specified by:
renderFeaturein interfaceFeatureRenderer
-
getDepth
public double getDepth(SequenceRenderContext src)
- Specified by:
getDepthin interfaceFeatureRenderer
-
processMouseEvent
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
- Specified by:
processMouseEventin interfaceFeatureRenderer
-
-