org.openstreetmap.josm.actions.search
Class SearchCompiler.InArea

java.lang.Object
  extended by org.openstreetmap.josm.actions.search.SearchCompiler.Match
      extended by org.openstreetmap.josm.actions.search.SearchCompiler.InArea
Direct Known Subclasses:
SearchCompiler.InDataSourceArea, SearchCompiler.InView
Enclosing class:
SearchCompiler

private abstract static class SearchCompiler.InArea
extends SearchCompiler.Match

Matches objects within the given bounds.


Field Summary
protected  boolean all
           
protected  Bounds bounds
           
 
Constructor Summary
SearchCompiler.InArea(boolean all)
           
 
Method Summary
protected abstract  Bounds getBounds()
           
 boolean match(OsmPrimitive osm)
           
 
Methods inherited from class org.openstreetmap.josm.actions.search.SearchCompiler.Match
existsMatch, forallMatch
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

all

protected final boolean all

bounds

protected final Bounds bounds
Constructor Detail

SearchCompiler.InArea

public SearchCompiler.InArea(boolean all)
Parameters:
all - if true, all way nodes or relation members have to be within source area;if false, one suffices.
Method Detail

getBounds

protected abstract Bounds getBounds()

match

public boolean match(OsmPrimitive osm)
Specified by:
match in class SearchCompiler.Match


JOSM