apollo.gui.genomemap
Class FeatureTier

java.lang.Object
  extended by apollo.gui.Tier
      extended by apollo.gui.genomemap.FeatureTier

public class FeatureTier
extends Tier

A Tier to hold features.


Field Summary
protected static org.apache.log4j.Logger logger
           
 
Fields inherited from class apollo.gui.Tier
MINHEIGHT
 
Constructor Summary
FeatureTier()
           
 
Method Summary
 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?
 java.awt.Color getColour()
           
 Drawable getDrawableAt(int i)
           
 java.util.Vector getDrawables()
           
 FeatureProperty getFeatureProperty()
           
 int getHigh()
           
 int getLocation(Drawable dsf)
           
 int getPixelHigh()
           
 int getTextEnd()
           
 java.lang.String getTierLabel()
           
 boolean isLabeled()
           
 void removeDrawable(Drawable dsf)
           
 void setTextEnd(int newEnd)
           
 void setTierLabel(Drawable dsf)
           
 int size()
           
 java.lang.String toString()
           
 
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
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger
Constructor Detail

FeatureTier

public FeatureTier()
Method Detail

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