Uses of Class
org.openstreetmap.josm.tools.Pair
-
Packages that use Pair Package Description org.openstreetmap.josm.actions Provides the classes for JOSM user actions.org.openstreetmap.josm.actions.mapmode Provides the classes for JOSMmap modes.org.openstreetmap.josm.data.gpx Provides the classes for JOSMGPX data(points, tracks, routes).org.openstreetmap.josm.data.osm Provides the classes for OSM data:Primitives:Node,Way,RelationUsersTagsChangesetsUtilities classesorg.openstreetmap.josm.data.projection.proj Provides the classes for JOSM map projections implementations.org.openstreetmap.josm.data.validation.tests Provides the classes for JOSM data validation tests.org.openstreetmap.josm.gui Provides the classes for JOSM graphical user interface.org.openstreetmap.josm.gui.dialogs 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 elseorg.openstreetmap.josm.gui.history Provides GUI classes for handling history of OSM objects.org.openstreetmap.josm.gui.io Provides GUI classes for handling input/output operations (download, upload, save).org.openstreetmap.josm.gui.layer.geoimage Provides classes for handling layers displaying geotagged pictures.org.openstreetmap.josm.gui.mappaint 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.org.openstreetmap.josm.gui.preferences Provides generic classes for handling JOSM preferences.org.openstreetmap.josm.gui.widgets Provides GUI widgets customized for JOSM needs.org.openstreetmap.josm.io Provides the classes for JOSM input/output support.org.openstreetmap.josm.io.auth Provides the classes for authentication I/O.org.openstreetmap.josm.io.remotecontrol.handler Provides the classes for remote control handlers (features exposed to the browser).org.openstreetmap.josm.tools Provides the classes for various utilities and tools called from all other packages.org.openstreetmap.josm.tools.bugreport 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 Pair Modifier and Type Method Description static Pair<Way,Command>CombineWayAction. combineWaysWorker(java.util.Collection<Way> ways)Combine multiple ways into one.static Pair<SequenceCommand,Relation>CreateMultipolygonAction. createMultipolygonCommand(java.util.Collection<Way> selectedWays, Relation selectedMultipolygonRelation)static Pair<Relation,Relation>CreateMultipolygonAction. createMultipolygonRelation(java.util.Collection<Way> selectedWays, boolean showNotif)private static Pair<Relation,Relation>CreateMultipolygonAction. mergeRelationsMembers(Relation old, Relation calculated)Merge members of multipolygon relation.static Pair<Relation,Relation>CreateMultipolygonAction. updateMultipolygonRelation(java.util.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 Pair Modifier and Type Method Description private static voidDrawAction. adjustNode(java.util.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(java.util.Collection<Pair<Node,Node>> segs, Node n)private static voidDrawAction. adjustNodeTwoSegments(java.util.Collection<Pair<Node,Node>> segs, Node n)private static booleanImproveWayAccuracyHelper. ensureCandidateIsNotBehindSegments(java.lang.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 Pair Modifier and Type Method Description Pair<GpxTimezone,GpxTimeOffset>GpxTimeOffset. splitOutTimezone()Split out timezone and offset. -
Uses of Pair in org.openstreetmap.josm.data.osm
Methods in org.openstreetmap.josm.data.osm that return Pair Modifier and Type Method Description static Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>MultipolygonBuilder. joinWays(java.util.Map<IRelation<?>,Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>> cache, Relation multipolygon)Joins the givenmultipolygonto a pair of outer and inner multipolygon rings.static Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>MultipolygonBuilder. joinWays(Relation multipolygon)Joins the givenmultipolygonto a pair of outer and inner multipolygon rings.private static Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.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 Pair Modifier and Type Method Description java.util.List<Pair<java.lang.Double,Node>>Way. getAngles()Returns angles of vertices.java.util.List<Pair<Node,Node>>Way. getNodePairs(boolean sort)Replies the orderedListof chunks of this way.Method parameters in org.openstreetmap.josm.data.osm with type arguments of type Pair Modifier and Type Method Description static Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>MultipolygonBuilder. joinWays(java.util.Map<IRelation<?>,Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.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 Constructor Description NodePair(Pair<Node,Node> pair)Constructs a newNodePair. -
Uses of Pair in org.openstreetmap.josm.data.projection.proj
Methods in org.openstreetmap.josm.data.projection.proj that return Pair Modifier and Type Method Description static Pair<java.lang.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 Pair Modifier and Type Field Description private static java.util.Map<IRelation<?>,Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.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 Pair Modifier and Type Field Description private java.util.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 Pair Modifier and Type Field Description private java.util.List<Pair<Relation,java.lang.Boolean>>DeleteFromRelationConfirmationDialog.RelationDeleteModel. dataMethod parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type Pair Modifier and Type Method Description voidDeleteFromRelationConfirmationDialog.RelationDeleteModel. populate(java.util.Collection<Pair<Relation,java.lang.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 Modifier and Type Method Description protected Pair<LatLon,LatLon>CoordinateInfoViewer.Updater. getCoordinates() -
Uses of Pair in org.openstreetmap.josm.gui.io
Methods in org.openstreetmap.josm.gui.io with parameters of type Pair Modifier and Type Method Description protected voidAbstractUploadTask. handleUploadPreconditionFailedConflict(OsmApiException e, Pair<OsmPrimitive,java.util.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 Pair Modifier and Type Method Description (package private) static Pair<GpxTimezone,GpxTimeOffset>CorrelateGpxWithImages. autoGuess(java.util.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 Pair Modifier and Type Field Description java.util.Map<IRelation<?>,Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>>>Environment. mpJoinedAreaCacheCache for multipolygon areas as calculated byMultipolygonBuilder.joinWays(Relation), can benullMethods in org.openstreetmap.josm.gui.mappaint that return Pair Modifier and Type Method Description Pair<StyleElementList,Range>ElemStyles. 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.Pair<StyleElementList,Range>ElemStyles. getStyleCacheWithRange(IPrimitive osm, double scale, NavigatableComponent nc)Create the list of styles and its valid scale range for one primitive.Pair<T,Range>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.Pair<StyleElementList,Range>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 Pair Modifier and Type Field Description private static Pair<java.lang.Class<? extends TabPreferenceSetting>,java.lang.Class<? extends SubPreferenceSetting>>PreferenceDialog. previouslySelectedMethods in org.openstreetmap.josm.gui.preferences that return Pair Modifier and Type Method Description Pair<java.lang.Class<? extends TabPreferenceSetting>,java.lang.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 Pair Modifier and Type Field Description private java.util.List<Pair<javax.swing.Action,Shortcut>>DisableShortcutsOnFocusGainedTextField. unregisteredActionShortcutsMethods in org.openstreetmap.josm.gui.widgets that return types with arguments of type Pair Modifier and Type Method Description java.util.List<Pair<javax.swing.Action,Shortcut>>DisableShortcutsOnFocusGainedComponent. getUnregisteredActionShortcuts()Get the unregistered action shortcuts.java.util.List<Pair<javax.swing.Action,Shortcut>>DisableShortcutsOnFocusGainedTextField. getUnregisteredActionShortcuts() -
Uses of Pair in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io that return Pair Modifier and Type Method Description private Pair<java.lang.String,Pair<java.util.zip.ZipFile,java.io.InputStream>>CachedFile. findZipEntryImpl(java.lang.String extension, java.lang.String namepart)Pair<java.util.zip.ZipFile,java.io.InputStream>CachedFile. findZipEntryInputStream(java.lang.String extension, java.lang.String namepart)LikeCachedFile.findZipEntryPath(java.lang.String, java.lang.String), but returns the corresponding InputStream.static Pair<DataSet,NoteData>OsmChangeReader. parseDataSetAndNotes(java.io.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 Pair Modifier and Type Method Description private Pair<java.lang.String,Pair<java.util.zip.ZipFile,java.io.InputStream>>CachedFile. findZipEntryImpl(java.lang.String extension, java.lang.String namepart) -
Uses of Pair in org.openstreetmap.josm.io.auth
Fields in org.openstreetmap.josm.io.auth with type parameters of type Pair Modifier and Type Field Description private java.util.Collection<Pair<java.lang.String,java.net.Authenticator.RequestorType>>DefaultAuthenticator. failedCredentialsprotected java.util.Map<Pair<java.net.Authenticator.RequestorType,java.lang.String>,java.net.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 Modifier and Type Field Description private java.util.Set<Pair<java.lang.String,java.lang.String>>RequestHandler.PermissionCache. allowed -
Uses of Pair in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools that return Pair Modifier and Type Method Description static <U,V>
Pair<U,V>Pair. create(U u, V v)Convenient constructor methodstatic Pair<java.lang.String,java.lang.Boolean>I18n. getLocalizedLanguageName(java.lang.String language)Returns the localized name of the given language and optional script.static Pair<OsmPrimitive,java.util.Collection<OsmPrimitive>>ExceptionUtil. parsePreconditionFailed(java.lang.String msg)Parses a precondition failure response from the server and attempts to get more information about itstatic Pair<Geometry.PolygonIntersection,java.awt.geom.Area>Geometry. polygonIntersectionResult(java.awt.geom.Area a1, java.awt.geom.Area a2, double eps)Calculate intersection area and kind of intersection between two polygons.static <T> Pair<T,T>Pair. sort(Pair<T,T> p)Sorts a single-typed pair soa <= b.Methods in org.openstreetmap.josm.tools with parameters of type Pair Modifier and Type Method Description static booleanGeometry. isPolygonInsideMultiPolygon(java.util.List<? extends INode> nodes, Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.List<MultipolygonBuilder.JoinedPolygon>> outerInner, java.util.function.Predicate<Way> isOuterWayAMatch)Tests if the polygon formed bynodesis inside the multipolygonmultiPolygon.static <T> Pair<T,T>Pair. sort(Pair<T,T> p)Sorts a single-typed pair soa <= b.Method parameters in org.openstreetmap.josm.tools with type arguments of type Pair Modifier and Type Method Description static java.util.List<IPrimitive>Geometry. filterInsideMultipolygon(java.util.Collection<IPrimitive> primitives, Relation multiPolygon, java.util.Map<IRelation<?>,Pair<java.util.List<MultipolygonBuilder.JoinedPolygon>,java.util.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 Pair Modifier and Type Field Description private static java.util.Deque<Pair<java.time.Instant,java.lang.Throwable>>BugReport. SUPPRESSED_EXCEPTIONSThe list of suppressed exceptions, Pair<time reported, exception>
-