org.biojava.bio.gui.sequence
Class FeatureBlockSequenceRenderer
java.lang.Object
|
+--org.biojava.bio.gui.sequence.FeatureBlockSequenceRenderer
- public class FeatureBlockSequenceRenderer
- extends java.lang.Object
- implements SequenceRenderer, java.beans.PropertyChangeListener
Field Summary |
protected java.beans.PropertyChangeSupport |
pcs
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
pcs
protected java.beans.PropertyChangeSupport pcs
FeatureBlockSequenceRenderer
public FeatureBlockSequenceRenderer()
getFilter
public FeatureFilter getFilter()
setFilter
public void setFilter(FeatureFilter f)
getFeatureRenderer
public FeatureRenderer getFeatureRenderer()
setFeatureRenderer
public void setFeatureRenderer(FeatureRenderer r)
setDepth
public void setDepth(double d)
getDepth
public double getDepth(SequencePanel sp)
- Description copied from interface: SequenceRenderer
- Retrieve the depth of this renderer when rendering sp.
The depth may vary between sequence panels - for example based upon
sequence length.
- Specified by:
- getDepth in interface SequenceRenderer
- Tags copied from interface: SequenceRenderer
- Parameters:
sp
- the SequencePanel to return info for- Returns:
- the depth of the renderer for that sequence panel
setLabel
public void setLabel(java.lang.String label)
getLabel
public java.lang.String getLabel()
getMinimumLeader
public double getMinimumLeader(SequencePanel sp)
- Description copied from interface: SequenceRenderer
- Retrieve the minimum leading distance for this renderer when rendering sp.
The leading distance may vary between sequence panels - for example based
upon sequence length.
- Specified by:
- getMinimumLeader in interface SequenceRenderer
- Tags copied from interface: SequenceRenderer
- Parameters:
sp
- the SequencePanel to return info for- Returns:
- the leading distance of the renderer for that sequence panel
getMinimumTrailer
public double getMinimumTrailer(SequencePanel sp)
- Description copied from interface: SequenceRenderer
- Retrieve the minimum trailing distance for this renderer when rendering sp.
The trailing distance may vary between sequence panels - for example based
upon sequence length.
- Specified by:
- getMinimumTrailer in interface SequenceRenderer
- Tags copied from interface: SequenceRenderer
- Parameters:
sp
- the SequencePanel to return info for- Returns:
- the trailing distance of the renderer for that sequence panel
getFeatures
protected FeatureHolder getFeatures(SequencePanel sp)
paint
public void paint(java.awt.Graphics2D g,
SequencePanel sp,
java.awt.geom.Rectangle2D seqBox)
- Description copied from interface: SequenceRenderer
- Render a portion (possibly all) of the information for sp to g, displaying
all of the data that would fall within seqBox.
- Specified by:
- paint in interface SequenceRenderer
- Tags copied from interface: SequenceRenderer
- Parameters:
g
- the Graphics2D to render tosp
- the SequencePanel that encapsulates the information to renderseqBox
- the rectangle within which to render sequence stuff
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.String p,
java.beans.PropertyChangeListener l)
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.String p,
java.beans.PropertyChangeListener l)
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent ev)
- Specified by:
- propertyChange in interface java.beans.PropertyChangeListener