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
,Relation
Users
Tags
Changesets
Utilities 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.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. -
-
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(Collection<Way> ways)
Combine multiple ways into one.static Pair<SequenceCommand,Relation>
CreateMultipolygonAction. createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation)
static Pair<Relation,Relation>
CreateMultipolygonAction. createMultipolygonRelation(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(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 void
DrawAction. 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 void
DrawAction. adjustNodeDefault(Collection<Pair<Node,Node>> segs, Node n)
private static void
DrawAction. adjustNodeTwoSegments(Collection<Pair<Node,Node>> segs, Node n)
-
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<List<MultipolygonBuilder.JoinedPolygon>,List<MultipolygonBuilder.JoinedPolygon>>
MultipolygonBuilder. joinWays(Relation multipolygon)
Joins the givenmultipolygon
to a pair of outer and inner multipolygon rings.Methods in org.openstreetmap.josm.data.osm that return types with arguments of type Pair Modifier and Type Method Description List<Pair<Double,Node>>
Way. getAngles()
Returns angles of vertices.List<Pair<Node,Node>>
Way. getNodePairs(boolean sort)
Replies the orderedList
of chunks of this way.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<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 MultiMap<Pair<Node,Node>,WaySegment>
OverlappingWays. nodePairs
Bag 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 ArrayList<Pair<MapMover.ZoomerAction,Shortcut>>
MapMover. registeredShortcuts
-
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 void
AbstractUploadTask. 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 Pair Modifier and Type Method Description (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
Methods 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<Class<? extends TabPreferenceSetting>,Class<? extends SubPreferenceSetting>>
PreferenceDialog. previouslySelected
Methods in org.openstreetmap.josm.gui.preferences that return Pair Modifier and Type Method Description Pair<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 Pair Modifier and Type Field Description private List<Pair<Action,Shortcut>>
DisableShortcutsOnFocusGainedTextField. unregisteredActionShortcuts
Methods in org.openstreetmap.josm.gui.widgets that return types with arguments of type Pair Modifier and Type Method Description List<Pair<Action,Shortcut>>
DisableShortcutsOnFocusGainedComponent. getUnregisteredActionShortcuts()
Get the unregistered action shortcuts.List<Pair<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<String,InputStream>
CachedFile. findZipEntryImpl(String extension, String namepart)
static Pair<DataSet,NoteData>
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). -
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 Collection<Pair<String,Authenticator.RequestorType>>
DefaultAuthenticator. failedCredentials
-
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 Set<Pair<String,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<String,Boolean>
I18n. 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>
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 boolean
Geometry. isPolygonInsideMultiPolygon(List<? extends INode> nodes, Pair<List<MultipolygonBuilder.JoinedPolygon>,List<MultipolygonBuilder.JoinedPolygon>> outerInner, Predicate<Way> isOuterWayAMatch)
Tests if the polygon formed bynodes
is inside the multipolygonmultiPolygon
.static <T> Pair<T,T>
Pair. sort(Pair<T,T> p)
Sorts a single-typed pair soa <= b
.
-