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, RECURSE
RENDERER
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, toString
getRenderer, setRenderer
addChangeListener, addChangeListener, generateChangeSupport, hasListeners, isUnchanging, removeChangeListener, removeChangeListener
public GlyphFeatureRenderer()
public void addFilterAndGlyph(FeatureFilter ff, Glyph g) throws ChangeVetoException
ChangeVetoException
public void removeFilterWithGlyph(FeatureFilter ff) throws ChangeVetoException
ChangeVetoException
public 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
- ChangeVetoException
NoSuchElementException
public Glyph getGlyphForFilter(FeatureFilter ff) throws NoSuchElementException
Glyph
object which is assigned to the given feature
filter.ff
- Glyph
objectNoSuchElementException
public void setDepth(double depth)
public double getDepth(SequenceRenderContext src)
getDepth
in interface FeatureRenderer
getDepth
in interface SequenceRenderer
getDepth
in class FilteringRenderer
src
- the SequenceRenderContext to return info forpublic FeatureHolder processMouseEvent(FeatureHolder fh, SequenceRenderContext src, MouseEvent me)
processMouseEvent
in interface FeatureRenderer
public void renderFeature(Graphics2D g2, Feature f, SequenceRenderContext src)
renderFeature
in interface FeatureRenderer
Copyright © 2014 BioJava. All rights reserved.