Package org.biojava.bio.gui.sequence
Class FeatureLabelRenderer
- java.lang.Object
-
- org.biojava.utils.AbstractChangeable
-
- org.biojava.bio.gui.sequence.FeatureLabelRenderer
-
- All Implemented Interfaces:
FeatureRenderer
,Changeable
public class FeatureLabelRenderer extends AbstractChangeable implements FeatureRenderer
- Author:
- unknown, Matthew Pocock
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FeatureLabelRenderer.AnnotationLabelMaker
static interface
FeatureLabelRenderer.LabelMaker
static class
FeatureLabelRenderer.SourceLabelMaker
static class
FeatureLabelRenderer.TypeLabelMaker
-
Field Summary
Fields Modifier and Type Field Description static ChangeType
LABEL_MAKER
-
Constructor Summary
Constructors Constructor Description FeatureLabelRenderer()
FeatureLabelRenderer(FeatureLabelRenderer.LabelMaker labelMaker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getDepth(SequenceRenderContext src)
FeatureLabelRenderer.LabelMaker
getLabelMaker()
double
getMinimumLeader(SequenceRenderContext src)
double
getMinimumTrailer(SequenceRenderContext src)
FeatureHolder
processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
void
renderFeature(Graphics2D g, Feature feat, SequenceRenderContext src)
void
setLabelMaker(FeatureLabelRenderer.LabelMaker labelMaker)
-
Methods inherited from class org.biojava.utils.AbstractChangeable
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
-
-
-
-
Field Detail
-
LABEL_MAKER
public static final ChangeType LABEL_MAKER
-
-
Constructor Detail
-
FeatureLabelRenderer
public FeatureLabelRenderer()
-
FeatureLabelRenderer
public FeatureLabelRenderer(FeatureLabelRenderer.LabelMaker labelMaker)
-
-
Method Detail
-
getLabelMaker
public FeatureLabelRenderer.LabelMaker getLabelMaker()
-
setLabelMaker
public void setLabelMaker(FeatureLabelRenderer.LabelMaker labelMaker) throws ChangeVetoException
- Throws:
ChangeVetoException
-
getDepth
public double getDepth(SequenceRenderContext src)
- Specified by:
getDepth
in interfaceFeatureRenderer
-
getMinimumLeader
public double getMinimumLeader(SequenceRenderContext src)
-
getMinimumTrailer
public double getMinimumTrailer(SequenceRenderContext src)
-
renderFeature
public void renderFeature(Graphics2D g, Feature feat, SequenceRenderContext src)
- Specified by:
renderFeature
in interfaceFeatureRenderer
-
processMouseEvent
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
- Specified by:
processMouseEvent
in interfaceFeatureRenderer
-
-