Package | Description |
---|---|
org.openstreetmap.josm.actions.search | |
org.openstreetmap.josm.data |
Provides the classes for JOSM managed data.
|
org.openstreetmap.josm.data.conflict | |
org.openstreetmap.josm.data.osm | |
org.openstreetmap.josm.data.validation |
Provides the classes for JOSM data validation.
|
org.openstreetmap.josm.data.validation.tests | |
org.openstreetmap.josm.gui |
Provides the classes for JOSM graphical user interface.
|
org.openstreetmap.josm.gui.dialogs.validator |
Toggle dialog allowing to launch data validation and display validation results (errors and warnings).
|
org.openstreetmap.josm.gui.history |
Provides GUI classes for handling history of OSM objects.
|
org.openstreetmap.josm.gui.layer |
Provides classes for handling the different kinds of map layers.
|
org.openstreetmap.josm.gui.mappaint.mapcss |
Drawing system based on MapCSS map styles.
|
org.openstreetmap.josm.gui.tagging.presets |
Provides classes for handling tagging presets.
|
org.openstreetmap.josm.tools |
Provides the classes for various utilities and tools called from all other packages.
|
org.openstreetmap.josm.tools.template_engine |
Modifier and Type | Class and Description |
---|---|
static class |
SearchCompiler.AbstractBinaryMatch
A binary search operator which may take data parameters.
|
static class |
SearchCompiler.Always
Matches every OsmPrimitive.
|
static class |
SearchCompiler.And
Matches if both left and right expressions match.
|
private static class |
SearchCompiler.Any
Match a string in any tags (key or value), with optional regex and case insensitivity.
|
private static class |
SearchCompiler.AreaSize
Matches if the size of the area is within the given range
|
private static class |
SearchCompiler.BooleanMatch
Matches if the value of the corresponding key is ''yes'', ''true'', ''1'' or ''on''.
|
private static class |
SearchCompiler.ChangesetId
Matches objects with a changeset ID in the given range.
|
static class |
SearchCompiler.Child
Matches objects if they are children of the expression
|
private static class |
SearchCompiler.Closed
Matches ways which are closed (i.e.
|
static class |
SearchCompiler.ExactKeyValue
Matches objects with the exact given key-value pair.
|
private static class |
SearchCompiler.ExactType |
private static class |
SearchCompiler.HasRole
Matches relations with a member of the given role
|
private static class |
SearchCompiler.Id
Matches objects with ID in the given range.
|
private static class |
SearchCompiler.InArea
Matches objects within the given bounds.
|
private static class |
SearchCompiler.Incomplete
Match objects that are incomplete, where only id and type are known.
|
static class |
SearchCompiler.InDataSourceArea
Matches objects within source area ("downloaded area").
|
private static class |
SearchCompiler.InView
Matches objects within current map view.
|
private static class |
SearchCompiler.KeyValue
Matches objects with the given key-value pair.
|
static class |
SearchCompiler.Match
Base class for all search criteria.
|
private static class |
SearchCompiler.Modified
Matches all objects that have been modified, created, or undeleted
|
static class |
SearchCompiler.Never
Never matches any OsmPrimitive.
|
private static class |
SearchCompiler.New
Matches objects that are new (i.e.
|
private static class |
SearchCompiler.NodeCountRange
Matches ways with a number of nodes in given range
|
static class |
SearchCompiler.Not
Inverts the match.
|
static class |
SearchCompiler.NotOutsideDataSourceArea
Matches objects which are not outside the source area ("downloaded area").
|
private static class |
SearchCompiler.Nth
Matches the n-th object of a relation and/or the n-th node of a way.
|
static class |
SearchCompiler.Or
Matches if the left OR the right expression match.
|
static class |
SearchCompiler.Parent
Matches objects if they are parents of the expression
|
private static class |
SearchCompiler.RangeMatch
Matches objects with properties in a certain range.
|
private static class |
SearchCompiler.RoleMatch
Matches objects with the given relation role (i.e.
|
private static class |
SearchCompiler.Selected
Matches all objects currently selected
|
private static class |
SearchCompiler.TagCountRange
Matches objects with a number of tags in given range
|
static class |
SearchCompiler.TaggedMatch |
private static class |
SearchCompiler.TimestampRange
Matches objects with a timestamp in given range
|
static class |
SearchCompiler.UnaryMatch
A unary search operator which may take data parameters.
|
private static class |
SearchCompiler.Untagged
Matches objects that don't have any interesting tags (i.e.
|
private static class |
SearchCompiler.UserMatch
Matches objects last changed by the given username.
|
static class |
SearchCompiler.ValueComparison |
private static class |
SearchCompiler.Version
Matches objects with a version number in the given range.
|
private static class |
SearchCompiler.WayCountRange
Matches objects with the number of referring/contained ways in the given range
|
private static class |
SearchCompiler.WayLength
Matches if the length of a way is within the given range
|
static class |
SearchCompiler.Xor
Matches if the left OR the right expression match, but not both.
|
Modifier and Type | Field and Description |
---|---|
private Predicate<OsmPrimitive> |
SearchAction.SearchTask.predicate |
Constructor and Description |
---|
SearchTask(DataSet ds,
SearchAction.SearchSetting setting,
java.util.Collection<OsmPrimitive> selection,
Predicate<OsmPrimitive> predicate) |
Modifier and Type | Field and Description |
---|---|
private Predicate<java.util.Map.Entry<java.lang.String,Setting<?>>> |
Preferences.NO_DEFAULT_SETTINGS_ENTRY |
Modifier and Type | Class and Description |
---|---|
private static class |
ConflictCollection.FilterPredicate |
Modifier and Type | Field and Description |
---|---|
static Predicate<Tag> |
OsmPrimitive.directionalKeyPredicate
This matches all ways that have a direction
|
static Predicate<OsmPrimitive> |
OsmPrimitive.isSelectablePredicate
A predicate filtering primitives that are selectable.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.isUsablePredicate
A predicate that filters primitives that are usable.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.modifiedPredicate
A predicate filtering primitives that are modified
|
static Predicate<OsmPrimitive> |
OsmPrimitive.multipolygonPredicate
A predicate filtering multipolygon relations.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.nodePredicate
A predicate filtering nodes.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.nonDeletedCompletePredicate
A predicate filtering primitives that are not deleted and not incomplete.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.nonDeletedPhysicalPredicate
A predicate filtering primitives that are not deleted and not incomplete and that are not a relation.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.nonDeletedPredicate
A predicate filtering primitives that are not deleted.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.relationPredicate
A predicate filtering relations.
|
static Predicate<OsmPrimitive> |
OsmPrimitive.wayPredicate
A predicate filtering ways.
|
Modifier and Type | Method and Description |
---|---|
private <T extends OsmPrimitive> |
DataSet.getPrimitives(Predicate<? super OsmPrimitive> predicate) |
boolean |
Node.isConnectedTo(java.util.Collection<Node> otherNodes,
int hops,
Predicate<Node> predicate)
Tests whether
this node is connected to otherNode via at most hops nodes
matching the predicate (which may be null to consider all nodes). |
private boolean |
Node.isConnectedTo(java.util.Collection<Node> otherNodes,
int hops,
Predicate<Node> predicate,
java.util.Set<Node> visited) |
Modifier and Type | Field and Description |
---|---|
protected static Predicate<OsmPrimitive> |
Test.IN_DOWNLOADED_AREA |
Modifier and Type | Class and Description |
---|---|
static class |
MapCSSTagChecker.TagCheck |
Modifier and Type | Field and Description |
---|---|
Predicate<OsmPrimitive> |
NavigatableComponent.isSelectablePredicate |
Modifier and Type | Method and Description |
---|---|
java.util.List<OsmPrimitive> |
NavigatableComponent.getAllNearest(java.awt.Point p,
java.util.Collection<OsmPrimitive> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.
|
java.util.List<OsmPrimitive> |
NavigatableComponent.getAllNearest(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.
|
Node |
NavigatableComponent.getNearestNode(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
Convenience method to
NavigatableComponent.getNearestNode(Point, Predicate, boolean) . |
Node |
NavigatableComponent.getNearestNode(java.awt.Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected)
The *result* depends on the current map selection state IF use_selected is true.
|
Node |
NavigatableComponent.getNearestNode(java.awt.Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected,
java.util.Collection<OsmPrimitive> preferredRefs)
The *result* depends on the current map selection state IF use_selected is true
If more than one node within node.snap-distance pixels is found,
the nearest node selected is returned IF use_selected is true.
|
OsmPrimitive |
NavigatableComponent.getNearestNodeOrWay(java.awt.Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected)
The *result* depends on the current map selection state IF use_selected is true.
|
java.util.List<Node> |
NavigatableComponent.getNearestNodes(java.awt.Point p,
java.util.Collection<Node> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
java.util.List<Node> |
NavigatableComponent.getNearestNodes(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
private java.util.Map<java.lang.Double,java.util.List<Node>> |
NavigatableComponent.getNearestNodesImpl(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.
|
java.util.List<OsmPrimitive> |
NavigatableComponent.getNearestNodesOrWays(java.awt.Point p,
java.util.Collection<OsmPrimitive> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
java.util.List<OsmPrimitive> |
NavigatableComponent.getNearestNodesOrWays(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
Way |
NavigatableComponent.getNearestWay(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The *result* depends on the current map selection state.
|
java.util.List<Way> |
NavigatableComponent.getNearestWays(java.awt.Point p,
java.util.Collection<Way> ignore,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
java.util.List<Way> |
NavigatableComponent.getNearestWays(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state,
neither does the result *order*.
|
WaySegment |
NavigatableComponent.getNearestWaySegment(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
Convenience method to
NavigatableComponent.getNearestWaySegment(Point, Predicate, boolean) . |
WaySegment |
NavigatableComponent.getNearestWaySegment(java.awt.Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected)
The *result* depends on the current map selection state IF use_selected is true.
|
WaySegment |
NavigatableComponent.getNearestWaySegment(java.awt.Point p,
Predicate<OsmPrimitive> predicate,
boolean useSelected,
java.util.Collection<OsmPrimitive> preferredRefs)
The *result* depends on the current map selection state IF use_selected is true.
|
java.util.List<WaySegment> |
NavigatableComponent.getNearestWaySegments(java.awt.Point p,
java.util.Collection<WaySegment> ignore,
Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.
|
java.util.List<WaySegment> |
NavigatableComponent.getNearestWaySegments(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.
|
private java.util.Map<java.lang.Double,java.util.List<WaySegment>> |
NavigatableComponent.getNearestWaySegmentsImpl(java.awt.Point p,
Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.
|
Modifier and Type | Method and Description |
---|---|
private void |
ValidatorTreePanel.walkAndSelectRelatedErrors(javax.swing.tree.TreePath p,
Predicate<OsmPrimitive> isRelevant,
java.util.Collection<javax.swing.tree.TreePath> paths) |
Modifier and Type | Field and Description |
---|---|
private Predicate<PrimitiveId> |
HistoryBrowserDialogManager.notNewPredicate |
private Predicate<PrimitiveId> |
HistoryBrowserDialogManager.unloadedHistoryPredicate |
Modifier and Type | Method and Description |
---|---|
static LayerPositionStrategy |
LayerPositionStrategy.afterLast(Predicate<Layer> what)
Creates a strategy that places the layer after the last layer of a given kind or at the beginning of the list if no such layer exists.
|
static LayerPositionStrategy |
LayerPositionStrategy.inFrontOfFirst(Predicate<Layer> what)
Gets a
LayerPositionStrategy that inserts the layer in front of the first layer that matches a condition. |
Modifier and Type | Field and Description |
---|---|
Predicate<java.lang.String> |
Condition.KeyCondition.containsPattern
A predicate used to match a the regexp against the key.
|
private static Predicate<OsmPrimitive> |
Condition.PseudoClasses.IN_DOWNLOADED_AREA |
Modifier and Type | Class and Description |
---|---|
class |
TaggingPreset
This class read encapsulate one tagging preset.
|
class |
TaggingPresetMenu |
class |
TaggingPresetSeparator
Class used to represent a
JSeparator inside tagging preset menu. |
Modifier and Type | Field and Description |
---|---|
private Predicate<? super S> |
SubclassFilteredCollection.predicate |
Modifier and Type | Method and Description |
---|---|
static <T> Predicate<T> |
Predicates.alwaysFalse()
Creates a predicate that returns false every time.
|
static <T> Predicate<T> |
Predicates.alwaysTrue()
Creates a predicate that returns true every time.
|
static <T> Predicate<T> |
Predicates.equalTo(T ref)
Returns a
Predicate executing Objects.equals(java.lang.Object, java.lang.Object) . |
static Predicate<OsmPrimitive> |
Predicates.hasKey(java.lang.String key)
Returns a
Predicate executing AbstractPrimitive.hasKey(String) . |
static Predicate<OsmPrimitive> |
Predicates.hasTag(java.lang.String key,
java.lang.String... values)
Returns a
Predicate executing AbstractPrimitive.hasTag(String, String...) . |
static <T> Predicate<T> |
Predicates.inCollection(java.util.Collection<? extends T> target)
Returns a
Predicate executing Collection.contains(Object) . |
static <T> Predicate<T> |
Predicates.isInstanceOf(java.lang.Class<? extends T> clazz)
Creates a new predicate that checks if the object is of a given class.
|
static <T> Predicate<T> |
Predicates.isNull()
Returns a
Predicate testing whether objects are null . |
static <T> Predicate<T> |
Predicates.isOfClass(java.lang.Class<? extends T> clazz)
Creates a new predicate that checks if elements are exactly of that class.
|
static <T> Predicate<T> |
Predicates.not(Predicate<T> predicate)
Returns the negation of
predicate . |
static Predicate<java.lang.String> |
Predicates.stringContains(java.lang.String pattern)
Returns a
Predicate executing String.contains(CharSequence) . |
static Predicate<java.lang.String> |
Predicates.stringContainsPattern(java.util.regex.Pattern pattern)
|
static Predicate<java.lang.String> |
Predicates.stringMatchesPattern(java.util.regex.Pattern pattern)
|
Modifier and Type | Method and Description |
---|---|
static <T> boolean |
Utils.exists(java.lang.Iterable<? extends T> collection,
Predicate<? super T> predicate)
Tests whether
predicate applies to at least one element from collection . |
static <T> java.util.Collection<T> |
Utils.filter(java.util.Collection<? extends T> collection,
Predicate<? super T> predicate)
Creates a new
FilteredCollection . |
static <T> T |
Utils.find(java.lang.Iterable<? extends T> collection,
Predicate<? super T> predicate)
Finds the first item in the iterable for which the predicate matches.
|
static <T> boolean |
Utils.forAll(java.lang.Iterable<? extends T> collection,
Predicate<? super T> predicate)
Tests whether
predicate applies to all elements from collection . |
static <T> int |
Utils.indexOf(java.lang.Iterable<? extends T> collection,
Predicate<? super T> predicate)
Find the index of the first item that matches the predicate.
|
static boolean |
Geometry.isNodeInsideMultiPolygon(Node node,
Relation multiPolygon,
Predicate<Way> isOuterWayAMatch)
Tests if the
node is inside the multipolygon multiPolygon . |
static boolean |
Geometry.isPolygonInsideMultiPolygon(java.util.List<Node> nodes,
Relation multiPolygon,
Predicate<Way> isOuterWayAMatch)
Tests if the polygon formed by
nodes is inside the multipolygon multiPolygon . |
static <T> Predicate<T> |
Predicates.not(Predicate<T> predicate)
Returns the negation of
predicate . |
Constructor and Description |
---|
FilteredCollection(java.util.Collection<? extends T> collection,
Predicate<? super T> predicate)
Constructs a new
FilteredCollection . |
SubclassFilteredCollection(java.util.Collection<? extends S> collection,
Predicate<? super S> predicate)
Constructs a new
SubclassFilteredCollection . |
Modifier and Type | Class and Description |
---|---|
private static class |
ContextSwitchTemplate.AndSet |
private static class |
ContextSwitchTemplate.ChildSet |
private static class |
ContextSwitchTemplate.ContextProvider |
private static class |
ContextSwitchTemplate.OrSet |
private static class |
ContextSwitchTemplate.ParentSet |