|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.seq.FeatureFilter.ShadowOverlapsLocation
A filter that accepts all features whose shadow overlaps a specified
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
Nested Class Summary |
Field Summary |
Fields inherited from interface org.biojava.bio.seq.FeatureFilter |
all, leaf, none, top_level |
Constructor Summary | |
FeatureFilter.ShadowOverlapsLocation(Location loc)
Creates a filter that returns everything overlapping loc. |
Method Summary | |
boolean |
accept(Feature f)
Returns true if the feature overlaps this filter's location. |
boolean |
equals(java.lang.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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public FeatureFilter.ShadowOverlapsLocation(Location loc)
loc
- the location that will overlap the accepted featuresMethod Detail |
public Location getLocation()
public boolean accept(Feature f)
accept
in interface FeatureFilter
f
- the Feature to evaluate
public boolean equals(java.lang.Object o)
public int hashCode()
public boolean isProperSubset(FeatureFilter sup)
OptimizableFilter
isProperSubset
in interface OptimizableFilter
sup
- the potential super set
public boolean isDisjoint(FeatureFilter filt)
OptimizableFilter
isDisjoint
in interface OptimizableFilter
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |