apollo.gui.genomemap
Class FeatureTier
java.lang.Object
apollo.gui.Tier
apollo.gui.genomemap.FeatureTier
public class FeatureTier
- extends Tier
A Tier to hold features.
|
Field Summary |
protected static org.apache.log4j.Logger |
logger
|
| Methods inherited from class apollo.gui.Tier |
getCharHigh, getCharLow, getDrawCentre, getDrawHigh, getDrawLow, getDrawSpace, getTotalSpace, setCharHeight, setDrawSpace, setup, updateUserCoordBoundaries |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
logger
protected static final org.apache.log4j.Logger logger
FeatureTier
public FeatureTier()
addFeature
public void addFeature(Drawable dsf,
Transformer transformer)
- Calls addFeature on its FeatureSet with the DrawableSeqFeature and the sort flag
set to true, this will cause the DSFs to be sorted
Since it only allows DrawableSeqFeatures to be added shouldnt the fset be a
DrawableFeatureSet instead of just a FeatureSet?
Then getFeatureSet could return a DrawableFeatureSet and we wouldnt have to cast it
There doesnt seem to be a reason at the moment to let it other features than
dsfs - am i right about this?
getLocation
public int getLocation(Drawable dsf)
size
public int size()
removeDrawable
public void removeDrawable(Drawable dsf)
getDrawables
public java.util.Vector getDrawables()
getHigh
public int getHigh()
getPixelHigh
public int getPixelHigh()
getDrawableAt
public Drawable getDrawableAt(int i)
getFeatureProperty
public FeatureProperty getFeatureProperty()
setTierLabel
public void setTierLabel(Drawable dsf)
getTierLabel
public java.lang.String getTierLabel()
- Specified by:
getTierLabel in class Tier
getColour
public java.awt.Color getColour()
isLabeled
public boolean isLabeled()
- Specified by:
isLabeled in class Tier
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getTextEnd
public int getTextEnd()
- Overrides:
getTextEnd in class Tier
setTextEnd
public void setTextEnd(int newEnd)
- Overrides:
setTextEnd in class Tier