public static class SubSequence.SubProjectedFeatureContext extends ReparentContext
This context is public because all contexts must be public, and not because it is usefull to you or part of the API. Don't use it directly.
The context extends TranslateFlipContext so that it can translate all features within the parent location to being from index 1 in the projection. It also transforms and reverts locations so that locations falling outside the parent location are trunchated and replaced by fuzzy locations. Lastly, features with fuzzy locations are replaced by RemoteFeature instances.
| Modifier and Type | Method and Description |
|---|---|
protected FilterUtils.FilterTransformer |
getReverter() |
protected FilterUtils.FilterTransformer |
getTransformer() |
FeatureHolder |
projectChildFeatures(Feature f,
FeatureHolder parent)
Project all features that are children of feature so that they become
children of parent.
|
Feature |
projectFeature(Feature origFeat)
Create a single projected feature using the rules of this
ProjectedFeatureHolder. |
Location |
projectLocation(Location toTransform) |
Feature |
revertFeature(Feature projFeat)
Unproject a feature.
|
addChangeListener, createFeature, createFeature, getParent, getParent, getSchema, getSequence, getUnprojectedFeatures, projectFeatures, projectFilter, removeChangeListener, removeFeature, removeFeature, revertFilterpublic Location projectLocation(Location toTransform)
public Feature projectFeature(Feature origFeat)
ReparentContextProjectedFeatureHolder.projectFeature in interface ProjectionContextprojectFeature in class ReparentContextorigFeat - the Feature to projectpublic Feature revertFeature(Feature projFeat)
ProjectionContextThis is the inverse opperation to @link projectFeature().
Note: The result of calling this method for a feature that is not projected through this context is not specified by this API, but it is reasonable to assume that bad things will happen.
revertFeature in interface ProjectionContextrevertFeature in class ReparentContextprojFeat - the Feature to un-projectpublic FeatureHolder projectChildFeatures(Feature f, FeatureHolder parent)
ProjectionContextprojectChildFeatures in interface ProjectionContextprojectChildFeatures in class ReparentContextf - the Feature to project all children ofparent - the new parent feature holderprotected FilterUtils.FilterTransformer getReverter()
getReverter in class ReparentContextprotected FilterUtils.FilterTransformer getTransformer()
getTransformer in class ReparentContextCopyright © 2020 BioJava. All rights reserved.