|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectapollo.config.PropertyScheme
public class PropertyScheme
PropertyScheme is basically the java version of the tiers file. Changed from static/singleton to instance as we now have different instances of tiers for different data adapters Holds a list of TierProperties, TierProperties hold FeatureProperties Fires PropSchemeChangeEvent (to controller) when anything changes.
| Field Summary | |
|---|---|
protected static org.apache.log4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
PropertyScheme()
Parses tiers file returned by Config.getTiersFile(), which returns the current Style's tiers file. |
|
PropertyScheme(java.lang.String tiersFile)
Parses and creates prop scheme from tiers file passed in |
|
| Method Summary | |
|---|---|
void |
addPropSchemeChangeListener(PropSchemeChangeListener pcl)
|
void |
addTierType(TierProperty tierProp)
|
FeatureProperty |
createDefaultFeatureProperty()
|
void |
expandAllTiers(boolean state)
|
void |
firePropSchemeChangeEvent()
|
java.util.Vector |
getAllTiers()
|
java.util.Enumeration |
getAnalNames()
|
java.util.Vector |
getAnnotationFeatureProps()
Moved from Style |
java.util.Vector |
getCopyOfTiers(java.util.Vector source)
|
FeatureProperty |
getFeatureProperty(java.lang.String analysis_type)
Returns the FeatureProperty associated with analysis_type. |
FeatureProperty |
getFeatureProperty(java.lang.String analysis_type,
boolean createProperty)
Returns the FeatureProperty associated with analysis_type. |
FeatureProperty |
getLinkedFeatProp(int i)
|
int |
getLinkedFeatPropsSize()
|
TierProperty |
getLinkedTierProp(int i)
|
java.util.List |
getLinkedTierProps()
|
java.util.List |
getSyntenyLinkedFeatProps()
Retrieves all feature props that are synteny links At some point we may want to include species as a parameter and only retrieve links between specified species. |
int |
getTierInd(java.lang.String label)
|
TierProperty |
getTierProperty(java.lang.String type)
|
TierProperty |
getTierProperty(java.lang.String type,
boolean dig)
Returns the TierProperty associated with either label or analysis_type. |
java.util.Enumeration |
getTypes()
|
boolean |
isAnnotationTier(java.lang.String tier)
Returns true if this tiername contains annotations rather than results. |
boolean |
isTypeSyntenyLink(java.lang.String type)
by type we mean apollo feature type not result/analysis type |
static void |
main(java.lang.String[] Args)
|
void |
moveTier(java.lang.String fromTier,
java.lang.String toTier)
|
void |
setAllTiersVisible(boolean state)
|
void |
setDefaultFeatureProperty(FeatureProperty fp)
|
int |
size()
|
void |
write(java.io.File file)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger logger
| Constructor Detail |
|---|
public PropertyScheme()
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException
public PropertyScheme(java.lang.String tiersFile)
throws java.io.IOException,
java.io.FileNotFoundException
java.io.IOException
java.io.FileNotFoundException| Method Detail |
|---|
public void addPropSchemeChangeListener(PropSchemeChangeListener pcl)
public void firePropSchemeChangeEvent()
public int size()
public void addTierType(TierProperty tierProp)
public void expandAllTiers(boolean state)
public void setAllTiersVisible(boolean state)
public void moveTier(java.lang.String fromTier,
java.lang.String toTier)
public java.util.Enumeration getTypes()
public java.util.Enumeration getAnalNames()
public FeatureProperty getFeatureProperty(java.lang.String analysis_type,
boolean createProperty)
The FeatureProperty will be the registered property if type is known. Otherwise, if createProperty is true, it will create a new FeatureProperty object with the default values, otherwise it will return null.
type - the String type of a featurecreateProperty - - whether to create a new property if not found
java.lang.NullPointerException - if type is nullpublic FeatureProperty getFeatureProperty(java.lang.String analysis_type)
The FeatureProperty will be the registered property if type is known, and null otherwise.
type - the String type of a feature
java.lang.NullPointerException - if type is null
public TierProperty getTierProperty(java.lang.String type,
boolean dig)
The FeatureProperty will be the registered property if type is known, and null otherwise.
type - the String type of a feature
java.lang.NullPointerException - if type is nullpublic TierProperty getTierProperty(java.lang.String type)
public int getTierInd(java.lang.String label)
public java.util.Vector getAllTiers()
public java.util.Vector getCopyOfTiers(java.util.Vector source)
public void setDefaultFeatureProperty(FeatureProperty fp)
public FeatureProperty createDefaultFeatureProperty()
public java.util.List getSyntenyLinkedFeatProps()
public int getLinkedFeatPropsSize()
public FeatureProperty getLinkedFeatProp(int i)
public boolean isTypeSyntenyLink(java.lang.String type)
public java.util.List getLinkedTierProps()
public TierProperty getLinkedTierProp(int i)
public void write(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic java.util.Vector getAnnotationFeatureProps()
public boolean isAnnotationTier(java.lang.String tier)
public static void main(java.lang.String[] Args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||