public static final class FeatureFilter.ShadowOverlapsLocation extends Object implements OptimizableFilter
Location. The shadow is defined as the interval between the
minimum and maximum positions of the feature's location. For features
with contiguous locations, this filter is equivalent to
FeatureFilter.OverlapsLocation..
A typical use of this filter is in graphics code where you are rendering features with non-contiguous locations in a `blocks and connectors' style, and wish to draw the connector even when no blocks fall within the selected field of view
FeatureFilter.And, FeatureFilter.AnnotationContains, FeatureFilter.ByAncestor, FeatureFilter.ByAnnotation, FeatureFilter.ByAnnotationType, FeatureFilter.ByChild, FeatureFilter.ByClass, FeatureFilter.ByComponentName, FeatureFilter.ByDescendant, FeatureFilter.ByFeature, FeatureFilter.ByPairwiseScore, FeatureFilter.ByParent, FeatureFilter.BySequenceName, FeatureFilter.BySource, FeatureFilter.ByType, FeatureFilter.ContainedByLocation, FeatureFilter.FrameFilter, FeatureFilter.HasAnnotation, FeatureFilter.Not, FeatureFilter.OnlyChildren, FeatureFilter.OnlyDescendants, FeatureFilter.Or, FeatureFilter.OverlapsLocation, FeatureFilter.ShadowContainedByLocation, FeatureFilter.ShadowOverlapsLocation, FeatureFilter.StrandFilterall, leaf, none, top_level| Constructor and Description |
|---|
ShadowOverlapsLocation(Location loc)
Creates a filter that returns everything overlapping loc.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Feature f)
Returns true if the feature overlaps this filter's location.
|
boolean |
equals(Object o) |
Location |
getLocation() |
int |
hashCode() |
boolean |
isDisjoint(FeatureFilter filt)
Returns true if this filter is disjoint from filt - that is, there is no
Feature that is accepted by both filters.
|
boolean |
isProperSubset(FeatureFilter sup)
Returns true if this filter is a proper subset of sup - that is, for every
feature that matches this, it also matches sup.
|
String |
toString() |
public ShadowOverlapsLocation(Location loc)
loc - the location that will overlap the accepted featurespublic Location getLocation()
public boolean accept(Feature f)
accept in interface FeatureFilterf - the Feature to evaluatepublic boolean isProperSubset(FeatureFilter sup)
OptimizableFilterisProperSubset in interface OptimizableFiltersup - the potential super setpublic boolean isDisjoint(FeatureFilter filt)
OptimizableFilterisDisjoint in interface OptimizableFilterCopyright © 2020 BioJava. All rights reserved.