Uses of Class
org.openstreetmap.josm.data.osm.Relation
Packages that use Relation
Package
Description
Provides the classes for JOSM user actions.
Provides the classes for JOSM
map modes.Provides the classes for JOSM actions that work with
relations.Provides the classes for JOSM
upload action.Provides the classes for JOSM commands allowing to modify an OSM data set.
Provides commands for handling conflicts.
Provides the classes for JOSM managed data.
Provides the classes for JOSM data correction.
Provides the classes for OSM data:
Primitives:
Node,
Way,
Relation
Users
Tags
Changesets
Utilities classes
Provides the classes for OSM dataset events.
Provides the classes for OSM primitives
history (edition revisions).Provides the classes for performing actions on OSM primitives using Visitor design pattern.
Provides the classes for painting (rendering) OSM primitives on the map.
Provides the classes for painting and caching
Multipolygon relations.Provides the classes for JOSM data validation.
Provides the classes for JOSM data validation tests.
Provides utilities classes for JOSM data validation.
Provides the classes for displaying conflicts in OSM primitive relation memberships.
Provides the classes for resolving conflicts between OSM tags.
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
Toggle dialog allowing to display/edit tags and relation memberships of currently selected OSM objects.
Toggle dialog allowing to display currently loaded relations and perform operations on them.
Provides the classes for relation editor actions.
Provides the classes for sorting relations.
Provides GUI classes for handling history of OSM objects.
Provides classes for handling the different kinds of map layers.
Provides classes for handling validation layer.
Provides GUI classes for handling autocompletion of tags.
Provides GUI utility classes.
Provides the classes for JOSM input/output support.
Provides the classes for various utilities and tools called from all other packages.
-
Uses of Relation in org.openstreetmap.josm.actions
Fields in org.openstreetmap.josm.actions declared as RelationModifier and TypeFieldDescriptionprivate final RelationCreateMultipolygonAction.CreateUpdateMultipolygonTask.multipolygonRelationfinal RelationJoinAreasAction.RelationRole.relFields in org.openstreetmap.josm.actions with type parameters of type RelationMethods in org.openstreetmap.josm.actions that return RelationModifier and TypeMethodDescriptionprivate static RelationCreateMultipolygonAction.getSelectedMultipolygonRelation(Collection<Way> selectedWays, Collection<Relation> selectedRelations) Methods in org.openstreetmap.josm.actions that return types with arguments of type RelationModifier and TypeMethodDescriptionUnGlueAction.calcAffectedRelations(Collection<Way> ways) static Pair<SequenceCommand,Relation> CreateMultipolygonAction.createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) CreateMultipolygonAction.createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif) CreateMultipolygonAction.createMultipolygonRelation(Collection<Way> selectedWays, boolean showNotif) CreateMultipolygonAction.mergeRelationsMembers(Relation old, Relation calculated) Merge members of multipolygon relation.CreateMultipolygonAction.mergeRelationsMembers(Relation old, Relation calculated) Merge members of multipolygon relation.CreateMultipolygonAction.updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) CreateMultipolygonAction.updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) Methods in org.openstreetmap.josm.actions with parameters of type RelationModifier and TypeMethodDescriptionstatic Pair<SequenceCommand,Relation> CreateMultipolygonAction.createMultipolygonCommand(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) private static booleanUnGlueAction.isRelationAffected(Relation r, Set<Node> affectedNodes, Collection<Way> ways) CreateMultipolygonAction.mergeRelationsMembers(Relation old, Relation calculated) Merge members of multipolygon relation.CreateMultipolygonAction.removeTagsFromWaysIfNeeded(Relation relation) This method removes tags/value pairs from inner and outer ways and put them on relation if necessary.CreateMultipolygonAction.updateMultipolygonRelation(Collection<Way> selectedWays, Relation selectedMultipolygonRelation) voidMethod parameters in org.openstreetmap.josm.actions with type arguments of type RelationModifier and TypeMethodDescriptionstatic booleanDeleteAction.confirmRelationDeletion(Collection<Relation> relations) Confirm before deleting a relation, as it is a common newbie error.private voidJoinAreasAction.fixRelations(List<JoinAreasAction.RelationRole> rels, Way outer, JoinAreasAction.RelationRole ownMultipol, Set<Relation> relationsToDelete) Adds the previously removed relations again to the outer way.Constructors in org.openstreetmap.josm.actions with parameters of type RelationModifierConstructorDescriptionprivateCreateUpdateMultipolygonTask(Collection<Way> selectedWays, Relation multipolygonRelation) (package private)RelationRole(Relation rel, String role) -
Uses of Relation in org.openstreetmap.josm.actions.mapmode
Methods in org.openstreetmap.josm.actions.mapmode with parameters of type RelationModifier and TypeMethodDescriptionstatic voidDeleteAction.deleteRelation(OsmDataLayer layer, Relation toDelete) Deletes the relation in the context of the given layer.Method parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type RelationModifier and TypeMethodDescriptionstatic voidDeleteAction.deleteRelations(OsmDataLayer layer, Collection<Relation> toDelete) Deletes the relations in the context of the given layer. -
Uses of Relation in org.openstreetmap.josm.actions.relation
Fields in org.openstreetmap.josm.actions.relation declared as RelationModifier and TypeFieldDescriptionprivate final RelationRecentRelationsAction.RecentRelationsMenuItem.relationFields in org.openstreetmap.josm.actions.relation with type parameters of type RelationModifier and TypeFieldDescriptionprotected Collection<Relation>ExportRelationToGpxAction.relationsPrimitives this action works onMethods in org.openstreetmap.josm.actions.relation that return RelationModifier and TypeMethodDescriptionstatic RelationRecentRelationsAction.getLastRelation()Returns the last relation.Methods in org.openstreetmap.josm.actions.relation that return types with arguments of type RelationModifier and TypeMethodDescriptionRecentRelationsAction.getRecentRelationsOnActiveLayer()Returns the list of recent relations on active layer.Methods in org.openstreetmap.josm.actions.relation with parameters of type RelationModifier and TypeMethodDescriptionprivate static booleanDuplicateRelationAction.confirmRelationDuplicate(Relation relation) static voidDuplicateRelationAction.duplicateRelationAndLaunchEditor(Relation original) Duplicates the given relation and launches the relation editor for the created copy.static Set<RelationMember>EditRelationAction.getMembersForCurrentSelection(Relation r) Returns the set of currently selected relation members for the given relation.static booleanRecentRelationsAction.isRelationListable(Relation relation) Determines if the given relation is listable in last relations.static voidEditRelationAction.launchEditor(Relation toEdit) Launches relation editor for the given relation.Method parameters in org.openstreetmap.josm.actions.relation with type arguments of type RelationModifier and TypeMethodDescriptionprotected voidDeleteRelationsAction.deleteRelation(Collection<Relation> toDelete) Constructors in org.openstreetmap.josm.actions.relation with parameters of type RelationConstructor parameters in org.openstreetmap.josm.actions.relation with type arguments of type RelationModifierConstructorDescription(package private)RecentRelationsPopupMenu(List<Relation> recentRelations, KeyStroke keystroke) Constructs a newRecentRelationsPopupMenu. -
Uses of Relation in org.openstreetmap.josm.actions.upload
Method parameters in org.openstreetmap.josm.actions.upload with type arguments of type RelationModifier and TypeMethodDescriptionprotected JPanelRelationUploadOrderHook.buildWarningPanel(List<Relation> dep) builds the panel which warns users about a cyclic dependency -
Uses of Relation in org.openstreetmap.josm.command
Fields in org.openstreetmap.josm.command declared as RelationModifier and TypeFieldDescriptionprivate final RelationChangeMembersCommand.relationprivate final RelationChangeRelationMemberRoleCommand.relationprivate final RelationSplitWayCommand.RelationAnalysis.relation(package private) RelationSplitWayCommand.RelationInformation.relationMethods in org.openstreetmap.josm.command that return RelationModifier and TypeMethodDescription(package private) RelationSplitWayCommand.RelationAnalysis.getRelation()Methods in org.openstreetmap.josm.command with parameters of type RelationModifier and TypeMethodDescriptionprivate static voidSplitWayCommand.addSortedWays(int position, int indexOfWayToKeep, SplitWayCommand.Direction direction, List<Way> newWays, Relation relation) Add ways in a sorted manner(package private) static List<? extends OsmPrimitive>private static booleanPurgeCommand.hasOnlyIncompleteMembers(Relation r, Collection<OsmPrimitive> toPurge, Collection<? extends OsmPrimitive> moreToPurge) private static booleanSplitWayCommand.needToReverseSplit(int position, int indexOfWayToKeep, Relation relation, List<Way> newWays) This is only strictly necessary when we are splitting a route where it starts to loop back.private static SplitWayCommand.RelationInformationSplitWayCommand.treatAsRestriction(Relation r, RelationMember rm, Relation c, Collection<Way> newWays, Way way, List<Node> changedWayNodes) voidMethod parameters in org.openstreetmap.josm.command with type arguments of type RelationModifier and TypeMethodDescriptionbooleanDeleteCommand.DeletionCallback.confirmRelationDeletion(Collection<Relation> relations) Confirm before deleting a relation, as it is a common newbie error.Constructors in org.openstreetmap.josm.command with parameters of type RelationModifierConstructorDescriptionChangeMembersCommand(DataSet data, Relation relation, List<RelationMember> newMembers) Constructs a newChangeMembersCommandin the context of a given data set.ChangeMembersCommand(Relation relation, List<RelationMember> newMembers) Constructs a newChangeMembersCommandin the context ofrdata set.ChangeRelationMemberRoleCommand(DataSet dataSet, Relation relation, int position, String newRole) Constructs a newChangeRelationMemberRoleCommand.ChangeRelationMemberRoleCommand(Relation relation, int position, String newRole) Constructs a newChangeRelationMemberRoleCommand.(package private)RelationAnalysis(Relation relation, RelationMember relationMember, SplitWayCommand.Direction direction, Set<Way> neededIncompleteMembers) -
Uses of Relation in org.openstreetmap.josm.command.conflict
Fields in org.openstreetmap.josm.command.conflict with type parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.data
Fields in org.openstreetmap.josm.data with type parameters of type RelationModifier and TypeFieldDescriptionAPIDataSet.RelationUploadDependencyGraph.childrenAPIDataSet.RelationUploadDependencyGraph.childrenprivate Collection<Relation>APIDataSet.RelationUploadDependencyGraph.relationsAPIDataSet.RelationUploadDependencyGraph.uploadOrderAPIDataSet.RelationUploadDependencyGraph.visitedMethods in org.openstreetmap.josm.data that return types with arguments of type RelationModifier and TypeMethodDescriptionAPIDataSet.RelationUploadDependencyGraph.computeUploadOrder(boolean reverse) APIDataSet.filterRelationsNotReferringToNewRelations(Collection<Relation> relations) Replies the subset of relations inrelationswhich are not referring to any new relationAPIDataSet.RelationUploadDependencyGraph.getChildren(Relation relation) Methods in org.openstreetmap.josm.data with parameters of type RelationModifier and TypeMethodDescriptionvoidAPIDataSet.RelationUploadDependencyGraph.addDependency(Relation relation, Relation child) APIDataSet.RelationUploadDependencyGraph.getChildren(Relation relation) protected voidMethod parameters in org.openstreetmap.josm.data with type arguments of type RelationModifier and TypeMethodDescriptionfinal voidAPIDataSet.RelationUploadDependencyGraph.build(Collection<Relation> relations) APIDataSet.filterRelationsNotReferringToNewRelations(Collection<Relation> relations) Replies the subset of relations inrelationswhich are not referring to any new relationprotected voidConstructor parameters in org.openstreetmap.josm.data with type arguments of type RelationModifierConstructorDescription(package private)RelationUploadDependencyGraph(Collection<Relation> relations, boolean newOrUndeleted) -
Uses of Relation in org.openstreetmap.josm.data.correction
Fields in org.openstreetmap.josm.data.correction declared as RelationConstructors in org.openstreetmap.josm.data.correction with parameters of type RelationModifierConstructorDescriptionRoleCorrection(Relation relation, int position, RelationMember member, String newRole) Constructs a newRoleCorrection. -
Uses of Relation in org.openstreetmap.josm.data.osm
Fields in org.openstreetmap.josm.data.osm declared as RelationFields in org.openstreetmap.josm.data.osm with type parameters of type RelationModifier and TypeFieldDescriptionCyclicUploadDependencyException.cycleprivate final QuadBucketPrimitiveStore<Node,Way, Relation> DataSet.storeMethods in org.openstreetmap.josm.data.osm that return RelationModifier and TypeMethodDescriptionRelationToChildReference.getParent()Get the parent relationRelationMember.getRelation()Returns the relation member as a relation.private static RelationOsmUtils.newRelation(LatLon around, boolean enforceLocation) Methods in org.openstreetmap.josm.data.osm that return types with arguments of type RelationModifier and TypeMethodDescriptionCyclicUploadDependencyException.getCyclicUploadDependency()Gets the cycleOsmPrimitive.getParentRelations(Collection<? extends OsmPrimitive> primitives) Replies the set of referring relationsDataSet.getRelations()DataSet.searchRelations(BBox bbox) DataSet.unlinkPrimitiveFromRelations(OsmPrimitive primitive) removes all references from relations in this dataset to this primitiveMethods in org.openstreetmap.josm.data.osm with parameters of type RelationModifier and TypeMethodDescriptionbooleanDataSet.containsRelation(Relation r) Determines if the given relation can be retrieved in the data set through its bounding box.(package private) voidDataSet.fireRelationMembersChanged(Relation r) protected StringCyclicUploadDependencyException.formatRelation(Relation r) MultipolygonBuilder.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 voidDataSetMerger.mergeRelationMembers(Relation source) Merges the relation members of a source relation onto the corresponding target relation.Constructors in org.openstreetmap.josm.data.osm with parameters of type RelationModifierConstructorDescriptionCreate an identical clone of the argument (including the id) and links members to it.Constructs an identical clone of the argument and links members to it.Constructs an identical clone of the argument and links members to it.RelationToChildReference(Relation parent, int position, String role, OsmPrimitive child) Create a newRelationToChildReferenceRelationToChildReference(Relation parent, int position, RelationMember member) Create a newRelationToChildReferenceConstructor parameters in org.openstreetmap.josm.data.osm with type arguments of type Relation -
Uses of Relation in org.openstreetmap.josm.data.osm.event
Fields in org.openstreetmap.josm.data.osm.event declared as RelationMethods in org.openstreetmap.josm.data.osm.event that return RelationModifier and TypeMethodDescriptionRelationMembersChangedEvent.getRelation()Returns the relation affected by the change.Constructors in org.openstreetmap.josm.data.osm.event with parameters of type RelationModifierConstructorDescriptionRelationMembersChangedEvent(DataSet dataSet, Relation relation) Constructs a newRelationMembersChangedEvent. -
Uses of Relation in org.openstreetmap.josm.data.osm.history
Constructors in org.openstreetmap.josm.data.osm.history with parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.data.osm.visitor
Methods in org.openstreetmap.josm.data.osm.visitor with parameters of type RelationModifier and TypeMethodDescriptionprotected voidMergeSourceBuildingVisitor.rememberRelation(Relation r) Remembers a relation in the hullprotected voidMergeSourceBuildingVisitor.rememberRelationPartial(Relation r) voidRelations may have any number of nodes.voidvoidvoidVisiting call for relations. -
Uses of Relation in org.openstreetmap.josm.data.osm.visitor.paint
Methods in org.openstreetmap.josm.data.osm.visitor.paint with parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.data.osm.visitor.paint.relations
Fields in org.openstreetmap.josm.data.osm.visitor.paint.relations with type parameters of type RelationModifier and TypeFieldDescriptionprivate final Map<DataSet,Map<Relation, Multipolygon>> MultipolygonCache.cacheMethods in org.openstreetmap.josm.data.osm.visitor.paint.relations that return types with arguments of type RelationModifier and TypeMethodDescriptionprivate Collection<Map<Relation,Multipolygon>> MultipolygonCache.getMapsFor(DataSet ds) private Collection<Map<Relation,Multipolygon>> MultipolygonCache.updateMultipolygonsReferringTo(AbstractDatasetChangedEvent event, Collection<? extends OsmPrimitive> primitives, DataSet ds, Collection<Map<Relation, Multipolygon>> initialMaps) Methods in org.openstreetmap.josm.data.osm.visitor.paint.relations with parameters of type RelationModifier and TypeMethodDescriptionprivate static voidMultipolygonCache.dispatchEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) Gets a multipolygon from cache.Gets a multipolygon from cache.private voidprivate static voidMultipolygonCache.processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) private static voidMultipolygonCache.removeMultipolygonFrom(Relation r, Collection<Map<Relation, Multipolygon>> maps) Method parameters in org.openstreetmap.josm.data.osm.visitor.paint.relations with type arguments of type RelationModifier and TypeMethodDescriptionprivate static voidMultipolygonCache.dispatchEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) private static voidMultipolygonCache.processEvent(AbstractDatasetChangedEvent event, Relation r, Collection<Map<Relation, Multipolygon>> maps) private static voidMultipolygonCache.removeMultipolygonFrom(Relation r, Collection<Map<Relation, Multipolygon>> maps) Constructors in org.openstreetmap.josm.data.osm.visitor.paint.relations with parameters of type RelationModifierConstructorDescriptionConstructs a newMultipolygonfrom a relation. -
Uses of Relation in org.openstreetmap.josm.data.validation
Methods in org.openstreetmap.josm.data.validation with parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests declared as RelationModifier and TypeFieldDescriptionprivate RelationMultipolygonTest.createdRelationset when used to build a multipolygon relationFields in org.openstreetmap.josm.data.validation.tests with type parameters of type RelationModifier and TypeFieldDescriptionRelationChecker.loopsDuplicateRelation.visitedList of all initially visited testable relationsMethods in org.openstreetmap.josm.data.validation.tests that return RelationModifier and TypeMethodDescriptionMultipolygonTest.makeFromWays(Collection<Way> ways) Create a multipolygon relation from the given ways and test it.Methods in org.openstreetmap.josm.data.validation.tests that return types with arguments of type RelationModifier and TypeMethodDescriptionRelationChecker.checkAddMember(Relation parent, Relation child) Check if adding one relation to another would produce a circular dependency.Addresses.getAndCheckAssociatedStreets(OsmPrimitive p) Methods in org.openstreetmap.josm.data.validation.tests with parameters of type RelationModifier and TypeMethodDescriptionprivate voidMultipolygonTest.addRepeatedMemberError(Relation r, List<OsmPrimitive> repeatedMembers, int errorCode, String msg) private static voidDuplicateRelation.addToRelations(MultiMap<DuplicateRelation.RelationPair, Relation> relations, Relation r, boolean forceAdd) private static Map<Roles.Role,String> RelationChecker.buildAllRoles(Relation n) private static Map<String,RelationChecker.RoleInfo> RelationChecker.buildRoleInfoMap(Relation n) RelationChecker.checkAddMember(Relation parent, Relation child) Check if adding one relation to another would produce a circular dependency.private booleanConnectivityRelations.checkForBadRole(Relation relation) Check if the roles of the relation are appropriateprivate voidConnectivityRelations.checkForImpliedConnectivity(Relation relation, Map<String, Integer> roleLanes, Map<Integer, Map<Integer, Boolean>> connTagLanes) Check the relation to see if the connectivity described is already implied by other dataConnectivityRelations.checkForInconsistentLanes(Relation relation, Map<Integer, Map<Integer, Boolean>> connTagLanes) Compare lane tags of members to values in theconnectivitytag of the relationprivate static booleanConnectivityRelations.checkForIntersectionAtMembers(Relation relation) Check to see if there is an intersection present at the via memberprivate static booleanConnectivityRelations.checkForMissingRole(Relation relation) Check if the relation contains all necessary rolesprivate voidMultipolygonTest.checkGeometryAndRoles(Relation r, Multipolygon polygon) Various geometry-related checks:MultipolygonTest.NON_CLOSED_WAY: Multipolygon is not closedMultipolygonTest.INNER_WAY_OUTSIDE: Multipolygon inner way is outsideMultipolygonTest.CROSSING_WAYS: Intersection between multipolygon waysprivate voidTurnrestrictionTest.checkIfConnected(Relation r, Way previous, Way current, String msg, int code) private voidAddresses.checkIfObsolete(Relation r) Check if an associatedStreet Relation is obsolete.private voidCheck if a given relation is part of a circular dependency loop.private voidprivate booleanRelationChecker.checkMemberExpressionAndType(Map<Roles.Role, String> allroles, RelationMember member, Relation n) get all role definition for specified key and check, if some definition matchesprivate booleanMultipolygonTest.checkMembersAndRoles(Relation r, List<TestError> tmpErrors) Check for:MultipolygonTest.WRONG_MEMBER_ROLE: No useful role for multipolygon memberMultipolygonTest.WRONG_MEMBER_TYPE: Non-Way in multipolygonprivate static booleanConnectivityRelations.checkMemberTagsForImpliedConnectivity(Relation relation, Map<String, Integer> roleLanes) Check the relation to see if the connectivity described is already implied by the relation members' tagsprivate voidMultipolygonTest.checkOrSetRoles(Relation r, List<Multipolygon.PolyData> allPolygons, Map<Long, RelationMember> wayMap, Set<Node> sharedNodes) Calculate the nesting levels of the polygon rings and check if calculated role matchesprivate voidTagChecker.checkOuterWaysOfRelation(Relation rel) Check if an outer way of the relation has the same tag as the relation.private voidMultipolygonTest.checkPolygonForSelfIntersection(Relation r, Multipolygon.PolyData pd) Check if a polygon ring is self-intersecting when the ring was build from multiple ways.private voidMultipolygonTest.checkPolygonsForSharedNodes(Relation r, Multipolygon.PolyData pd1, Multipolygon.PolyData pd2, Set<Node> allSharedNodes) private booleanMultipolygonTest.checkRepeatedWayMembers(Relation r) Check for:MultipolygonTest.REPEATED_MEMBER_DIFF_ROLE: Multipolygon member repeated with different roleMultipolygonTest.REPEATED_MEMBER_SAME_ROLE: Multipolygon member repeated with same roleprivate voidRelationChecker.checkRoleCounts(Relation n, Roles.Role r, String keyname, RelationChecker.RoleInfo ri) private voidRelationChecker.checkRoles(Relation n, Map<Roles.Role, String> allroles, Map<String, RelationChecker.RoleInfo> map) private voidMultipolygonTest.checkStyleConsistency(Relation r, Multipolygon polygon) Various style-related checks:MultipolygonTest.NO_STYLE: No area style for multipolygonMultipolygonTest.INNER_STYLE_MISMATCH: With the currently used mappaint style the style for inner way equals the multipolygon styleMultipolygonTest.OUTER_STYLE_MISMATCH: With the currently used mappaint style the style for outer way mismatches the area styleMultipolygonTest.OUTER_STYLE: Area style on outer wayprivate static Collection<? extends OsmPrimitive>MultipolygonTest.combineRelAndPrimitives(Relation r, Collection<? extends OsmPrimitive> primitives) private static Map<List<Way>,List<WaySegment>> MultipolygonTest.findIntersectingWays(Relation r, boolean findSharedWaySegments) SeeCrossingWaysprivate Map<Multipolygon.PolyData,List<Multipolygon.PolyData>> MultipolygonTest.findIntersectingWays(Relation r, List<Multipolygon.PolyData> innerPolygons, List<Multipolygon.PolyData> outerPolygons) Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments.private voidMultipolygonTest.findIntersectingWaysIncomplete(Relation r) Determine multipolygon ways which are intersecting (crossing without a common node) or sharing one or more way segments.private static voidMultipolygonTest.findIntersectionNodes(Relation r, Set<Node> sharedNodes, Set<Way> intersectionWays) Detect intersections of multipolygon ways at nodes.private static List<RelationMember>DuplicateRelation.getSortedMembers(Relation r) Order members of given relation by type, unique id, and role.private static booleanTurnrestrictionTest.hasSupportedRestrictionTag(Relation r) private static booleanDuplicateRelation.ignoredType(Relation r) private static booleanDuplicateRelation.memberOrderMatters(Relation r) private booleanConnectivityRelations.mixedViaNodeAndWay(Relation relation, int viaWays, int viaNodes) Check if the relation's roles are on appropriate objectsConnectivityRelations.parseConnectivityTag(Relation relation) Convert the connectivity tag into a map of valuesvoidvoidvoidvoidvoidvoidvoidvoidvoidMethod parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type RelationModifier and TypeMethodDescriptionprivate static voidDuplicateRelation.addToRelations(MultiMap<DuplicateRelation.RelationPair, Relation> relations, Relation r, boolean forceAdd) private voidprivate voidDuplicateRelation.checkOrderAndTags(Set<Relation> sameMembers) Check a list of relations which are guaranteed to have the same members, possibly in different order and possibly different tags.private voidDuplicateRelation.performGeometryTest(MultiMap<DuplicateRelation.RelationPair, Relation> relations) private voidDuplicateRelation.reportDuplicateKeys(Collection<Relation> duplicated) Check collection of relations with the same keys and members, possibly in different orderprivate voidDuplicateRelation.reportDuplicateMembers(Set<Relation> duplicated) Report relations with the same member(s) in the same order, keys may be different -
Uses of Relation in org.openstreetmap.josm.data.validation.util
Methods in org.openstreetmap.josm.data.validation.util with parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.gui.conflict.pair.relation
Methods in org.openstreetmap.josm.gui.conflict.pair.relation with parameters of type RelationModifier and TypeMethodDescriptionvoidRelationMemberListMergeModel.populate(Relation my, Relation their, Map<PrimitiveId, PrimitiveId> mergedMap) populates the model with the relation members in relation my and their -
Uses of Relation in org.openstreetmap.josm.gui.conflict.tags
Fields in org.openstreetmap.josm.gui.conflict.tags declared as RelationFields in org.openstreetmap.josm.gui.conflict.tags with type parameters of type RelationModifier and TypeFieldDescriptionprotected Collection<Relation>RelationMemberConflictResolverModel.relationsthe collection of relations for which we manage conflictsMethods in org.openstreetmap.josm.gui.conflict.tags that return RelationMethods in org.openstreetmap.josm.gui.conflict.tags that return types with arguments of type RelationModifier and TypeMethodDescriptionRelationMemberConflictResolverModel.getModifiedRelations(OsmPrimitive newPrimitive) Replies the set of relations which have to be modified according to the decisions managed by this model.Methods in org.openstreetmap.josm.gui.conflict.tags with parameters of type RelationModifier and TypeMethodDescriptionprotected CommandRelationMemberConflictResolverModel.buildResolveCommand(Relation relation, OsmPrimitive newPrimitive) protected RelationMemberConflictDecisionRelationMemberConflictResolverModel.getDecision(Relation relation, int pos) protected booleanRelationMemberConflictResolverModel.isChanged(Relation relation, OsmPrimitive newPrimitive) booleanprotected voidRelationMemberConflictResolverModel.populate(Relation relation, OsmPrimitive primitive) Populates the model with the members of the relationrelationreferring toprimitive.Method parameters in org.openstreetmap.josm.gui.conflict.tags with type arguments of type RelationModifier and TypeMethodDescriptionprotected static voidCombinePrimitiveResolverDialog.informAboutRelationMembershipConflicts(Collection<? extends OsmPrimitive> primitives, Set<Relation> parentRelations) Inform a non-expert user about what relation membership conflict resolution means.voidRelationMemberConflictResolverModel.populate(Collection<Relation> relations, Collection<? extends OsmPrimitive> memberPrimitives) Populates the model with the relation members belonging to one of the relations inrelationsand referring to one of the primitives inmemberPrimitives.(package private) voidRelationMemberConflictResolverModel.populate(Collection<Relation> relations, Collection<? extends OsmPrimitive> memberPrimitives, boolean fireEvent) Populates the model with the relation members belonging to one of the relations inrelationsand referring to one of the primitives inmemberPrimitives.Constructors in org.openstreetmap.josm.gui.conflict.tags with parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.gui.dialogs
Fields in org.openstreetmap.josm.gui.dialogs with type parameters of type RelationModifier and TypeFieldDescriptionDeleteFromRelationConfirmationDialog.RelationDeleteModel.dataConflictDialog.ConflictPainter.visitedMethods in org.openstreetmap.josm.gui.dialogs that return types with arguments of type RelationModifier and TypeMethodDescriptionDeleteFromRelationConfirmationDialog.RelationDeleteModel.getObjectsToDelete()Gets the list of children that are currently displayed.Methods in org.openstreetmap.josm.gui.dialogs with parameters of type RelationModifier and TypeMethodDescriptionvoidRelationListDialog.selectRelation(Relation relation) Selects the relationrelationin the list of relations.voidMethod parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type RelationModifier and TypeMethodDescriptionvoidDeleteFromRelationConfirmationDialog.RelationDeleteModel.populate(Collection<Pair<Relation, Boolean>> references) Sets the data that should be displayed in the list. -
Uses of Relation in org.openstreetmap.josm.gui.dialogs.properties
Methods in org.openstreetmap.josm.gui.dialogs.properties with parameters of type RelationModifier and TypeMethodDescription(package private) static voidRelationRoleEditor.editRole(Relation relation, PropertiesDialog.MemberInfo memberInfo) Shows an {input dialog in order to quickly change the roles of the selected members. -
Uses of Relation in org.openstreetmap.josm.gui.dialogs.relation
Fields in org.openstreetmap.josm.gui.dialogs.relation declared as RelationModifier and TypeFieldDescriptionprivate final RelationChildRelationBrowser.DownloadAllChildrenTask.relationprivate final RelationMemberRoleCellEditor.relationprivate final RelationMemberTableModel.relationprivate RelationReferringRelationsBrowserModel.relationthe relationfinal RelationRelationDialogManager.DialogContext.relationprivate RelationRelationEditor.relationThe relation that this editor is working on.private final RelationRelationTree.RelationLoader.relationprivate RelationRelationEditor.relationSnapshotThe version of the relation when editing is started.private RelationRelationTreeModel.rootthe root relationFields in org.openstreetmap.josm.gui.dialogs.relation with type parameters of type RelationModifier and TypeFieldDescriptionDownloadRelationMemberTask.parentsReferringRelationsBrowser.referrersthe list of relationsReferringRelationsBrowserModel.referrersChildRelationBrowser.DownloadRelationSetTask.relationsprivate final Collection<Relation>DownloadRelationTask.relationsMethods in org.openstreetmap.josm.gui.dialogs.relation that return RelationModifier and TypeMethodDescriptionReferringRelationsBrowserModel.getElementAt(int index) IRelationEditor.getRelation()Replies the currently edited relationReferringRelationsBrowserModel.getRelation()Returns the relation.final RelationRelationEditor.getRelation()protected RelationRelationTreeModel.getRelationChildByIdx(Relation parent, int idx) Replies the i-th child of type relation for a particular relationparent.IRelationEditor.getRelationSnapshot()Replies the state of the edited relation when the editor has been launched.final RelationRelationEditor.getRelationSnapshot()Methods in org.openstreetmap.josm.gui.dialogs.relation with parameters of type RelationModifier and TypeMethodDescriptionstatic CommandGenericRelationEditor.addPrimitivesToRelation(Relation orig, Collection<? extends OsmPrimitive> primitivesToAdd) Adds primitives to a given relation.voidMemberTableModel.applyToRelation(Relation relation) Applies this member model to the given relation.protected static voidGenericRelationEditor.cleanSelfReferences(MemberTableModel memberTableModel, Relation relation) checks whether the current relation has members referring to itself.voidRelationDialogManager.close(OsmDataLayer layer, Relation relation) Closes the editor open for a specific layer and a specific relation.static RelationEditorRelationEditor.getEditor(OsmDataLayer layer, Relation r, Collection<RelationMember> selectedMembers) This is a factory method that creates an appropriate RelationEditor instance suitable for editing the relation that was passed in as an argument.RelationDialogManager.getEditorForRelation(OsmDataLayer layer, Relation relation) Replies the editor for the relation managed by layer.protected intRelationTreeModel.getIndexForRelationChild(Relation parent, Relation child) Replies the index of a particularchildwith respect to itsparent.protected intRelationTreeModel.getNumRelationChildren(Relation parent) Replies the number of children of type relation for a particular relationparentprotected RelationRelationTreeModel.getRelationChildByIdx(Relation parent, int idx) Replies the i-th child of type relation for a particular relationparent.booleanMemberTableModel.hasSameMembersAs(Relation relation) Determines if this model has the same members as the given relation.booleanRelationDialogManager.isOpenInEditor(OsmDataLayer layer, Relation relation) Replies true if there is an open relation editor for the relation managed by the given layer.protected booleanReferringRelationsBrowserModel.isReferringRelation(Relation parent) voidpopulates the browser with a relationvoidPopulates this model from the given relation.voidPopulates the model with a root relationprivate voidGenericRelationEditor.populateModels(Relation relation) protected voidChildRelationBrowser.DownloadTask.refreshView(Relation relation) voidRelationDialogManager.register(OsmDataLayer layer, Relation relation, RelationEditor editor) Register the relation editor for a relation managed by aOsmDataLayer.protected voidRelationTreeCellRenderer.renderValue(Relation relation) renders the textual value.voidIRelationEditor.setRelation(Relation relation) Sets the currently edited relation.voidReferringRelationsBrowserModel.setRelation(Relation relation) Sets the relation.final voidRelationEditor.setRelation(Relation relation) protected final voidRelationEditor.setRelationSnapshot(Relation snapshot) voidRelationDialogManager.updateContext(OsmDataLayer layer, Relation relation, RelationEditor editor) protected voidChildRelationBrowser.DownloadAllChildrenTask.warnBecauseOfDeletedRelation(Relation r) warns the user if a relation couldn't be loaded because it was deleted on the server (the server replied a HTTP code 410)Method parameters in org.openstreetmap.josm.gui.dialogs.relation with type arguments of type RelationModifier and TypeMethodDescriptionvoidPopulates the model with parent referrers.static voidGenericRelationEditor.warnOfCircularReferences(OsmPrimitive primitive, List<Relation> loop) Warn about circular references.Constructors in org.openstreetmap.josm.gui.dialogs.relation with parameters of type RelationModifierConstructorDescriptionChildRelationBrowser(OsmDataLayer layer, Relation root) constructor(package private)DialogContext(OsmDataLayer layer, Relation relation) (package private)DownloadAllChildrenTask(Dialog parent, Relation r) DownloadRelationMemberTask(Relation parent, Collection<OsmPrimitive> children, OsmDataLayer curLayer) DownloadRelationMemberTask(Relation parent, Collection<OsmPrimitive> children, OsmDataLayer curLayer, Dialog dialog) GenericRelationEditor(OsmDataLayer layer, Relation relation, Collection<RelationMember> selectedMembers) Creates a new relation editor for the given relation.MemberRoleCellEditor(AutoCompletionManager autoCompletionManager, Relation relation) Constructs a newMemberRoleCellEditor.MemberTable(OsmDataLayer layer, Relation relation, MemberTableModel model) constructor for relation member tableMemberTableColumnModel(AutoCompletionManager autoCompletionManager, Relation relation) Constructs a newMemberTableColumnModel.MemberTableModel(Relation relation, OsmDataLayer layer, TaggingPresetHandler presetHandler) constructorReferringRelationsBrowserModel(Relation relation) Constructs a newReferringRelationsBrowserModel.protectedRelationEditor(OsmDataLayer layer, Relation relation) Creates a new relation editor(package private)RelationLoader(Dialog dialog, Relation relation, TreePath path) Constructor parameters in org.openstreetmap.josm.gui.dialogs.relation with type arguments of type RelationModifierConstructorDescriptionDownloadRelationMemberTask(Collection<Relation> parents, Collection<OsmPrimitive> children, OsmDataLayer curLayer) Creates a download task for downloading the child primitiveschildrenfor all parent relations inparents.(package private)DownloadRelationSetTask(Dialog parent, Set<Relation> relations) DownloadRelationTask(Collection<Relation> relations, OsmDataLayer layer) Creates the download task -
Uses of Relation in org.openstreetmap.josm.gui.dialogs.relation.actions
Methods in org.openstreetmap.josm.gui.dialogs.relation.actions with parameters of type RelationModifier and TypeMethodDescriptionprotected Collection<RelationMember>EditAction.getMembersForCurrentSelection(Relation r) -
Uses of Relation in org.openstreetmap.josm.gui.dialogs.relation.sort
Methods in org.openstreetmap.josm.gui.dialogs.relation.sort with parameters of type RelationModifier and TypeMethodDescriptionprivate WayConnectionTypeWayConnectionTypeCalculator.computeNextWayConnection(Relation r, List<WayConnectionType> con, WayConnectionType lastWct, int i, RelationMember m) private static booleanWayConnectionTypeCalculator.isOnewayIgnored(Relation r) private static booleanWayConnectionTypeCalculator.isSuperRoute(Relation r) WayConnectionTypeCalculator.updateLinks(Relation r, List<RelationMember> members) refresh the cache of member WayConnectionTypesprivate WayConnectionTypeWayConnectionTypeCalculator.updateLinksFor(Relation r, List<WayConnectionType> con, WayConnectionType lastWct, int i) -
Uses of Relation in org.openstreetmap.josm.gui.history
Methods in org.openstreetmap.josm.gui.history with parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.gui.layer
Fields in org.openstreetmap.josm.gui.layer with type parameters of type RelationMethods in org.openstreetmap.josm.gui.layer that return types with arguments of type RelationModifier and TypeMethodDescriptionOsmDataLayer.getRecentRelations()Returns list of recently closed relations or null if none.Methods in org.openstreetmap.josm.gui.layer with parameters of type RelationModifier and TypeMethodDescriptionvoidOsmDataLayer.removeRecentRelation(Relation relation) Remove relation from list of recent relations.voidOsmDataLayer.setRecentRelation(Relation relation) Adds recently closed relation.void -
Uses of Relation in org.openstreetmap.josm.gui.layer.validation
Methods in org.openstreetmap.josm.gui.layer.validation with parameters of type Relation -
Uses of Relation in org.openstreetmap.josm.gui.tagging.ac
Methods in org.openstreetmap.josm.gui.tagging.ac with parameters of type RelationModifier and TypeMethodDescriptionprotected voidAutoCompletionManager.cacheRelationMemberRoles(Relation relation) Caches all member roles of the relationrelationvoidAutoCompletionManager.populateWithMemberRoles(AutoCompletionList list, Relation r) Populates theAutoCompletionListwith the roles used in this relation plus the ones defined in its applicable presets, if any. -
Uses of Relation in org.openstreetmap.josm.gui.util
Method parameters in org.openstreetmap.josm.gui.util with type arguments of type RelationModifier and TypeMethodDescriptionprivate booleanHighlightHelper.setHighlight(OsmPrimitive p, boolean flag, Set<Relation> seenRelations) -
Uses of Relation in org.openstreetmap.josm.io
Methods in org.openstreetmap.josm.io that return RelationModifier and TypeMethodDescriptionprotected final RelationAbstractReader.parseRelation(AbstractReader.CommonReader commonReader, AbstractReader.RelationReader relationReader) protected RelationOsmReader.parseRelation()Methods in org.openstreetmap.josm.io that return types with arguments of type RelationModifier and TypeMethodDescriptionGeoJSONReader.parseGeometryCollection(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry, boolean createRelation) GeoJSONReader.parseMultiLineString(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry) GeoJSONReader.parseMultiPoint(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry) GeoJSONReader.parseMultiPolygon(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry) Methods in org.openstreetmap.josm.io with parameters of type RelationModifier and TypeMethodDescriptionprotected MultiFetchServerObjectReaderMultiFetchServerObjectReader.appendRelation(Relation relation) appends aRelationid to the list of ids which will be fetched from the server.voidprivate voidGeoJSONWriter.GeometryPrimitiveVisitor.visitMultiGeometry(Relation r) Visit a multi-part geometry.private voidGeoJSONWriter.GeometryPrimitiveVisitor.visitMultiLineString(Relation r) Visit a relation that is a multi line stringprivate voidGeoJSONWriter.GeometryPrimitiveVisitor.visitMultiPoints(Relation r) Visit a relation that only contains pointsprivate voidGeoJSONWriter.GeometryPrimitiveVisitor.visitMultipolygon(Relation r) Convert a multipolygon to geojsonMethod parameters in org.openstreetmap.josm.io with type arguments of type RelationModifier and TypeMethodDescriptionvoidOsmWriter.writeRelations(Collection<Relation> relations) Writes the given relations sorted by id -
Uses of Relation in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools with parameters of type RelationModifier and TypeMethodDescriptionstatic List<IPrimitive>Geometry.filterInsideMultipolygon(Collection<IPrimitive> primitives, Relation multiPolygon) Find all primitives in the given collection which are inside the given multipolygon.static 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.static AreaGeometry.getAreaLatLon(Relation multipolygon) Returns the Area of a polygon, from the multipolygon relation.static booleanGeometry.isNodeInsideMultiPolygon(INode node, Relation multiPolygon, Predicate<Way> isOuterWayAMatch) Tests if thenodeis inside the multipolygonmultiPolygon.static booleanGeometry.isPolygonInsideMultiPolygon(List<? extends INode> nodes, Relation multiPolygon, Predicate<Way> isOuterWayAMatch) Tests if the polygon formed bynodesis inside the multipolygonmultiPolygon.static doubleGeometry.multipolygonArea(Relation multipolygon) Returns area of a multipolygon in square meters.Constructors in org.openstreetmap.josm.tools with parameters of type RelationModifierConstructorDescriptionDefaultGeoProperty(Relation multipolygon) Create DefaultGeoProperty based on a multipolygon relation.