public class FeatureLabelRenderer extends AbstractChangeable implements FeatureRenderer
Modifier and Type | Class and Description |
---|---|
static class |
FeatureLabelRenderer.AnnotationLabelMaker |
static interface |
FeatureLabelRenderer.LabelMaker |
static class |
FeatureLabelRenderer.SourceLabelMaker |
static class |
FeatureLabelRenderer.TypeLabelMaker |
Modifier and Type | Field and Description |
---|---|
static ChangeType |
LABEL_MAKER |
Constructor and Description |
---|
FeatureLabelRenderer() |
FeatureLabelRenderer(FeatureLabelRenderer.LabelMaker labelMaker) |
Modifier and Type | Method and 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) |
addChangeListener, addChangeListener, generateChangeSupport, getChangeSupport, hasListeners, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
public static final ChangeType LABEL_MAKER
public FeatureLabelRenderer()
public FeatureLabelRenderer(FeatureLabelRenderer.LabelMaker labelMaker)
public FeatureLabelRenderer.LabelMaker getLabelMaker()
public void setLabelMaker(FeatureLabelRenderer.LabelMaker labelMaker) throws ChangeVetoException
ChangeVetoException
public double getDepth(SequenceRenderContext src)
getDepth
in interface FeatureRenderer
public double getMinimumLeader(SequenceRenderContext src)
public double getMinimumTrailer(SequenceRenderContext src)
public void renderFeature(Graphics2D g, Feature feat, SequenceRenderContext src)
renderFeature
in interface FeatureRenderer
public FeatureHolder processMouseEvent(FeatureHolder hits, SequenceRenderContext src, MouseEvent me)
processMouseEvent
in interface FeatureRenderer
Copyright © 2014 BioJava. All rights reserved.