public class GlyphFeatureRenderer extends FilteringRenderer implements FeatureRenderer
Glyph,
Serialized FormSequenceRenderer.RendererForwarder| Modifier and Type | Field and Description |
|---|---|
protected List<FeatureFilter> |
fList |
protected List<Glyph> |
gList |
filter, FILTER, recurse, RECURSERENDERER| Constructor and Description |
|---|
GlyphFeatureRenderer() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilterAndGlyph(FeatureFilter ff,
Glyph g) |
boolean |
containsFilter(FeatureFilter ff)
Returns true if the given
FeatureFilter is already contained in this
renderer. |
double |
getDepth(SequenceRenderContext src)
Returns the depth property of this class.
|
FeatureFilter |
getFeatureFilter(int i)
Returns the ith
FeatureFilter in this renderer. |
Glyph |
getGlyphForFilter(FeatureFilter ff)
Returns the
Glyph object which is assigned to the given feature
filter. |
FeatureHolder |
processMouseEvent(FeatureHolder fh,
SequenceRenderContext src,
MouseEvent me) |
void |
removeFilterWithGlyph(FeatureFilter ff) |
void |
renderFeature(Graphics2D g2,
Feature f,
SequenceRenderContext src) |
void |
setDepth(double depth) |
void |
setGlyphForFilter(FeatureFilter ff,
Glyph glyph)
Allows setting another
Glyph object to be painted for the given
FeatureFilter. |
getChangeSupport, getContext, getFilter, getMinimumLeader, getMinimumTrailer, getRecurse, hasListeners, paint, processMouseEvent, setFilter, setRecurse, toStringgetRenderer, setRendereraddChangeListener, addChangeListener, generateChangeSupport, hasListeners, isUnchanging, removeChangeListener, removeChangeListenerpublic GlyphFeatureRenderer()
public void addFilterAndGlyph(FeatureFilter ff, Glyph g) throws ChangeVetoException
ChangeVetoExceptionpublic void removeFilterWithGlyph(FeatureFilter ff) throws ChangeVetoException
ChangeVetoExceptionpublic FeatureFilter getFeatureFilter(int i)
FeatureFilter in this renderer.i - public boolean containsFilter(FeatureFilter ff)
FeatureFilter is already contained in this
renderer.ff - public void setGlyphForFilter(FeatureFilter ff, Glyph glyph) throws NoSuchElementException
Glyph object to be painted for the given
FeatureFilter.ff - glyph - ChangeVetoExceptionNoSuchElementExceptionpublic Glyph getGlyphForFilter(FeatureFilter ff) throws NoSuchElementException
Glyph object which is assigned to the given feature
filter.ff - Glyph objectNoSuchElementExceptionpublic void setDepth(double depth)
public double getDepth(SequenceRenderContext src)
getDepth in interface FeatureRenderergetDepth in interface SequenceRenderergetDepth in class FilteringRenderersrc - the SequenceRenderContext to return info forpublic FeatureHolder processMouseEvent(FeatureHolder fh, SequenceRenderContext src, MouseEvent me)
processMouseEvent in interface FeatureRendererpublic void renderFeature(Graphics2D g2, Feature f, SequenceRenderContext src)
renderFeature in interface FeatureRendererCopyright © 2020 BioJava. All rights reserved.