Uses of Class
org.openstreetmap.josm.tools.Pair
Packages that use Pair
Package
Description
Provides the classes for JOSM user actions.
Provides the classes for JOSM
map modes.Provides the classes for JOSM
GPX data (points, tracks, routes).Provides the classes for OSM data:
Primitives:
Node,
Way,
Relation
Users
Tags
Changesets
Utilities classes
Provides the classes for JOSM map projections implementations.
Provides the classes for JOSM data validation tests.
Provides the classes for JOSM graphical user interface.
Provides three kinds of dialogs:
Toggle dialogs on the right side of the GUI, that can be turned on, off, attached or detached from the GUI
Changeset dialog based on a standalone implementation, dedicated to OSM changesets management
Extended dialogs for everything else
Provides GUI classes for handling history of OSM objects.
Provides GUI classes for handling input/output operations (download, upload, save).
Provides classes for handling layers displaying geotagged pictures.
Drawing system allowing to display and render OSM map data in a user-friendly and customizable way, through map styles.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time.
Two implementations are provided: XML: this was the system used by default JOSM map style for a long time.
Provides generic classes for handling JOSM preferences.
Provides GUI widgets customized for JOSM needs.
Provides the classes for JOSM input/output support.
Provides the classes for authentication I/O.
Provides the classes for remote control handlers (features exposed to the browser).
Provides the classes for various utilities and tools called from all other packages.
Provides core classes for the bug report system, allowing to save technical information used later in tickets on issue tracker.
-
Uses of Pair in org.openstreetmap.josm.actions
Methods in org.openstreetmap.josm.actions that return PairModifier and TypeMethodDescriptionCombineWayAction.combineWaysWorker(Collection<Way> ways) Combine multiple ways into one.static Pair<SequenceCommand,Relation> CreateMultipolygonAction.createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) CreateMultipolygonAction.createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif) CreateMultipolygonAction.mergeRelationsMembers(Relation old, Relation calculated) Merge members of multipolygon relation.CreateMultipolygonAction.updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) -
Uses of Pair in org.openstreetmap.josm.actions.mapmode
Method parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type PairModifier and TypeMethodDescriptionprivate static voidDrawAction.adjustNode(Collection<Pair<Node, Node>> segs, Node n) Adjusts the position of a node to lie on a segment (or a segment intersection).private static voidDrawAction.adjustNodeDefault(Collection<Pair<Node, Node>> segs, Node n) private static voidDrawAction.adjustNodeTwoSegments(Collection<Pair<Node, Node>> segs, Node n) private static booleanImproveWayAccuracyHelper.ensureCandidateIsNotBehindSegments(Iterable<Pair<Node, Node>> wpps, Node n, EastNorth pEN, EastNorth nEN) Check to see if a candidate node is underneath a way segment -
Uses of Pair in org.openstreetmap.josm.data.gpx
Methods in org.openstreetmap.josm.data.gpx that return PairModifier and TypeMethodDescriptionGpxTimeOffset.splitOutTimezone()Split out timezone and offset. -
Uses of Pair in org.openstreetmap.josm.data.osm
Methods in org.openstreetmap.josm.data.osm that return PairModifier and TypeMethodDescriptionMultipolygonBuilder.joinWays(Map<IRelation<?>, Pair<List<MultipolygonBuilder.JoinedPolygon>, List<MultipolygonBuilder.JoinedPolygon>>> cache, Relation multipolygon) Joins the givenmultipolygonto a pair of outer and inner multipolygon rings.Joins the givenmultipolygonto a pair of outer and inner multipolygon rings.private static Pair<List<MultipolygonBuilder.JoinedPolygon>,List<MultipolygonBuilder.JoinedPolygon>> MultipolygonBuilder.joinWaysActual(IRelation<?> multipolygon) Perform the actual join ways calculationMethods in org.openstreetmap.josm.data.osm that return types with arguments of type PairModifier and TypeMethodDescriptionWay.getAngles()Returns angles of vertices.Way.getNodePairs(boolean sort) Replies the orderedListof chunks of this way.Method parameters in org.openstreetmap.josm.data.osm with type arguments of type PairModifier and TypeMethodDescriptionMultipolygonBuilder.joinWays(Map<IRelation<?>, Pair<List<MultipolygonBuilder.JoinedPolygon>, List<MultipolygonBuilder.JoinedPolygon>>> cache, Relation multipolygon) Joins the givenmultipolygonto a pair of outer and inner multipolygon rings.Constructors in org.openstreetmap.josm.data.osm with parameters of type Pair -
Uses of Pair in org.openstreetmap.josm.data.projection.proj
Methods in org.openstreetmap.josm.data.projection.proj that return PairModifier and TypeMethodDescriptionstatic Pair<Integer,TransverseMercator.Hemisphere> TransverseMercator.locateUtmZone(LatLon ll) Determines the UTM zone of a given lat/lon. -
Uses of Pair in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests with type parameters of type PairModifier and TypeFieldDescriptionprivate static final Map<IRelation<?>,Pair<List<MultipolygonBuilder.JoinedPolygon>, List<MultipolygonBuilder.JoinedPolygon>>> MapCSSTagChecker.mpJoinedAreaCacheprivate MultiMap<Pair<Node,Node>, WaySegment> OverlappingWays.nodePairsBag of all way segments -
Uses of Pair in org.openstreetmap.josm.gui
Fields in org.openstreetmap.josm.gui with type parameters of type PairModifier and TypeFieldDescriptionprivate final ArrayList<Pair<MapMover.ZoomerAction,Shortcut>> MapMover.registeredShortcuts -
Uses of Pair in org.openstreetmap.josm.gui.dialogs
Fields in org.openstreetmap.josm.gui.dialogs with type parameters of type PairMethod parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type PairModifier and TypeMethodDescriptionvoidDeleteFromRelationConfirmationDialog.RelationDeleteModel.populate(Collection<Pair<Relation, Boolean>> references) Sets the data that should be displayed in the list. -
Uses of Pair in org.openstreetmap.josm.gui.history
Methods in org.openstreetmap.josm.gui.history that return Pair -
Uses of Pair in org.openstreetmap.josm.gui.io
Methods in org.openstreetmap.josm.gui.io with parameters of type PairModifier and TypeMethodDescriptionprotected voidAbstractUploadTask.handleUploadPreconditionFailedConflict(OsmApiException e, Pair<OsmPrimitive, Collection<OsmPrimitive>> conflict) Handles the case where deleting a node failed because it is still in use in a non-deleted way on the server. -
Uses of Pair in org.openstreetmap.josm.gui.layer.geoimage
Methods in org.openstreetmap.josm.gui.layer.geoimage that return PairModifier and TypeMethodDescription(package private) static Pair<GpxTimezone,GpxTimeOffset> CorrelateGpxWithImages.autoGuess(List<ImageEntry> imgs, GpxData gpx) Tries to auto-guess the timezone and offset. -
Uses of Pair in org.openstreetmap.josm.gui.mappaint
Fields in org.openstreetmap.josm.gui.mappaint with type parameters of type PairModifier and TypeFieldDescriptionMap<IRelation<?>,Pair<List<MultipolygonBuilder.JoinedPolygon>, List<MultipolygonBuilder.JoinedPolygon>>> Environment.mpJoinedAreaCacheCache for multipolygon areas as calculated byMultipolygonBuilder.joinWays(Relation), can benullMethods in org.openstreetmap.josm.gui.mappaint that return PairModifier and TypeMethodDescriptionElemStyles.generateStyles(IPrimitive osm, double scale, boolean pretendWayIsClosed) Create the list of styles and its valid scale range for one primitive.private Pair<StyleElementList,Range> ElemStyles.getImpl(IPrimitive osm, double scale, NavigatableComponent nc) Create the list of styles and its valid scale range for one primitive.ElemStyles.getStyleCacheWithRange(IPrimitive osm, double scale, NavigatableComponent nc) Create the list of styles and its valid scale range for one primitive.DividedScale.getWithRange(double scale) Looks up the data object for a certain scale value and additionally returns the scale range where the object is valid.StyleCache.getWithRange(double scale, boolean selected) Get the style for a specific style. -
Uses of Pair in org.openstreetmap.josm.gui.preferences
Fields in org.openstreetmap.josm.gui.preferences declared as PairModifier and TypeFieldDescriptionprivate static Pair<Class<? extends TabPreferenceSetting>,Class<? extends SubPreferenceSetting>> PreferenceDialog.previouslySelectedMethods in org.openstreetmap.josm.gui.preferences that return PairModifier and TypeMethodDescriptionPair<Class<? extends TabPreferenceSetting>,Class<? extends SubPreferenceSetting>> PreferenceTabbedPane.getSelectedTab()Returns the currently selected preference and sub preference setting -
Uses of Pair in org.openstreetmap.josm.gui.widgets
Fields in org.openstreetmap.josm.gui.widgets with type parameters of type PairModifier and TypeFieldDescriptionDisableShortcutsOnFocusGainedTextField.unregisteredActionShortcutsMethods in org.openstreetmap.josm.gui.widgets that return types with arguments of type PairModifier and TypeMethodDescriptionDisableShortcutsOnFocusGainedComponent.getUnregisteredActionShortcuts()Get the unregistered action shortcuts.DisableShortcutsOnFocusGainedTextField.getUnregisteredActionShortcuts() -
Uses of Pair in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io that return PairModifier and TypeMethodDescriptionprivate Pair<String,Pair<ZipFile, InputStream>> CachedFile.findZipEntryImpl(String extension, String namepart) CachedFile.findZipEntryInputStream(String extension, String namepart) LikeCachedFile.findZipEntryPath(java.lang.String, java.lang.String), but returns the corresponding InputStream.OsmChangeReader.parseDataSetAndNotes(InputStream source, ProgressMonitor progressMonitor) Parse the given input source and return the dataset and notes, if any (OsmAnd extends the osmChange format by adding notes).Methods in org.openstreetmap.josm.io that return types with arguments of type PairModifier and TypeMethodDescriptionprivate Pair<String,Pair<ZipFile, InputStream>> CachedFile.findZipEntryImpl(String extension, String namepart) -
Uses of Pair in org.openstreetmap.josm.io.auth
Fields in org.openstreetmap.josm.io.auth with type parameters of type PairModifier and TypeFieldDescriptionprivate final Collection<Pair<String,Authenticator.RequestorType>> DefaultAuthenticator.failedCredentialsprotected Map<Pair<Authenticator.RequestorType,String>, PasswordAuthentication> AbstractCredentialsAgent.memoryCredentialsCache -
Uses of Pair in org.openstreetmap.josm.io.remotecontrol.handler
Fields in org.openstreetmap.josm.io.remotecontrol.handler with type parameters of type Pair -
Uses of Pair in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools that return PairModifier and TypeMethodDescriptionstatic <U,V> Pair<U, V> Pair.create(U u, V v) Convenient constructor methodI18n.getLocalizedLanguageName(String language) Returns the localized name of the given language and optional script.static Pair<OsmPrimitive,Collection<OsmPrimitive>> ExceptionUtil.parsePreconditionFailed(String msg) Parses a precondition failure response from the server and attempts to get more information about itstatic Pair<Geometry.PolygonIntersection,Area> Geometry.polygonIntersectionResult(Area a1, Area a2, double eps) Calculate intersection area and kind of intersection between two polygons.static <T> Pair<T,T> Sorts a single-typed pair soa <= b.Methods in org.openstreetmap.josm.tools with parameters of type PairModifier and TypeMethodDescriptionstatic booleanGeometry.isPolygonInsideMultiPolygon(List<? extends INode> nodes, Pair<List<MultipolygonBuilder.JoinedPolygon>, List<MultipolygonBuilder.JoinedPolygon>> outerInner, Predicate<Way> isOuterWayAMatch) Tests if the polygon formed bynodesis inside the multipolygonmultiPolygon.static <T> Pair<T,T> Sorts a single-typed pair soa <= b.Method parameters in org.openstreetmap.josm.tools with type arguments of type PairModifier and TypeMethodDescriptionstatic List<IPrimitive>Geometry.filterInsideMultipolygon(Collection<IPrimitive> primitives, Relation multiPolygon, Map<IRelation<?>, Pair<List<MultipolygonBuilder.JoinedPolygon>, List<MultipolygonBuilder.JoinedPolygon>>> cache) Find all primitives in the given collection which are inside the given multipolygon. -
Uses of Pair in org.openstreetmap.josm.tools.bugreport
Fields in org.openstreetmap.josm.tools.bugreport with type parameters of type PairModifier and TypeFieldDescriptionBugReport.SUPPRESSED_EXCEPTIONSThe list of suppressed exceptions, Pair<time reported, exception>