Uses of Class
org.openstreetmap.josm.data.osm.OsmPrimitive
-
Packages that use OsmPrimitive Package Description org.openstreetmap.josm.actions Provides the classes for JOSM user actions.org.openstreetmap.josm.actions.corrector Provides the classes for JOSMtag correctors
.org.openstreetmap.josm.actions.downloadtasks Provides the classes for JOSMdownload tasks
.org.openstreetmap.josm.actions.mapmode Provides the classes for JOSMmap modes
.org.openstreetmap.josm.actions.search Provides the classes for JOSMsearch action
.org.openstreetmap.josm.actions.upload Provides the classes for JOSMupload action
.org.openstreetmap.josm.command Provides the classes for JOSM commands allowing to modify an OSM data set.org.openstreetmap.josm.command.conflict Provides commands for handling conflicts.org.openstreetmap.josm.data Provides the classes for JOSM managed data.org.openstreetmap.josm.data.conflict Provides the classes for editionconflicts
betweenOsmPrimitive
sorg.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.osm.event Provides the classes for OSM dataset events.org.openstreetmap.josm.data.osm.history Provides the classes for OSM primitiveshistory
(edition revisions).org.openstreetmap.josm.data.osm.search Provides classes allowing to search OSM primitives in a dataset using textual queries.org.openstreetmap.josm.data.osm.visitor Provides the classes for performing actions on OSM primitives using Visitor design pattern.org.openstreetmap.josm.data.osm.visitor.paint.relations Provides the classes for painting and cachingMultipolygon
relations.org.openstreetmap.josm.data.validation Provides the classes for JOSM data validation.org.openstreetmap.josm.data.validation.tests Provides the classes for JOSM data validation tests.org.openstreetmap.josm.data.validation.util Provides utilities classes for JOSM data validation.org.openstreetmap.josm.gui Provides the classes for JOSM graphical user interface.org.openstreetmap.josm.gui.autofilter Provides the classes for automatic filters (filters automatically created on current data).org.openstreetmap.josm.gui.conflict.pair Provides the classes for displaying conflicts as pair of lists.org.openstreetmap.josm.gui.conflict.pair.nodes Provides the classes for displaying conflicts in ways list of nodes.org.openstreetmap.josm.gui.conflict.pair.properties Provides the classes for displaying conflicts in OSM primitive properties.org.openstreetmap.josm.gui.conflict.pair.relation Provides the classes for displaying conflicts in OSM primitive relation memberships.org.openstreetmap.josm.gui.conflict.pair.tags Provides the classes for displaying conflicts in OSM primitive tags.org.openstreetmap.josm.gui.conflict.tags Provides the classes for resolving conflicts between OSM tags.org.openstreetmap.josm.gui.datatransfer Provides the classes for transferring data using cut/copy/paste operations.org.openstreetmap.josm.gui.datatransfer.data Provides the classes for defining the serializable data transferred using cut/copy/paste operations.org.openstreetmap.josm.gui.datatransfer.importers Provides the classes for the transfer support controllers allowing cut/copy/paste operations.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.dialogs.changeset Standalone dialog allowing to handle OSM changesets (query and display them).org.openstreetmap.josm.gui.dialogs.properties Toggle dialog allowing to display/edit tags and relation memberships of currently selected OSM objects.org.openstreetmap.josm.gui.dialogs.relation Toggle dialog allowing to display currently loaded relations and perform operations on them.org.openstreetmap.josm.gui.dialogs.relation.actions Provides the classes for relation editor actions.org.openstreetmap.josm.gui.dialogs.relation.sort Provides the classes for sorting relations.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.io Provides GUI classes for handling input/output operations (download, upload, save).org.openstreetmap.josm.gui.layer Provides classes for handling the different kinds of map layers.org.openstreetmap.josm.gui.layer.gpx Provides classes for handling GPX layers.org.openstreetmap.josm.gui.layer.validation Provides classes for handling validation layer.org.openstreetmap.josm.gui.mappaint.mapcss Drawing system based on MapCSS map styles.org.openstreetmap.josm.gui.tagging Provides classes for handling edition of OSM tags: tag tables, tag editors.org.openstreetmap.josm.gui.tagging.ac Provides GUI classes for handling autocompletion of tags.org.openstreetmap.josm.gui.tagging.presets Provides classes for handling tagging presets.org.openstreetmap.josm.gui.tagging.presets.items Provides classes for handling tagging presets items.org.openstreetmap.josm.gui.util Provides GUI utility classes.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.remotecontrol Provides the classes for remote control system.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.template_engine Provides classes for a generic template engine used in presets, name rendering and search function. -
-
Uses of OsmPrimitive in org.openstreetmap.josm.actions
Fields in org.openstreetmap.josm.actions with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Set<OsmPrimitive>
UploadSelectionAction.UploadHullBuilder. hull
private java.util.Collection<OsmPrimitive>
ValidateAction. lastSelection
Last selection used to validateprivate java.util.function.Supplier<OsmPrimitive>
RestorePropertyAction. objectSp
(package private) java.util.List<OsmPrimitive>
SplitWayAction.SegmentToKeepSelectionDialog. selection
protected java.util.List<OsmPrimitive>
PurgeAction. toPurgeAdditionally
Subset of toPurgeChecked.private java.util.Collection<OsmPrimitive>
UploadSelectionAction.DeletedParentsChecker. toUpload
Methods in org.openstreetmap.josm.actions that return OsmPrimitive Modifier and Type Method Description static OsmPrimitive
SelectByInternalPointAction. getSmallestSurroundingObject(EastNorth internalPoint)
Returns the smallest surrounding polygon/multipolygon which contains the internal point.Methods in org.openstreetmap.josm.actions that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Set<OsmPrimitive>
UploadSelectionAction.UploadHullBuilder. build(java.util.Collection<OsmPrimitive> base)
Builds the "hull" of primitives to be uploaded given a base collection of osm primitives.java.util.Collection<OsmPrimitive>
UpdateModifiedAction. getData()
java.util.Collection<OsmPrimitive>
UpdateSelectionAction. getData()
Returns the data on which this action operates.protected java.util.Set<OsmPrimitive>
UploadSelectionAction. getDeletedPrimitives(DataSet ds)
protected java.util.Set<OsmPrimitive>
UploadSelectionAction. getModifiedPrimitives(java.util.Collection<OsmPrimitive> primitives)
protected java.util.Set<OsmPrimitive>
UploadSelectionAction.DeletedParentsChecker. getPrimitivesToCheckForParents()
Replies the collection of deleted OSM primitives for which we have to check whether there are dangling references on the server.private java.util.Collection<OsmPrimitive>
CopyUrlAction. getSelected()
static java.util.Collection<OsmPrimitive>
SelectByInternalPointAction. getSurroundingObjects(EastNorth internalPoint)
Returns the surrounding polygons/multipolygons ordered by their area size (from small to large) which contain the internal point.static java.util.Collection<OsmPrimitive>
SelectByInternalPointAction. getSurroundingObjects(DataSet ds, EastNorth internalPoint, boolean includeMultipolygonWays)
Returns the surrounding polygons/multipolygons ordered by their area size (from small to large) which contain the internal point.Methods in org.openstreetmap.josm.actions with parameters of type OsmPrimitive Modifier and Type Method Description private java.util.List<JoinAreasAction.RelationRole>
JoinAreasAction. removeFromAllRelations(OsmPrimitive osm)
Removes a given OsmPrimitive from all relations.Method parameters in org.openstreetmap.josm.actions with type arguments of type OsmPrimitive Modifier and Type Method Description java.util.Set<OsmPrimitive>
UploadSelectionAction.UploadHullBuilder. build(java.util.Collection<OsmPrimitive> base)
Builds the "hull" of primitives to be uploaded given a base collection of osm primitives.static boolean
DeleteAction. checkAndConfirmOutlyingDelete(java.util.Collection<? extends OsmPrimitive> primitives, java.util.Collection<? extends OsmPrimitive> ignore)
Check whether user is about to delete data outside of the download area.static boolean
JosmAction. checkAndConfirmOutlyingOperation(java.lang.String operation, java.lang.String dialogTitle, java.lang.String outsideDialogMessage, java.lang.String incompleteDialogMessage, java.util.Collection<? extends OsmPrimitive> primitives, java.util.Collection<? extends OsmPrimitive> ignore)
Check whether user is about to operate on data outside of the download area.private boolean
UnGlueAction. checkSelectionOneNodeAtMostOneWay(java.util.Collection<? extends OsmPrimitive> selection)
Checks if the selection consists of something we can work with.private boolean
UnGlueAction. checkSelectionOneWayAnyNodes(java.util.Collection<? extends OsmPrimitive> selection)
Checks if the selection consists of something we can work with.protected boolean
SimplifyWayAction. confirmWayWithNodesOutsideBoundingBox(java.util.List<? extends OsmPrimitive> primitives)
static void
CopyAction. copy(OsmDataLayer source, java.util.Collection<OsmPrimitive> primitives)
Copies the given primitive ids to the clipboard.static void
DownloadReferrersAction. downloadReferrers(OsmDataLayer targetLayer, java.util.Collection<OsmPrimitive> children)
Downloads the primitives referring to the primitives inprimitives
into the target layertargetLayer
.private Way
SelectNonBranchingWaySequences. findWay(java.util.Collection<OsmPrimitive> selection)
Finds out if the current selection can be extended.private static Way
SelectNonBranchingWaySequences. findWay(java.util.Collection<OsmPrimitive> selection, Node node)
Finds out if the current selection can be extended.protected java.util.Set<OsmPrimitive>
UploadSelectionAction. getModifiedPrimitives(java.util.Collection<OsmPrimitive> primitives)
PurgeCommand
PurgeAction. getPurgeCommand(java.util.Collection<OsmPrimitive> sel)
Creates command to purge selected OSM primitives.protected boolean
UploadSelectionAction. hasPrimitivesToDelete(java.util.Collection<OsmPrimitive> primitives)
Replies true if there is at least one non-new, deleted primitive inprimitives
static SequenceCommand
OrthogonalizeAction. orthogonalize(java.lang.Iterable<OsmPrimitive> selection)
Rectifies the selectionprotected void
UploadSelectionAction. processPostParentChecker(OsmDataLayer layer, java.util.Collection<OsmPrimitive> toUpload)
protected void
AbstractInfoAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
AlignInCircleAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
AlignInLineAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
AutoScaleAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
CombineWayAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
CopyAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
CopyCoordinatesAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
CopyUrlAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
CreateCircleAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
CreateMultipolygonAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
Enable this action only if something is selectedprotected void
DeleteAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
DistributeAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
DownloadAlongWayAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
DownloadReferrersAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
DuplicateAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
FollowLineAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
InfoAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
InfoWebAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
JoinAreasAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
JoinNodeWayAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
JosmAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
Override in subclasses to update the enabled state of the action if the collection of selected primitives changes.protected void
MergeNodesAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
MergeSelectionAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
MirrorAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
MoveAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
MoveNodeAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
OrthogonalizeAction.Undo. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
OrthogonalizeAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
PasteTagsAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
PurgeAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
ReverseWayAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
SelectSharedChildObjectsAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
SimplifyWayAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
SplitWayAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
UnGlueAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
UnJoinNodeWayAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
UpdateModifiedAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
UpdateSelectionAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
UploadSelectionAction. updateEnabledState(java.util.Collection<? extends OsmPrimitive> selection)
protected void
JosmAction. updateEnabledStateOnModifiableSelection(java.util.Collection<? extends OsmPrimitive> selection)
Updates enabled state according to selected primitives, if any.static void
UpdateSelectionAction. updatePrimitives(java.util.Collection<OsmPrimitive> selection)
Updates the data for for theOsmPrimitive
s inselection
with the data currently kept on the server.void
UploadSelectionAction. uploadPrimitives(OsmDataLayer layer, java.util.Collection<OsmPrimitive> toUpload)
Uploads the primitives intoUpload
to the server.Constructor parameters in org.openstreetmap.josm.actions with type arguments of type OsmPrimitive Constructor Description DeletedParentsChecker(OsmDataLayer layer, java.util.Collection<OsmPrimitive> toUpload)
Constructs a newDeletedParentsChecker
.RestorePropertyAction(java.util.function.IntFunction<java.lang.String> keyFn, java.util.function.IntFunction<java.lang.String> valueFn, java.util.function.Supplier<OsmPrimitive> objectSp, javax.swing.ListSelectionModel selectionModel)
Constructs a newRestorePropertyAction
. -
Uses of OsmPrimitive in org.openstreetmap.josm.actions.corrector
Classes in org.openstreetmap.josm.actions.corrector with type parameters of type OsmPrimitive Modifier and Type Class Description class
TagCorrector<P extends OsmPrimitive>
Abstract base class for automatic tag corrections.Methods in org.openstreetmap.josm.actions.corrector that return types with arguments of type OsmPrimitive Modifier and Type Method Description (package private) static java.util.Map<OsmPrimitive,java.util.List<TagCorrection>>
ReverseWayTagCorrector. getTagCorrectionsMap(Way way)
Method parameters in org.openstreetmap.josm.actions.corrector with type arguments of type OsmPrimitive Modifier and Type Method Description protected java.util.Collection<Command>
TagCorrector. applyCorrections(DataSet dataSet, java.util.Map<OsmPrimitive,java.util.List<TagCorrection>> tagCorrectionsMap, java.util.Map<OsmPrimitive,java.util.List<RoleCorrection>> roleCorrectionMap, java.lang.String description)
Creates the commands to correct the tags. -
Uses of OsmPrimitive in org.openstreetmap.josm.actions.downloadtasks
Fields in org.openstreetmap.josm.actions.downloadtasks with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Map<OsmPrimitive,java.time.Instant>
DownloadOsmChangeTask.HistoryLoaderAndListener. toLoad
Methods in org.openstreetmap.josm.actions.downloadtasks that return types with arguments of type OsmPrimitive Modifier and Type Method Description protected java.util.Set<OsmPrimitive>
DownloadTaskList. getCompletePrimitives(DataSet ds)
Replies the set of ids of all complete, non-new primitives (i.e.java.util.Set<OsmPrimitive>
DownloadTaskList. getDownloadedPrimitives()
Replies the set of primitive ids which have been downloaded by this task listprivate static java.util.Map<OsmPrimitive,java.time.Instant>
DownloadOsmChangeTask. getToLoad(DataSet ds)
Get the primitives to load more informationprotected java.util.Collection<OsmPrimitive>
DownloadOsmTask. searchPotentiallyDeletedPrimitives(DataSet ds)
protected java.util.Collection<OsmPrimitive>
DownloadOsmTask.AbstractInternalTask. searchPrimitivesToUpdate(Bounds bounds, DataSet ds)
Look for primitives deleted on server (thus absent from downloaded data) but still present in existing data layerMethod parameters in org.openstreetmap.josm.actions.downloadtasks with type arguments of type OsmPrimitive Modifier and Type Method Description protected void
DownloadTaskList. handlePotentiallyDeletedPrimitives(java.util.Set<OsmPrimitive> potentiallyDeleted)
Processes a set of primitives (given by a set of their ids) which might be deleted on the server.private void
DownloadOsmChangeTask.DownloadTask. loadLastVersions(java.util.Map<OsmPrimitive,java.time.Instant> toLoad, java.util.Map<OsmPrimitive,java.time.Instant> toLoadNext)
This gets the last versions of references primitives.protected void
DownloadTaskList. updatePotentiallyDeletedPrimitives(java.util.Set<OsmPrimitive> potentiallyDeleted)
Updates the local state of a set of primitives (given by a set of primitive ids) with the state currently held on the server.Constructor parameters in org.openstreetmap.josm.actions.downloadtasks with type arguments of type OsmPrimitive Constructor Description HistoryLoaderAndListener(java.util.Map<OsmPrimitive,java.time.Instant> toLoad)
-
Uses of OsmPrimitive in org.openstreetmap.josm.actions.mapmode
Fields in org.openstreetmap.josm.actions.mapmode declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
SelectAction. currentHighlight
elements that have been highlighted in the previous iteration.private OsmPrimitive
SelectAction.CycleManager. cycleStart
Fields in org.openstreetmap.josm.actions.mapmode with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Collection<OsmPrimitive>
SelectAction.CycleManager. cycleList
private java.util.Set<OsmPrimitive>
DrawAction. newHighlights
private java.util.Set<OsmPrimitive>
DrawAction. oldHighlights
private java.util.List<OsmPrimitive>
SplitMode.SplitWayActionConcrete. selection
Methods in org.openstreetmap.josm.actions.mapmode that return OsmPrimitive Modifier and Type Method Description private OsmPrimitive
SelectAction.CycleManager. cycleSetup(OsmPrimitive nearest, java.awt.Point p)
Determine primitive to be selected and build cycleListMethods in org.openstreetmap.josm.actions.mapmode that return types with arguments of type OsmPrimitive Modifier and Type Method Description private java.util.Collection<OsmPrimitive>
SelectAction.CycleManager. cyclePrims()
Modifies current selection state and returns the next element in a selection cycle given bycycleList
fieldjava.util.Collection<OsmPrimitive>
DrawAction. getInProgressSelection()
Get selected primitives, while draw action is in progress.private static java.util.Optional<OsmPrimitive>
SplitMode. getPrimitiveAtPoint(java.awt.Point p)
Methods in org.openstreetmap.josm.actions.mapmode with parameters of type OsmPrimitive Modifier and Type Method Description private static void
DrawAction. addRemoveSelection(DataSet ds, OsmPrimitive toAdd, OsmPrimitive toRemove)
private static void
DrawAction. addSelection(DataSet ds, OsmPrimitive toAdd)
private static void
DrawAction. clearSelection(DataSet ds, OsmPrimitive toRemove)
private static java.lang.String
SplitMode. createLabelText(OsmPrimitive primitive)
Create the text for aOsmPrimitive
label, including its keysprivate static java.lang.String
SplitMode. createLabelText(OsmPrimitive primitive, boolean includeKeys)
Create the text for aOsmPrimitive
labelprivate OsmPrimitive
SelectAction.CycleManager. cycleSetup(OsmPrimitive nearest, java.awt.Point p)
Determine primitive to be selected and build cycleListprivate java.awt.Cursor
SelectAction. getCursor(OsmPrimitive nearbyStuff)
works out which cursor should be displayed for most of SelectAction's features.private boolean
SelectAction. repaintIfRequired(OsmPrimitive newHighlight)
private static void
DrawAction. setSelection(DataSet ds, OsmPrimitive toSet)
private static void
DrawAction. updatePreservedFlag(OsmPrimitive osm, boolean state)
Method parameters in org.openstreetmap.josm.actions.mapmode with type arguments of type OsmPrimitive Modifier and Type Method Description private void
SplitMode. addHoverHighlightListener(java.awt.Component c, java.util.Collection<OsmPrimitive> prims)
Add a mouse listener to the componentc
which highlightsprims
when the mouse pointer is hovering over the componentprivate void
DrawAction. determineCurrentBaseNodeAndPreviousNode(java.util.Collection<OsmPrimitive> selection)
Helper function that sets fields currentBaseNode and previousNodeprivate static java.lang.String
DrawAction. getTitle(boolean newNode, Node n, java.util.Collection<OsmPrimitive> newSelection, java.util.Map<Way,java.util.List<Node>> reuseWays, boolean extendedWay)
private void
DrawAction. insertNodeIntoAllNearbySegments(java.util.List<WaySegment> wss, Node n, java.util.Collection<OsmPrimitive> newSelection, java.util.Collection<Command> cmds, java.util.Map<Way,java.util.List<Node>> reuseWays)
private void
DeleteAction. repaintIfRequired(java.util.Set<OsmPrimitive> newHighlights, WaySegment newHighlightedWaySegment)
private void
SelectAction. selectPrims(java.util.Collection<OsmPrimitive> prims, boolean released, boolean area)
private static void
DrawAction. setSelection(DataSet ds, java.util.Collection<OsmPrimitive> toSet)
-
Uses of OsmPrimitive in org.openstreetmap.josm.actions.search
Methods in org.openstreetmap.josm.actions.search with parameters of type OsmPrimitive Modifier and Type Method Description protected java.util.Collection<Bounds>
InView. getBounds(OsmPrimitive primitive)
-
Uses of OsmPrimitive in org.openstreetmap.josm.actions.upload
Methods in org.openstreetmap.josm.actions.upload with parameters of type OsmPrimitive Modifier and Type Method Description boolean
FixDataHook.FixData. fixKeys(java.util.Map<java.lang.String,java.lang.String> keys, OsmPrimitive osm)
Checks if data needs to be fixed and change keysboolean
FixDataHook.FixDataKey. fixKeys(java.util.Map<java.lang.String,java.lang.String> keys, OsmPrimitive osm)
boolean
FixDataHook.FixDataSpace. fixKeys(java.util.Map<java.lang.String,java.lang.String> keys, OsmPrimitive osm)
boolean
FixDataHook.FixDataTag. fixKeys(java.util.Map<java.lang.String,java.lang.String> keys, OsmPrimitive osm)
Method parameters in org.openstreetmap.josm.actions.upload with type arguments of type OsmPrimitive Modifier and Type Method Description private static boolean
ApiPreconditionCheckerHook. checkMaxNodes(java.util.Collection<OsmPrimitive> primitives, long maxNodes)
-
Uses of OsmPrimitive in org.openstreetmap.josm.command
Fields in org.openstreetmap.josm.command declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
ChangeCommand. newOsm
private OsmPrimitive
AddCommand. osm
The primitive to add to the dataset.private OsmPrimitive
ChangeCommand. osm
private OsmPrimitive
ChangePropertyCommand.OsmPseudoCommand. osm
private OsmPrimitive
ChangePropertyKeyCommand.SinglePrimitivePseudoCommand. osm
private OsmPrimitive
DeleteCommand.DeleteChildCommand. osm
Fields in org.openstreetmap.josm.command with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Map<OsmPrimitive,PrimitiveData>
DeleteCommand. clonedPrimitives
private java.util.Map<OsmPrimitive,PrimitiveData>
Command. cloneMap
the map of OsmPrimitives in the original state to OsmPrimitives in cloned stateprivate java.util.List<OsmPrimitive>
AddPrimitivesCommand. createdPrimitives
private java.util.Collection<OsmPrimitive>
SelectCommand. newSelection
the primitives to select when executing the commandprivate java.util.List<OsmPrimitive>
ChangePropertyCommand. objects
All primitives that are affected with this command.private java.util.List<? extends OsmPrimitive>
ChangePropertyKeyCommand. objects
All primitives, that are affected with this command.private java.util.Collection<OsmPrimitive>
SelectCommand. oldSelection
the selection before applying the new selection(package private) java.util.Map<OsmPrimitive,PrimitiveData>
Command.CloneVisitor. orig
private java.util.Collection<? extends OsmPrimitive>
DeleteCommand. toDelete
The primitives that get deleted.protected java.util.List<OsmPrimitive>
PurgeCommand. toPurge
Methods in org.openstreetmap.josm.command that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
ChangeCommand. getNewOsmPrimitive()
Returns the new OSM primitive.OsmPrimitive
ChangeCommand. getOsmPrimitive()
Returns the original OSM primitive to modify.Methods in org.openstreetmap.josm.command that return types with arguments of type OsmPrimitive Modifier and Type Method Description (package private) static java.util.List<? extends OsmPrimitive>
SplitWayCommand. findVias(Relation r, java.lang.String type)
java.util.Collection<OsmPrimitive>
AddCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
AddPrimitivesCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
ChangePropertyCommand.OsmPseudoCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
ChangePropertyKeyCommand.SinglePrimitivePseudoCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
Command. getParticipatingPrimitives()
Return the primitives that take part in this command.java.util.Collection<? extends OsmPrimitive>
DeleteCommand.DeleteChildCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
DeleteCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
PseudoCommand. getParticipatingPrimitives()
Return the primitives that take part in this command.java.util.Collection<? extends OsmPrimitive>
PurgeCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
SelectCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
SequenceCommand. getParticipatingPrimitives()
java.util.Collection<? extends OsmPrimitive>
TransformNodesCommand. getParticipatingPrimitives()
static java.util.List<OsmPrimitive>
PurgeCommand. topoSort(java.util.Collection<OsmPrimitive> sel)
Sorts a collection of primitives such that for each object its referrers come later in the sorted collection.Methods in org.openstreetmap.josm.command with parameters of type OsmPrimitive Modifier and Type Method Description static Command
ChangePropertyCommand. build(OsmPrimitive source, Tagged target)
Calculate theChangePropertyCommand
that is needed to change the tags in source to be equal to those in target.protected static void
AddCommand. checkNodeStyles(OsmPrimitive osm)
PrimitiveData
Command. getOrig(OsmPrimitive osm)
Lets other commands access the original version of the object.Method parameters in org.openstreetmap.josm.command with type arguments of type OsmPrimitive Modifier and Type Method Description static PurgeCommand
PurgeCommand. build(java.util.Collection<OsmPrimitive> sel, java.util.List<OsmPrimitive> toPurgeAdditionally)
Creates a newPurgeCommand
to purge selected OSM primitives.static PurgeCommand
PurgeCommand. build(java.util.Collection<OsmPrimitive> sel, java.util.List<OsmPrimitive> toPurgeAdditionally)
Creates a newPurgeCommand
to purge selected OSM primitives.boolean
DeleteCommand.DeletionCallback. checkAndConfirmOutlyingDelete(java.util.Collection<? extends OsmPrimitive> primitives, java.util.Collection<? extends OsmPrimitive> ignore)
Check whether user is about to delete data outside of the download area.static int
Command. checkOutlyingOrIncompleteOperation(java.util.Collection<? extends OsmPrimitive> primitives, java.util.Collection<? extends OsmPrimitive> ignore)
Check whether user is about to operate on data outside of the download area.protected static java.util.Collection<Node>
DeleteCommand. computeNodesToDelete(java.util.Collection<OsmPrimitive> primitivesToDelete)
Replies the collection of nodes referred to by primitives inprimitivesToDelete
which can be deleted too.static Command
DeleteCommand. delete(java.util.Collection<? extends OsmPrimitive> selection)
Try to delete all given primitives.static Command
DeleteCommand. delete(java.util.Collection<? extends OsmPrimitive> selection, boolean alsoDeleteNodesInWay)
Try to delete all given primitives.static Command
DeleteCommand. delete(java.util.Collection<? extends OsmPrimitive> selection, boolean alsoDeleteNodesInWay, boolean silent)
Try to delete all given primitives.static Command
DeleteCommand. deleteWithReferences(java.util.Collection<? extends OsmPrimitive> selection)
Delete the primitives and everything they reference.static Command
DeleteCommand. deleteWithReferences(java.util.Collection<? extends OsmPrimitive> selection, boolean silent)
Delete the primitives and everything they reference.(package private) static void
SplitWayCommand. downloadMissingMembers(java.util.Set<OsmPrimitive> incompleteMembers)
void
AbstractNodesCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
AddCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
AddPrimitivesCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
ChangeCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
ChangeMembersCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
ChangePropertyCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
ChangePropertyKeyCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
ChangeRelationMemberRoleCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
abstract void
Command. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
Fill in the changed data this command operates on.void
DeleteCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
MoveCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
PurgeCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
SelectCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
SequenceCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
TransformNodesCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
private static boolean
PurgeCommand. hasOnlyIncompleteMembers(Relation r, java.util.Collection<OsmPrimitive> toPurge, java.util.Collection<? extends OsmPrimitive> moreToPurge)
private void
ChangePropertyCommand. init(java.util.Collection<? extends OsmPrimitive> objects)
Initialize the instance by finding what objects will be modifiedprivate void
PurgeCommand. init(java.util.Collection<OsmPrimitive> toPurge, java.util.Collection<OsmPrimitive> makeIncomplete)
protected void
PurgeCommand. saveIncomplete(java.util.Collection<OsmPrimitive> makeIncomplete)
static SplitWayCommand
SplitWayCommand. split(Way way, java.util.List<Node> atNodes, java.util.Collection<? extends OsmPrimitive> selection)
Splits the wayway
at the nodes inatNodes
and replies the result of this process in an instance ofSplitWayCommand
.static SplitWayCommand
SplitWayCommand. splitWay(Way way, java.util.List<java.util.List<Node>> wayChunks, java.util.Collection<? extends OsmPrimitive> selection)
Splits the wayway
into chunks ofwayChunks
and replies the result of this process in an instance ofSplitWayCommand
.static SplitWayCommand
SplitWayCommand. splitWay(Way way, java.util.List<java.util.List<Node>> wayChunks, java.util.Collection<? extends OsmPrimitive> selection, SplitWayCommand.Strategy splitStrategy)
Splits the wayway
into chunks ofwayChunks
and replies the result of this process in an instance ofSplitWayCommand
.static java.util.Optional<SplitWayCommand>
SplitWayCommand. splitWay(Way way, java.util.List<java.util.List<Node>> wayChunks, java.util.Collection<? extends OsmPrimitive> selection, SplitWayCommand.Strategy splitStrategy, SplitWayCommand.WhenRelationOrderUncertain whenRelationOrderUncertain)
Splits the wayway
into chunks ofwayChunks
and replies the result of this process in an instance ofSplitWayCommand
.static java.util.List<OsmPrimitive>
PurgeCommand. topoSort(java.util.Collection<OsmPrimitive> sel)
Sorts a collection of primitives such that for each object its referrers come later in the sorted collection.Constructors in org.openstreetmap.josm.command with parameters of type OsmPrimitive Constructor Description AddCommand(DataSet data, OsmPrimitive osm)
Creates the command and specify the element to add in the context of the given data set.ChangeCommand(DataSet data, OsmPrimitive osm, OsmPrimitive newOsm)
Constructs a newChangeCommand
in the context of a given data set.ChangeCommand(OsmPrimitive osm, OsmPrimitive newOsm)
Constructs a newChangeCommand
in the context ofosm
data set.ChangePropertyCommand(OsmPrimitive object, java.lang.String key, java.lang.String value)
Creates a command to change one tag of one objectChangePropertyKeyCommand(OsmPrimitive object, java.lang.String key, java.lang.String newKey)
Constructs a newChangePropertyKeyCommand
.DeleteChildCommand(OsmPrimitive osm)
DeleteCommand(DataSet dataset, OsmPrimitive data)
Constructor for a single data item.DeleteCommand(OsmPrimitive data)
Constructor.MoveCommand(DataSet ds, OsmPrimitive p, EastNorth start, EastNorth end)
Constructs a newMoveCommand
to move a primitive.MoveCommand(OsmPrimitive osm, double x, double y)
Constructs a newMoveCommand
to move a primitive.MoveCommand(OsmPrimitive p, EastNorth start, EastNorth end)
Constructs a newMoveCommand
to move a primitive.OsmPseudoCommand(OsmPrimitive osm)
SinglePrimitivePseudoCommand(java.lang.String name, OsmPrimitive osm, javax.swing.Icon icon)
Constructor parameters in org.openstreetmap.josm.command with type arguments of type OsmPrimitive Constructor Description ChangePropertyCommand(java.util.Collection<? extends OsmPrimitive> objects, java.lang.String key, java.lang.String value)
Creates a command to change one tag of multiple objectsChangePropertyCommand(java.util.Collection<? extends OsmPrimitive> objects, java.util.Map<java.lang.String,java.lang.String> tags)
Creates a command to change multiple tags of multiple objectsChangePropertyCommand(DataSet ds, java.util.Collection<? extends OsmPrimitive> objects, java.util.Map<java.lang.String,java.lang.String> tags)
Creates a command to change multiple tags of multiple objectsChangePropertyKeyCommand(java.util.Collection<? extends OsmPrimitive> objects, java.lang.String key, java.lang.String newKey)
Constructs a newChangePropertyKeyCommand
.ChangePropertyKeyCommand(DataSet ds, java.util.Collection<? extends OsmPrimitive> objects, java.lang.String key, java.lang.String newKey)
Constructs a newChangePropertyKeyCommand
.DeleteCommand(java.util.Collection<? extends OsmPrimitive> data)
Constructor.DeleteCommand(DataSet dataset, java.util.Collection<? extends OsmPrimitive> data)
Constructor for a collection of data to be deleted in the context of a specific data setMoveCommand(java.util.Collection<OsmPrimitive> objects, double x, double y)
Constructs a newMoveCommand
and assign the initial object set and movement vector.MoveCommand(java.util.Collection<OsmPrimitive> objects, EastNorth offset)
Constructs a newMoveCommand
to move a collection of primitives.MoveCommand(java.util.Collection<OsmPrimitive> objects, EastNorth start, EastNorth end)
Constructs a newMoveCommand
to move a collection of primitives.MoveCommand(DataSet ds, java.util.Collection<OsmPrimitive> objects, double x, double y)
Constructs a newMoveCommand
and assign the initial object set and movement vector.MoveCommand(DataSet ds, java.util.Collection<OsmPrimitive> objects, EastNorth start, EastNorth end)
Constructs a newMoveCommand
to move a collection of primitives.PurgeCommand(DataSet data, java.util.Collection<OsmPrimitive> toPurge, java.util.Collection<OsmPrimitive> makeIncomplete)
Constructs a newPurgeCommand
(does not handle conflicts).RotateCommand(java.util.Collection<? extends OsmPrimitive> objects, EastNorth currentEN)
Creates a RotateCommand.ScaleCommand(java.util.Collection<? extends OsmPrimitive> objects, EastNorth currentEN)
Creates a ScaleCommand.SelectCommand(DataSet dataset, java.util.Collection<OsmPrimitive> newSelection)
Constructs a new select command.TransformNodesCommand(java.util.Collection<? extends OsmPrimitive> objects)
Creates a TransformNodesObject. -
Uses of OsmPrimitive in org.openstreetmap.josm.command.conflict
Fields in org.openstreetmap.josm.command.conflict with type parameters of type OsmPrimitive Modifier and Type Field Description private Conflict<? extends OsmPrimitive>
ConflictAddCommand. conflict
private Conflict<? extends OsmPrimitive>
CoordinateConflictResolveCommand. conflict
the conflict to resolveprivate Conflict<? extends OsmPrimitive>
DeletedStateConflictResolveCommand. conflict
the conflict to resolveprivate Conflict<? extends OsmPrimitive>
ModifiedConflictResolveCommand. conflict
the conflict to resolveprivate Conflict<? extends OsmPrimitive>
TagConflictResolveCommand. conflict
the conflict to resolveprivate Conflict<? extends OsmPrimitive>
VersionConflictResolveCommand. conflict
the conflict to resolveMethod parameters in org.openstreetmap.josm.command.conflict with type arguments of type OsmPrimitive Modifier and Type Method Description void
ConflictAddCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
CoordinateConflictResolveCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
DeletedStateConflictResolveCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
ModifiedConflictResolveCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
RelationMemberConflictResolverCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
TagConflictResolveCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
VersionConflictResolveCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
void
WayNodesConflictResolverCommand. fillModifiedData(java.util.Collection<OsmPrimitive> modified, java.util.Collection<OsmPrimitive> deleted, java.util.Collection<OsmPrimitive> added)
Constructor parameters in org.openstreetmap.josm.command.conflict with type arguments of type OsmPrimitive Constructor Description ConflictAddCommand(DataSet ds, Conflict<? extends OsmPrimitive> conflict)
Constructs a newConflictAddCommand
.CoordinateConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict, MergeDecisionType decision)
constructor for coordinate conflictDeletedStateConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict, MergeDecisionType decision)
Constructs a newDeletedStateConflictResolveCommand
.ModifiedConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict)
constructorRelationMemberConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict, java.util.List<RelationMember> mergedMembers)
Constructs a newRelationMemberConflictResolverCommand
.TagConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict, java.util.List<TagMergeItem> mergeItems)
constructorVersionConflictResolveCommand(Conflict<? extends OsmPrimitive> conflict)
constructorWayNodesConflictResolverCommand(Conflict<? extends OsmPrimitive> conflict, java.util.List<Node> mergedNodeList)
Constructs a newWayNodesConflictResolverCommand
. -
Uses of OsmPrimitive in org.openstreetmap.josm.data
Fields in org.openstreetmap.josm.data with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.List<OsmPrimitive>
APIDataSet. toAdd
private java.util.List<OsmPrimitive>
APIDataSet. toDelete
private java.util.List<OsmPrimitive>
APIDataSet. toUpdate
Methods in org.openstreetmap.josm.data that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.List<OsmPrimitive>
APIDataSet. getPrimitives()
Replies all primitivesjava.util.List<OsmPrimitive>
APIDataSet. getPrimitivesToAdd()
Replies the primitives which should be added to the OSM databasejava.util.List<OsmPrimitive>
APIDataSet. getPrimitivesToDelete()
Replies the primitives which should be deleted in the OSM databasejava.util.List<OsmPrimitive>
APIDataSet. getPrimitivesToUpdate()
Replies the primitives which should be updated in the OSM databaseMethods in org.openstreetmap.josm.data with parameters of type OsmPrimitive Modifier and Type Method Description static APIDataSet.APIOperation
APIDataSet.APIOperation. of(OsmPrimitive osm)
Determines the API operation to perform on a primitive.Method parameters in org.openstreetmap.josm.data with type arguments of type OsmPrimitive Modifier and Type Method Description void
APIDataSet. init(java.util.Collection<OsmPrimitive> primitives)
Initializes the API data set with the modified primitives, ignores unmodified primitives.Constructor parameters in org.openstreetmap.josm.data with type arguments of type OsmPrimitive Constructor Description APIDataSet(java.util.Collection<OsmPrimitive> primitives)
initializes the API data set with the primitives inprimitives
-
Uses of OsmPrimitive in org.openstreetmap.josm.data.conflict
Classes in org.openstreetmap.josm.data.conflict with type parameters of type OsmPrimitive Modifier and Type Class Description class
Conflict<T extends OsmPrimitive>
Represents a conflict between twoOsmPrimitive
s.Fields in org.openstreetmap.josm.data.conflict declared as OsmPrimitive Modifier and Type Field Description private T
Conflict. my
private T
Conflict. their
Fields in org.openstreetmap.josm.data.conflict with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.List<Conflict<? extends OsmPrimitive>>
ConflictCollection. conflicts
Methods in org.openstreetmap.josm.data.conflict that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Set<OsmPrimitive>
ConflictCollection. getMyConflictParties()
Replies the set ofOsmPrimitive
which participate in the role of "my" in the conflicts managed by this collection.java.util.Collection<Conflict<? extends OsmPrimitive>>
ConflictCollection. getNodeConflicts()
Returns the list of conflicts involving nodes.java.util.Collection<Conflict<? extends OsmPrimitive>>
ConflictCollection. getRelationConflicts()
Returns the list of conflicts involving nodes.java.util.Set<OsmPrimitive>
ConflictCollection. getTheirConflictParties()
Replies the set ofOsmPrimitive
which participate in the role of "their" in the conflicts managed by this collection.java.util.Collection<Conflict<? extends OsmPrimitive>>
ConflictCollection. getWayConflicts()
Returns the list of conflicts involving nodes.Methods in org.openstreetmap.josm.data.conflict with parameters of type OsmPrimitive Modifier and Type Method Description void
ConflictCollection. add(OsmPrimitive my, OsmPrimitive their)
Conflict<?>
ConflictCollection. getConflictForMy(OsmPrimitive my)
Replies the conflict for theOsmPrimitive
my
, null if no such conflict exists.Conflict<?>
ConflictCollection. getConflictForTheir(OsmPrimitive their)
Replies the conflict for theOsmPrimitive
their
, null if no such conflict exists.boolean
ConflictCollection. hasConflictForMy(OsmPrimitive my)
Replies true, if this collection includes a conflict formy
.boolean
ConflictCollection. hasConflictForTheir(OsmPrimitive their)
Replies true, if this collection includes a conflict fortheir
.boolean
Conflict. isMatchingMy(OsmPrimitive my)
boolean
Conflict. isMatchingTheir(OsmPrimitive their)
boolean
Conflict. isParticipating(OsmPrimitive primitive)
Replies true if the primitiveprimitive
is participating in this conflictvoid
ConflictCollection. removeForMy(OsmPrimitive my)
Removes any conflicts for theOsmPrimitive
my
.void
ConflictCollection. removeForTheir(OsmPrimitive their)
Removes any conflicts for theOsmPrimitive
their
. -
Uses of OsmPrimitive in org.openstreetmap.josm.data.gpx
Methods in org.openstreetmap.josm.data.gpx with parameters of type OsmPrimitive Modifier and Type Method Description static double
GpxDistance. getLowestDistance(OsmPrimitive p, GpxData gpxData)
Find the distance between a point and a dataset of surveyed points -
Uses of OsmPrimitive in org.openstreetmap.josm.data.osm
Subclasses of OsmPrimitive in org.openstreetmap.josm.data.osm Modifier and Type Class Description class
Node
One node data, consisting of one world coordinate waypoint.class
Relation
A relation, having a set of tags and any number (0...n) of members.class
Way
One full way, consisting of a list of waynodes
.Fields in org.openstreetmap.josm.data.osm declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
RelationToChildReference. child
private OsmPrimitive
RelationMember. member
Fields in org.openstreetmap.josm.data.osm with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionAddEvent. add
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionToggleEvent. add
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionReplaceEvent. added
private Storage<OsmPrimitive>
DataSet. allPrimitives
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionAddEvent. current
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionRemoveEvent. current
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionReplaceEvent. current
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionToggleEvent. current
private java.util.Set<OsmPrimitive>
DataSet. currentSelectedPrimitives
The current selected primitives.private java.util.Set<OsmPrimitive>
DataSetMerger. objectsToDelete
private java.util.Set<OsmPrimitive>
DataSelectionListener.AbstractSelectionEvent. old
private java.lang.Class<? extends OsmPrimitive>
OsmPrimitiveType. osmClass
private java.util.Map<PrimitiveId,OsmPrimitive>
DataSet. primitivesMap
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionRemoveEvent. remove
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionToggleEvent. remove
private java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionReplaceEvent. removed
private java.util.LinkedList<java.util.Collection<? extends OsmPrimitive>>
DataSet. selectionHistory
History of selections - shared by plugins and SelectionListDialogMethods in org.openstreetmap.josm.data.osm with type parameters of type OsmPrimitive Modifier and Type Method Description <T extends OsmPrimitive>
java.util.Collection<T>Relation. getMemberPrimitives(java.lang.Class<T> tClass)
Returns theOsmPrimitive
s of the specified type referred to by at least one member of this relation.<T extends OsmPrimitive>
java.util.Collection<T>DataSet. getPrimitives(java.util.function.Predicate<? super OsmPrimitive> predicate)
private <T extends OsmPrimitive>
java.util.stream.Stream<T>OsmPrimitive. referrers(boolean allowWithoutDataset, java.lang.Class<T> filter)
<T extends OsmPrimitive>
java.util.stream.Stream<T>OsmPrimitive. referrers(java.lang.Class<T> filter)
Gets all primitives in the current dataset that reference this primitive.Methods in org.openstreetmap.josm.data.osm that return OsmPrimitive Modifier and Type Method Description static OsmPrimitive
OsmUtils. createPrimitive(java.lang.String assertion)
Creates a new OSM primitive around (0,0) according to the given assertion.static OsmPrimitive
OsmUtils. createPrimitive(java.lang.String assertion, LatLon around, boolean enforceLocation)
Creates a new OSM primitive according to the given assertion.OsmPrimitive
RelationToChildReference. getChild()
Get the actual childOsmPrimitive
RelationMember. getMember()
protected OsmPrimitive
DataSetMerger. getMergeTarget(OsmPrimitive mergeSource)
OsmPrimitive
DataSet. getPrimitiveById(PrimitiveId primitiveId)
private OsmPrimitive
DataSet. getPrimitiveByIdChecked(PrimitiveId primitiveId)
Show message and stack trace in log in case primitive is not foundOsmPrimitive
OsmPrimitiveType. newInstance(long uniqueId, boolean allowNegative)
Constructs a new primitive instance (node, way or relation) without version.OsmPrimitive
OsmPrimitiveType. newVersionedInstance(long id, int version)
Constructs a new primitive instance (node, way or relation) with given version.Methods in org.openstreetmap.josm.data.osm that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Map<OsmPrimitive,OsmPrimitive>
DataSet. clonePrimitives(java.lang.Iterable<Node> nodes, java.lang.Iterable<Way> ways, java.lang.Iterable<Relation> relations)
Clones the specified primitives into this data set.java.util.Map<OsmPrimitive,OsmPrimitive>
DataSet. clonePrimitives(java.lang.Iterable<Node> nodes, java.lang.Iterable<Way> ways, java.lang.Iterable<Relation> relations)
Clones the specified primitives into this data set.static java.util.Comparator<OsmPrimitive>
OsmPrimitiveComparator. comparingNames()
Returns a comparator comparing primitives by their name usingDefaultNameFormatter
.static java.util.Comparator<OsmPrimitive>
OsmPrimitiveComparator. comparingUniqueId()
Returns a comparator comparing primitives by their unique id.java.util.List<? extends OsmPrimitive>
Relation. findRelationMembers(java.lang.String role)
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionAddEvent. getAdded()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionChangeEvent. getAdded()
Gets the primitives that have been added to the selection.java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionRemoveEvent. getAdded()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionReplaceEvent. getAdded()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionToggleEvent. getAdded()
static java.util.Collection<OsmPrimitive>
FilterModel. getAffectedPrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
Returns the list of primitives whose filtering can be affected by change in primitivejava.util.Collection<OsmPrimitive>
DataSet. getAllSelected()
java.util.List<OsmPrimitive>
Relation. getChildren()
java.util.Collection<OsmPrimitive>
Relation. getIncompleteMembers()
Replies a collection with the incomplete children this relation refers to.java.util.Collection<OsmPrimitive>
IOsmDataManager. getInProgressSelection()
Replies the current selected OSM primitives, from a end-user point of view.java.util.Collection<OsmPrimitive>
OsmDataManager. getInProgressSelection()
java.util.Set<OsmPrimitive>
Relation. getMemberPrimitives()
Replies the set ofOsmPrimitive
s referred to by at least one member of this relation.java.util.List<OsmPrimitive>
Relation. getMemberPrimitivesList()
Returns an unmodifiable list of theOsmPrimitive
s referred to by at least one member of this relation.java.util.Set<OsmPrimitive>
DataSelectionListener.AbstractSelectionEvent. getOldSelection()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionChangeEvent. getOldSelection()
Gets the previous selectionjava.lang.Class<? extends OsmPrimitive>
OsmPrimitiveType. getOsmClass()
Returns the OSM class for data values, or null.static java.util.Set<OsmPrimitive>
OsmPrimitive. getReferrer(java.util.Collection<? extends OsmPrimitive> primitives)
Replies the collection of referring primitives for the primitives inprimitives
.java.util.List<OsmPrimitive>
OsmPrimitive. getReferrers()
java.util.List<OsmPrimitive>
OsmPrimitive. getReferrers(boolean allowWithoutDataset)
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionAddEvent. getRemoved()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionChangeEvent. getRemoved()
Gets the primitives that have been removed from the selection.java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionRemoveEvent. getRemoved()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionReplaceEvent. getRemoved()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionToggleEvent. getRemoved()
java.util.Collection<OsmPrimitive>
DataSet. getSelectedNodesAndWays()
Returns selected nodes and ways.java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionAddEvent. getSelection()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionChangeEvent. getSelection()
Gets the new selection.java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionRemoveEvent. getSelection()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionReplaceEvent. getSelection()
java.util.Set<OsmPrimitive>
DataSelectionListener.SelectionToggleEvent. getSelection()
java.util.LinkedList<java.util.Collection<? extends OsmPrimitive>>
DataSet. getSelectionHistory()
Replies the history of JOSM selectionsstatic java.util.Comparator<OsmPrimitive>
OsmPrimitiveComparator. orderingNodesWaysRelations()
Returns a comparator ordering the primitives by type in the order NODE, WAY, RELATIONstatic java.util.Comparator<OsmPrimitive>
OsmPrimitiveComparator. orderingRelationsWaysNodes()
Returns a comparator ordering the primitives by type in the order RELATION, WAY, NODEstatic java.util.Comparator<OsmPrimitive>
OsmPrimitiveComparator. orderingWaysRelationsNodes()
Returns a comparator ordering the primitives by type in the order WAY, RELATION, NODEjava.util.List<OsmPrimitive>
DataSet. searchPrimitives(BBox bbox)
Searches for all primitives in the given bounding boxjava.util.Set<OsmPrimitive>
DataSet. unlinkReferencesToPrimitive(OsmPrimitive referencedPrimitive)
Removes all references from other primitives to the referenced primitive.Methods in org.openstreetmap.josm.data.osm with parameters of type OsmPrimitive Modifier and Type Method Description protected void
DataSetMerger. addConflict(OsmPrimitive my, OsmPrimitive their)
void
BBox. addPrimitive(OsmPrimitive primitive, double extraSpace)
Extends this bbox to include the bbox of the primitive extended by extraSpace.void
DataSet. addPrimitive(OsmPrimitive primitive)
Adds a primitive to the dataset.void
DataSet. addPrimitiveRecursive(OsmPrimitive primitive)
Adds recursively a primitive, and all its children, to the dataset.protected void
OsmPrimitive. addReferrer(OsmPrimitive referrer)
Add new referrer.private void
DatasetConsistencyTest. checkReferredPrimitive(OsmPrimitive primitive, OsmPrimitive parent)
void
Node. cloneFrom(OsmPrimitive osm, boolean copyChildren)
void
OsmPrimitive. cloneFrom(OsmPrimitive other)
Get and write all attributes from the parameter.protected void
OsmPrimitive. cloneFrom(OsmPrimitive other, boolean copyChildren)
Get and write all attributes from the parameter.void
Relation. cloneFrom(OsmPrimitive osm, boolean copyMembers)
void
Way. cloneFrom(OsmPrimitive osm, boolean copyNodes)
(package private) void
DataSet. fireChangesetIdChanged(OsmPrimitive primitive, int oldChangesetId, int newChangesetId)
(package private) void
DataSet. firePrimitiveFlagsChanged(OsmPrimitive primitive)
(package private) void
DataSet. fireTagsChanged(OsmPrimitive prim, java.util.Map<java.lang.String,java.lang.String> originalKeys)
java.lang.String
DefaultNameFormatter. formatAsHtmlUnorderedList(OsmPrimitive primitive)
Formats the given primitive as an HTML unordered list.static Changeset
Changeset. fromPrimitive(OsmPrimitive primitive)
Creates a changeset with the data obtained from the given preset, i.e., thechangeset id
,user
, andtimestamp
.protected OsmPrimitive
DataSetMerger. getMergeTarget(OsmPrimitive mergeSource)
static java.util.Set<RelationToChildReference>
RelationToChildReference. getRelationToChildReferences(OsmPrimitive child)
Replies a set of allRelationToChildReference
s for a given child primitive.boolean
Node. hasEqualSemanticAttributes(OsmPrimitive other, boolean testInterestingTagsOnly)
boolean
OsmPrimitive. hasEqualSemanticAttributes(OsmPrimitive other)
Replies true if this primitive and other are equal with respect to their semantic attributes.(package private) boolean
OsmPrimitive. hasEqualSemanticAttributes(OsmPrimitive other, boolean testInterestingTagsOnly)
boolean
Relation. hasEqualSemanticAttributes(OsmPrimitive other, boolean testInterestingTagsOnly)
boolean
Way. hasEqualSemanticAttributes(OsmPrimitive other, boolean testInterestingTagsOnly)
(package private) boolean
OsmPrimitive. hasEqualSemanticFlags(OsmPrimitive other)
boolean
OsmPrimitive. hasEqualTechnicalAttributes(OsmPrimitive other)
Replies true if this primitive and other are equal with respect to their technical attributes.private boolean
OsmPrimitive. isOuterMemberOfMultipolygon(OsmPrimitive ref)
boolean
DataSet. isSelected(OsmPrimitive osm)
private boolean
DataSetMerger. mergeById(OsmPrimitive source)
Tries to merge a primitivesource
into an existing primitive with the same id.void
Node. mergeFrom(OsmPrimitive other)
Merges the technical and semantical attributes fromother
onto this.void
OsmPrimitive. mergeFrom(OsmPrimitive other)
Merges the technical and semantic attributes fromother
onto this.protected void
DataSetMerger. mergePrimitive(OsmPrimitive source, java.util.Collection<? extends OsmPrimitive> candidates)
Merges a primitive onto primitives dataset.boolean
RelationMember. refersTo(OsmPrimitive primitive)
Replies true, if this relation member refers to the primitiveprivate static java.lang.String
DataIntegrityProblemException. relevantCommands(OsmPrimitive... p)
void
Relation. removeMembersFor(OsmPrimitive primitive)
removes all members with member.member == primitive(package private) void
DataSet. removePrimitive(OsmPrimitive primitive)
private void
DataSet. removePrimitiveFromStorage(OsmPrimitive primitive)
private void
DataSet. removePrimitiveImpl(OsmPrimitive primitive)
protected void
OsmPrimitive. removeReferrer(OsmPrimitive referrer)
Remove referrer.java.util.Set<Relation>
DataSet. unlinkPrimitiveFromRelations(OsmPrimitive primitive)
removes all references from relations in this dataset to this primitivejava.util.Set<OsmPrimitive>
DataSet. unlinkReferencesToPrimitive(OsmPrimitive referencedPrimitive)
Removes all references from other primitives to the referenced primitive.Method parameters in org.openstreetmap.josm.data.osm with type arguments of type OsmPrimitive Modifier and Type Method Description private boolean
DataSet. doSelectionChange(java.util.function.Function<java.util.Set<OsmPrimitive>,DataSelectionListener.SelectionChangeEvent> command)
Do a selection change.private void
OsmPrimitive. doVisitReferrers(java.util.function.Consumer<OsmPrimitive> visitor)
void
FilterModel. executeFilters(java.util.Collection<? extends OsmPrimitive> primitives)
Runs the filter on a list of primitives that are part of the edit data set.(package private) void
DataSet. firePrimitivesAdded(java.util.Collection<? extends OsmPrimitive> added, boolean wasIncomplete)
(package private) void
DataSet. firePrimitivesRemoved(java.util.Collection<? extends OsmPrimitive> removed, boolean wasComplete)
java.lang.String
DefaultNameFormatter. formatAsHtmlUnorderedList(java.util.Collection<? extends OsmPrimitive> primitives, int maxElements)
Formats the given collection of primitives as an HTML unordered list.static java.util.Collection<OsmPrimitive>
FilterModel. getAffectedPrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
Returns the list of primitives whose filtering can be affected by change in primitivejava.util.Collection<RelationMember>
Relation. getMembersFor(java.util.Collection<? extends OsmPrimitive> primitives)
Obtains all members with member.member == primitivestatic java.util.Set<Relation>
OsmPrimitive. getParentRelations(java.util.Collection<? extends OsmPrimitive> primitives)
Replies the set of referring relations<T extends OsmPrimitive>
java.util.Collection<T>DataSet. getPrimitives(java.util.function.Predicate<? super OsmPrimitive> predicate)
static java.util.Set<OsmPrimitive>
OsmPrimitive. getReferrer(java.util.Collection<? extends OsmPrimitive> primitives)
Replies the collection of referring primitives for the primitives inprimitives
.static java.util.Set<RelationToChildReference>
RelationToChildReference. getRelationToChildReferences(java.util.Collection<? extends OsmPrimitive> children)
Replies a set of allRelationToChildReference
s for a collection of child primitivesprotected void
DataSetMerger. mergePrimitive(OsmPrimitive source, java.util.Collection<? extends OsmPrimitive> candidates)
Merges a primitive onto primitives dataset.void
Relation. removeMembersFor(java.util.Collection<? extends OsmPrimitive> primitives)
removes all members with member.member == primitiveConstructors in org.openstreetmap.josm.data.osm with parameters of type OsmPrimitive Constructor Description DataIntegrityProblemException(java.lang.String message, java.lang.String htmlMessage, OsmPrimitive... p)
Constructs a newDataIntegrityProblemException
.DataSet(OsmPrimitive... osmPrimitives)
Constructs a newDataSet
initially filled with the given primitives.RelationMember(java.lang.String role, OsmPrimitive member)
Constructs a newRelationMember
.RelationToChildReference(Relation parent, int position, java.lang.String role, OsmPrimitive child)
Create a newRelationToChildReference
Constructor parameters in org.openstreetmap.josm.data.osm with type arguments of type OsmPrimitive Constructor Description AbstractSelectionEvent(DataSet source, java.util.Set<OsmPrimitive> old)
OsmPrimitiveType(java.lang.String apiTypeName, java.lang.Class<? extends OsmPrimitive> osmClass, java.lang.Class<? extends PrimitiveData> dataClass, UniqueIdGenerator idGenerator)
SelectionAddEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> toAdd)
SelectionAddEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> toAdd)
SelectionRemoveEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> toRemove)
SelectionRemoveEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> toRemove)
SelectionReplaceEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> newSelection)
SelectionReplaceEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> newSelection)
SelectionToggleEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> toToggle)
SelectionToggleEvent(DataSet source, java.util.Set<OsmPrimitive> old, java.util.stream.Stream<OsmPrimitive> toToggle)
-
Uses of OsmPrimitive in org.openstreetmap.josm.data.osm.event
Fields in org.openstreetmap.josm.data.osm.event declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
PrimitiveFlagsChangedEvent. primitive
private OsmPrimitive
TagsChangedEvent. primitive
Fields in org.openstreetmap.josm.data.osm.event with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.List<OsmPrimitive>
ChangesetIdChangedEvent. primitives
private java.util.List<? extends OsmPrimitive>
PrimitivesAddedEvent. primitives
private java.util.List<? extends OsmPrimitive>
PrimitivesRemovedEvent. primitives
Methods in org.openstreetmap.josm.data.osm.event that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
TagsChangedEvent. getPrimitive()
Returns the primitive affected by the change.Methods in org.openstreetmap.josm.data.osm.event that return types with arguments of type OsmPrimitive Modifier and Type Method Description abstract java.util.Collection<? extends OsmPrimitive>
AbstractDatasetChangedEvent. getPrimitives()
Returns list of primitives modified by this event.java.util.List<OsmPrimitive>
ChangesetIdChangedEvent. getPrimitives()
java.util.Collection<OsmPrimitive>
DataChangedEvent. getPrimitives()
java.util.Collection<? extends OsmPrimitive>
FilterChangedEvent. getPrimitives()
java.util.List<? extends OsmPrimitive>
NodeMovedEvent. getPrimitives()
java.util.Collection<? extends OsmPrimitive>
PrimitiveFlagsChangedEvent. getPrimitives()
java.util.List<? extends OsmPrimitive>
PrimitivesAddedEvent. getPrimitives()
java.util.List<? extends OsmPrimitive>
PrimitivesRemovedEvent. getPrimitives()
java.util.List<? extends OsmPrimitive>
RelationMembersChangedEvent. getPrimitives()
java.util.List<? extends OsmPrimitive>
TagsChangedEvent. getPrimitives()
java.util.List<? extends OsmPrimitive>
WayNodesChangedEvent. getPrimitives()
Constructors in org.openstreetmap.josm.data.osm.event with parameters of type OsmPrimitive Constructor Description PrimitiveFlagsChangedEvent(DataSet dataSet, OsmPrimitive primitive)
Constructs a newPrimitiveFlagsChangedEvent
.TagsChangedEvent(DataSet dataSet, OsmPrimitive primitive, java.util.Map<java.lang.String,java.lang.String> originalKeys)
Constructs a newTagsChangedEvent
.Constructor parameters in org.openstreetmap.josm.data.osm.event with type arguments of type OsmPrimitive Constructor Description ChangesetIdChangedEvent(DataSet dataSet, java.util.List<OsmPrimitive> primitives, int oldChangesetId, int newChangesetId)
Constructs a newChangesetIdChangedEvent
.PrimitivesAddedEvent(DataSet dataSet, java.util.Collection<? extends OsmPrimitive> primitives, boolean wasIncomplete)
Constructs a newPrimitivesAddedEvent
.PrimitivesRemovedEvent(DataSet dataSet, java.util.Collection<? extends OsmPrimitive> primitives, boolean wasComplete)
Constructs a newPrimitivesRemovedEvent
. -
Uses of OsmPrimitive in org.openstreetmap.josm.data.osm.history
Methods in org.openstreetmap.josm.data.osm.history with parameters of type OsmPrimitive Modifier and Type Method Description static HistoryOsmPrimitive
HistoryOsmPrimitive. forOsmPrimitive(OsmPrimitive p)
Constructors in org.openstreetmap.josm.data.osm.history with parameters of type OsmPrimitive Constructor Description HistoryOsmPrimitive(OsmPrimitive p)
Constructs a newHistoryOsmPrimitive
from an existingOsmPrimitive
. -
Uses of OsmPrimitive in org.openstreetmap.josm.data.osm.search
Methods in org.openstreetmap.josm.data.osm.search with parameters of type OsmPrimitive Modifier and Type Method Description protected abstract java.util.Collection<Bounds>
SearchCompiler.InArea. getBounds(OsmPrimitive primitive)
protected java.util.Collection<Bounds>
SearchCompiler.InDataSourceArea. getBounds(OsmPrimitive primitive)
protected java.util.Collection<Bounds>
SearchCompiler.NotOutsideDataSourceArea. getBounds(OsmPrimitive primitive)
protected java.lang.Long
SearchCompiler.AreaSize. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.ChangesetId. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.Id. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.MemberCountRange. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.NodeCountRange. getNumber(OsmPrimitive osm)
protected abstract java.lang.Long
SearchCompiler.RangeMatch. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.TagCountRange. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.TimestampRange. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.Version. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.WayCountRange. getNumber(OsmPrimitive osm)
protected java.lang.Long
SearchCompiler.WayLength. getNumber(OsmPrimitive osm)
boolean
SearchCompiler.And. match(OsmPrimitive osm)
boolean
SearchCompiler.Child. match(OsmPrimitive osm)
boolean
SearchCompiler.Closed. match(OsmPrimitive osm)
boolean
SearchCompiler.Deleted. match(OsmPrimitive osm)
boolean
SearchCompiler.ExactType. match(OsmPrimitive osm)
boolean
SearchCompiler.HasRole. match(OsmPrimitive osm)
boolean
SearchCompiler.InArea. match(OsmPrimitive osm)
boolean
SearchCompiler.Incomplete. match(OsmPrimitive osm)
boolean
SearchCompiler.MapCSSMatch. match(OsmPrimitive osm)
abstract boolean
SearchCompiler.Match. match(OsmPrimitive osm)
Tests whether the primitive matches this criterion.boolean
SearchCompiler.Modified. match(OsmPrimitive osm)
boolean
SearchCompiler.New. match(OsmPrimitive osm)
boolean
SearchCompiler.Not. match(OsmPrimitive osm)
boolean
SearchCompiler.Nth. match(OsmPrimitive osm)
boolean
SearchCompiler.Or. match(OsmPrimitive osm)
boolean
SearchCompiler.Parent. match(OsmPrimitive osm)
boolean
SearchCompiler.Preset. match(OsmPrimitive osm)
boolean
SearchCompiler.RangeMatch. match(OsmPrimitive osm)
boolean
SearchCompiler.RoleMatch. match(OsmPrimitive osm)
boolean
SearchCompiler.Selected. match(OsmPrimitive osm)
boolean
SearchCompiler.TaggedMatch. match(OsmPrimitive osm)
boolean
SearchCompiler.Untagged. match(OsmPrimitive osm)
boolean
SearchCompiler.UserMatch. match(OsmPrimitive osm)
boolean
SearchCompiler.Xor. match(OsmPrimitive osm)
boolean
SearchCompiler.Match. test(OsmPrimitive object)
-
Uses of OsmPrimitive in org.openstreetmap.josm.data.osm.visitor
Fields in org.openstreetmap.josm.data.osm.visitor with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Map<OsmPrimitive,PrimitiveData>
MergeSourceBuildingVisitor. mappedPrimitives
Methods in org.openstreetmap.josm.data.osm.visitor with parameters of type OsmPrimitive Modifier and Type Method Description protected boolean
MergeSourceBuildingVisitor. isAlreadyRemembered(OsmPrimitive primitive)
protected boolean
MergeSourceBuildingVisitor. isInSelectionBase(OsmPrimitive primitive)
protected void
MergeSourceBuildingVisitor. rememberIncomplete(OsmPrimitive primitive)
Method parameters in org.openstreetmap.josm.data.osm.visitor with type arguments of type OsmPrimitive Modifier and Type Method Description static java.util.Collection<Node>
AllNodesVisitor. getAllNodes(java.util.Collection<? extends OsmPrimitive> osms)
Replies all nodes contained by the given primitives -
Uses of OsmPrimitive in org.openstreetmap.josm.data.osm.visitor.paint.relations
Method parameters in org.openstreetmap.josm.data.osm.visitor.paint.relations with type arguments of type OsmPrimitive Modifier and Type Method Description private void
MultipolygonCache. updateMultipolygonsReferringTo(AbstractDatasetChangedEvent event, java.util.Collection<? extends OsmPrimitive> primitives, DataSet ds)
private java.util.Collection<java.util.Map<Relation,Multipolygon>>
MultipolygonCache. updateMultipolygonsReferringTo(AbstractDatasetChangedEvent event, java.util.Collection<? extends OsmPrimitive> primitives, DataSet ds, java.util.Collection<java.util.Map<Relation,Multipolygon>> initialMaps)
-
Uses of OsmPrimitive in org.openstreetmap.josm.data.validation
Fields in org.openstreetmap.josm.data.validation with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Collection<OsmPrimitive>
ValidationTask. formerValidatedPrimitives
protected static java.util.function.Predicate<OsmPrimitive>
Test. IN_DOWNLOADED_AREA
protected static java.util.function.Predicate<OsmPrimitive>
Test. IN_DOWNLOADED_AREA_STRICT
private java.util.Collection<OsmPrimitive>
ValidationTask. initialPrimitives
private java.util.Collection<? extends OsmPrimitive>
TestError.Builder. primitives
private java.util.Collection<? extends OsmPrimitive>
TestError. primitives
The affected primitivesMethods in org.openstreetmap.josm.data.validation with type parameters of type OsmPrimitive Modifier and Type Method Description <T extends OsmPrimitive>
java.util.stream.Stream<T>TestError. primitives(java.lang.Class<T> type)
Gets all primitives of the given type affected by this errorMethods in org.openstreetmap.josm.data.validation that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Collection<? extends OsmPrimitive>
TestError. getPrimitives()
Gets the list of primitives affected by this errorprivate static java.util.Set<OsmPrimitive>
ValidationTask. getRelevantParents(java.util.Collection<OsmPrimitive> primitives)
Find objects parent objects of given objects which should be checked for geometry problems or mismatches between child tags and parent tags.Methods in org.openstreetmap.josm.data.validation with parameters of type OsmPrimitive Modifier and Type Method Description abstract void
Test.TagTest. check(OsmPrimitive p)
Checks the tags of the given primitive.TestError.Builder
TestError.Builder. highlight(OsmPrimitive... highlighted)
Sets the primitives to highlight when selecting this error.protected static boolean
Test. isBuilding(OsmPrimitive p)
Determines if the specified primitive denotes a building.boolean
Test. isPrimitiveUsable(OsmPrimitive p)
Determines if the primitive is usable for tests.protected static boolean
Test. isResidentialArea(OsmPrimitive p)
Determines if the specified primitive denotes a residential area.TestError.Builder
TestError.Builder. primitives(OsmPrimitive... primitives)
Sets the primitives affected by this error.void
ValidatorVisitor. visit(OsmPrimitive primitive)
Visit a OSM primitive, e.g.Method parameters in org.openstreetmap.josm.data.validation with type arguments of type OsmPrimitive Modifier and Type Method Description protected Command
Test. deletePrimitivesIfNeeded(java.util.Collection<? extends OsmPrimitive> primitives)
Build a Delete command on all primitives that have not yet been deleted manually by user, or by another error fix.private static java.util.Set<OsmPrimitive>
ValidationTask. getRelevantParents(java.util.Collection<OsmPrimitive> primitives)
Find objects parent objects of given objects which should be checked for geometry problems or mismatches between child tags and parent tags.TestError.Builder
TestError.Builder. highlight(java.util.Collection<? extends OsmPrimitive> highlighted)
Sets the primitives to highlight when selecting this error.boolean
TestError. isConcerned(java.util.Set<? extends OsmPrimitive> given)
Check if any of the primitives in this error occurs in the given set of primitives.TestError.Builder
TestError.Builder. primitives(java.util.Collection<? extends OsmPrimitive> primitives)
Sets the primitives affected by this error.void
Test. removeIrrelevantErrors(java.util.Collection<? extends OsmPrimitive> given)
Filter the list of errors, remove all which do not concern the given list of primitivesvoid
Test. visit(java.util.Collection<OsmPrimitive> selection)
Visits all primitives to be tested. -
Uses of OsmPrimitive in org.openstreetmap.josm.data.validation.tests
Fields in org.openstreetmap.josm.data.validation.tests with type parameters of type OsmPrimitive Modifier and Type Field Description protected static java.util.function.Predicate<OsmPrimitive>
OverlappingWays. IGNORED
private java.util.Map<java.lang.String,java.util.Collection<OsmPrimitive>>
Addresses. knownAddresses
private java.util.List<OsmPrimitive>
PowerLines. powerStations
private java.util.Set<OsmPrimitive>
PowerLines. refDiscontinuities
private MultiMap<DuplicateWay.WayPair,OsmPrimitive>
DuplicateWay. ways
Bag of all waysprivate MultiMap<DuplicateWay.WayPairNoTags,OsmPrimitive>
DuplicateWay. waysNoTags
Bag of all ways, regardless of tagsMethods in org.openstreetmap.josm.data.validation.tests that return OsmPrimitive Modifier and Type Method Description private static OsmPrimitive[]
UntaggedNode. castPrim(Tagged n)
Methods in org.openstreetmap.josm.data.validation.tests that return types with arguments of type OsmPrimitive Modifier and Type Method Description private static java.util.Collection<? extends OsmPrimitive>
MultipolygonTest. combineRelAndPrimitives(Relation r, java.util.Collection<? extends OsmPrimitive> primitives)
Methods in org.openstreetmap.josm.data.validation.tests with parameters of type OsmPrimitive Modifier and Type Method Description void
OpeningHourTest. addErrorsForPrimitive(OsmPrimitive p, java.util.Collection<TestError> errors)
Checks the tags of the given primitive and adds validation errors to the given list.private void
WayConnectedToArea. addPossibleError(Way w, Node wayNode, OsmPrimitive p, OsmPrimitive area)
void
ConditionalKeys. check(OsmPrimitive p)
void
InternetTags. check(OsmPrimitive p)
void
Lanes. check(OsmPrimitive p)
void
MapCSSTagChecker. check(OsmPrimitive p)
Visiting call for primitives.void
NameMismatch. check(OsmPrimitive p)
Check a primitive for a name mismatch.void
OpeningHourTest. check(OsmPrimitive p)
void
TagChecker. check(OsmPrimitive p)
Checks the primitive tagsprotected void
Addresses. checkDistance(OsmPrimitive house, java.util.Collection<Way> street)
protected java.util.List<TestError>
Addresses. checkForDuplicate(OsmPrimitive p)
protected TestError
Addresses. checkHouseNumbersWithoutStreet(OsmPrimitive p)
Checks for house numbers for which the street is unknown.private void
TagChecker. checkMultipolygonTags(OsmPrimitive p)
protected void
Lanes. checkNumberOfLanes(OsmPrimitive p)
protected void
Lanes. checkNumberOfLanesByKey(OsmPrimitive p, java.lang.String lanesKey, java.lang.String message)
(package private) java.util.List<TestError>
OpeningHourTest. checkOpeningHourSyntax(java.lang.String key, java.lang.String value, OsmPrimitive p, java.util.Locale locale)
Checks for a correct usage of the opening hour syntax of thevalue
given, and returns a list containing validation errors or an empty list.private void
TagChecker. checkPresetsTypes(OsmPrimitive p, java.util.Collection<TaggingPreset> matchingPresets, java.util.Map<java.lang.String,java.lang.String> tags)
Check that the primitive matches the preset types for the presetprivate void
TagChecker. checkRegions(OsmPrimitive p, java.util.Collection<TaggingPreset> matchingPresets)
Check that the preset is valid for the region the primitive is inprivate void
TagChecker. checkSingleTagComplex(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String key, java.lang.String value)
private void
TagChecker. checkSingleTagKeySimple(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String s, java.lang.String key)
private void
TagChecker. checkSingleTagValueSimple(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String s, java.lang.String key, java.lang.String value)
private static java.util.Map<java.lang.String,java.lang.String>
DuplicateRelation. cleanedKeys(OsmPrimitive p)
return tags of a primitive after removing all discardable tagsprivate void
Addresses. collectAddress(OsmPrimitive p)
adds the OsmPrimitive to the address map if it complies to the restrictionsprivate static boolean
PowerLines. concernsWaterArea(OsmPrimitive p)
Check if primitive has a tag that marks it as a water area or boundary of a water area.private int
TagChecker. countDeprecated(OsmPrimitive p)
Command
MapCSSTagCheckerFixCommand. createCommand(OsmPrimitive p, Selector matchingSelector)
Creates the fixingCommand
for the given primitive.private void
SharpAngles. createNearlyOverlappingError(double angle, Way way, OsmPrimitive primitive)
private TestError
OpeningHourTest. createTestError(Severity severity, java.lang.String message, java.lang.String key, java.lang.String value, java.lang.String prettifiedValue, OsmPrimitive p)
Returns the real test error given to JOSM validator.private boolean
InternetTags. doTest(OsmPrimitive p, java.lang.String k, java.lang.String[] keys, AbstractValidator validator, int code)
Potentially validates a given primitive key against a given validator.private java.util.List<TestError>
InternetTags. doValidateTag(OsmPrimitive p, java.lang.String k, java.lang.String v, AbstractValidator validator, int code)
Validates a given primitive tag against a given validator.static java.lang.String
MapCSSTagCheckerFixCommand. evaluateObject(java.lang.Object obj, OsmPrimitive p, Selector matchingSelector)
private void
TagChecker. filterDeprecatedTags(OsmPrimitive p, java.lang.String key, java.util.List<java.lang.String> fixVals)
(package private) Command
MapCSSTagCheckerRule. fixPrimitive(OsmPrimitive p)
Constructs a fix in terms of aCommand
for theOsmPrimitive
if the error is fixable, ornull
otherwise.protected java.util.List<Relation>
Addresses. getAndCheckAssociatedStreets(OsmPrimitive p)
(package private) java.lang.String
MapCSSTagCheckerRule. getDescription(Selector selector, OsmPrimitive p)
Constructs a (localized) description for this deprecation check.(package private) java.lang.String
MapCSSTagCheckerRule. getDescriptionForMatchingSelector(OsmPrimitive p, Selector matchingSelector)
Constructs a (localized) description for this deprecation check where any placeholders are replaced by values of the matched selector.(package private) static double
Addresses. getDistance(OsmPrimitive a, OsmPrimitive b)
returns rough distance between two OsmPrimitivesjava.util.Collection<TestError>
MapCSSTagChecker. getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity)
(package private) static java.util.Collection<TestError>
MapCSSTagChecker. getErrorsForPrimitive(OsmPrimitive p, boolean includeOtherSeverity, java.util.Collection<java.util.Set<MapCSSTagCheckerRule>> checksCol)
(package private) java.util.List<TestError>
MapCSSTagCheckerRule. getErrorsForPrimitive(OsmPrimitive p, Selector matchingSelector, Environment env, Test tester)
Constructs aTestError
for the given primitive, or returns null if the primitive does not give rise to an error.(package private) java.lang.String
MapCSSTagCheckerRule. getMessage(Selector selector, OsmPrimitive p)
Constructs a (localized) message for this deprecation check.(package private) static java.util.List<java.lang.String>
Addresses. getSimplifiedAddresses(OsmPrimitive p)
private static boolean
TagChecker. hasAcceptedPrimaryTagForMultipolygon(OsmPrimitive p)
Check if a multipolygon has a main tag that describes the type of area.(package private) static boolean
Addresses. hasAddress(OsmPrimitive p)
protected void
Addresses. initAddressMap(OsmPrimitive primitive)
(package private) static java.lang.String
MapCSSTagCheckerRule. insertArguments(Selector matchingSelector, java.lang.String s, OsmPrimitive p)
Replaces occurrences of{i.key}
,{i.value}
,{i.tag}
ins
by the corresponding key/value/tag of theindex
-thCondition
ofmatchingSelector
.private static boolean
WayConnectedToArea. isArea(OsmPrimitive p)
private static boolean
PowerLines. isBuildingIn(OsmPrimitive p, java.util.Collection<java.lang.String> values)
Helper function to check if building tag is a certain value.protected abstract boolean
UnconnectedWays. isCandidate(OsmPrimitive p)
protected boolean
UnconnectedWays.UnconnectedHighways. isCandidate(OsmPrimitive p)
protected boolean
UnconnectedWays.UnconnectedNaturalOrLanduse. isCandidate(OsmPrimitive p)
protected boolean
UnconnectedWays.UnconnectedPower. isCandidate(OsmPrimitive p)
protected boolean
UnconnectedWays.UnconnectedRailways. isCandidate(OsmPrimitive p)
protected boolean
UnconnectedWays.UnconnectedWaterways. isCandidate(OsmPrimitive p)
private static boolean
Coastlines. isCoastline(OsmPrimitive osm)
(package private) static boolean
CrossingWays. isCoastline(OsmPrimitive w)
(package private) static boolean
CrossingWays. isHighway(OsmPrimitive w)
private static boolean
PowerLines. isMinorLine(OsmPrimitive p)
Checks if the given primitive denotes a power=minor_line.(package private) static boolean
Addresses. isPOI(OsmPrimitive p)
private static boolean
PowerLines. isPowerIn(OsmPrimitive p, java.util.Collection<java.lang.String> values)
Helper function to check if power tag is a certain value.protected static boolean
PowerLines. isPowerStation(OsmPrimitive p)
Determines if the specified primitive denotes a power station.boolean
CrossingWays.Boundaries. isPrimitiveUsable(OsmPrimitive p)
boolean
CrossingWays.Ways. isPrimitiveUsable(OsmPrimitive w)
boolean
CycleDetector. isPrimitiveUsable(OsmPrimitive p)
boolean
Lanes. isPrimitiveUsable(OsmPrimitive p)
boolean
LongSegment. isPrimitiveUsable(OsmPrimitive p)
boolean
NameMismatch. isPrimitiveUsable(OsmPrimitive p)
boolean
UnconnectedWays. isPrimitiveUsable(OsmPrimitive p)
boolean
UntaggedWay. isPrimitiveUsable(OsmPrimitive p)
(package private) static boolean
CrossingWays. isProposedOrAbandoned(OsmPrimitive w)
(package private) static boolean
CrossingWays. isRailway(OsmPrimitive w)
(package private) static boolean
CrossingWays. isSubwayOrTramOrRazed(OsmPrimitive w)
private static boolean
LongSegment. isUsableNode(OsmPrimitive p)
private static boolean
LongSegment. isUsableWay(OsmPrimitive p)
(package private) static boolean
CrossingWays. isWaterArea(OsmPrimitive w)
private void
NameMismatch. missingTranslation(OsmPrimitive p, java.lang.String name)
Report a missing translation.private static boolean
OverlappingWays. parentMultipolygonConcernsArea(OsmPrimitive p)
private void
TagChecker. spellCheckKey(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String key)
private void
TagChecker. tagCheck(TaggingPreset preset, OsmPrimitive p, LatLon center, java.util.List<? extends TaggingPresetItem> tagInformation)
Perform the checks against a given preset valueprivate void
TagChecker. tagCheckReal(TaggingPreset preset, OsmPrimitive p, LatLon center, java.util.List<? extends RegionSpecific> data)
Perform the checks against a given preset valueprivate void
TagChecker. tagCheckReal(TaggingPreset preset, OsmPrimitive p, LatLon center, RegionSpecific data)
Perform the checks against a given preset valueboolean
MapCSSTagCheckerRule. test(OsmPrimitive primitive)
private void
WayConnectedToArea. testForError(Way w, Node wayNode, OsmPrimitive p)
private void
Highways. testSourceMaxspeed(OsmPrimitive p, boolean testContextHighway)
private void
TagChecker. tryGuess(OsmPrimitive p, java.lang.String key, java.lang.String value, MultiMap<OsmPrimitive,java.lang.String> withErrors)
java.util.List<TestError>
ConditionalKeys. validatePrimitive(OsmPrimitive p)
Validate a primitivejava.util.List<TestError>
InternetTags. validateTag(OsmPrimitive p, java.lang.String k, AbstractValidator validator, int code)
Validates a given primitive tag against a given validator.(package private) Selector
MapCSSTagCheckerRule. whichSelectorMatchesPrimitive(OsmPrimitive primitive)
Method parameters in org.openstreetmap.josm.data.validation.tests with type arguments of type OsmPrimitive Modifier and Type Method Description private void
MultipolygonTest. addRepeatedMemberError(Relation r, java.util.List<OsmPrimitive> repeatedMembers, int errorCode, java.lang.String msg)
private void
TagChecker. checkSingleTagComplex(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String key, java.lang.String value)
private void
TagChecker. checkSingleTagKeySimple(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String s, java.lang.String key)
private void
TagChecker. checkSingleTagValueSimple(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String s, java.lang.String key, java.lang.String value)
private static java.util.Collection<? extends OsmPrimitive>
MultipolygonTest. combineRelAndPrimitives(Relation r, java.util.Collection<? extends OsmPrimitive> primitives)
(package private) static boolean
PowerLines. detectDiscontinuity(Way way, java.util.Set<OsmPrimitive> nRefDiscontinuities, java.util.List<java.util.Set<Node>> sRefDiscontinuities)
Detects ref=* numbering discontinuities in the given way.private void
TagChecker. spellCheckKey(MultiMap<OsmPrimitive,java.lang.String> withErrors, OsmPrimitive p, java.lang.String key)
private void
MapCSSTagChecker. testPartial(MultiMap<java.lang.String,MapCSSTagCheckerRule> currentCheck, java.util.Set<OsmPrimitive> tested, java.util.Set<OsmPrimitive> surrounding)
private void
TagChecker. tryGuess(OsmPrimitive p, java.lang.String key, java.lang.String value, MultiMap<OsmPrimitive,java.lang.String> withErrors)
private void
MapCSSTagChecker. visit(java.lang.String url, java.util.Set<MapCSSTagCheckerRule> checksForUrl, java.util.Collection<OsmPrimitive> selection, java.util.Set<OsmPrimitive> surrounding)
Perform the checks for one check urlvoid
MapCSSTagChecker. visit(java.util.Collection<OsmPrimitive> selection)
(package private) void
MapCSSTagChecker. visit(java.util.Collection<OsmPrimitive> selection, java.util.function.Predicate<java.lang.String> urlPredicate)
Execute the rules from the URLs matching the given predicate.void
TagChecker. visit(java.util.Collection<OsmPrimitive> selection)
-
Uses of OsmPrimitive in org.openstreetmap.josm.data.validation.util
Fields in org.openstreetmap.josm.data.validation.util with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Collection<OsmPrimitive>
AggregatePrimitivesVisitor. aggregatedData
Aggregated dataMethods in org.openstreetmap.josm.data.validation.util that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Collection<OsmPrimitive>
AggregatePrimitivesVisitor. visit(java.util.Collection<OsmPrimitive> data)
Visits a collection of primitivesMethods in org.openstreetmap.josm.data.validation.util with parameters of type OsmPrimitive Modifier and Type Method Description protected void
NameVisitor. setIcon(OsmPrimitive p)
Method parameters in org.openstreetmap.josm.data.validation.util with type arguments of type OsmPrimitive Modifier and Type Method Description java.util.Collection<OsmPrimitive>
AggregatePrimitivesVisitor. visit(java.util.Collection<OsmPrimitive> data)
Visits a collection of primitivesvoid
MultipleNameVisitor. visit(java.util.Collection<? extends OsmPrimitive> data)
Visits a collection of primitives -
Uses of OsmPrimitive in org.openstreetmap.josm.gui
Fields in org.openstreetmap.josm.gui with type parameters of type OsmPrimitive Modifier and Type Field Description java.util.function.Predicate<OsmPrimitive>
NavigatableComponent. isSelectablePredicate
To determine if a primitive is currently selectable.Methods in org.openstreetmap.josm.gui that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
NavigatableComponent. getNearestNodeOrWay(java.awt.Point p, java.util.function.Predicate<OsmPrimitive> predicate, boolean useSelected)
The *result* depends on the current map selection state IF use_selected is true.Methods in org.openstreetmap.josm.gui that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.List<OsmPrimitive>
NavigatableComponent. getAllNearest(java.awt.Point p, java.util.Collection<OsmPrimitive> ignore, java.util.function.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, java.util.function.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, java.util.function.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.function.Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.java.util.Collection<OsmPrimitive>
SelectionManager. getSelectedObjects(boolean alt)
Return a list of all objects in the active/last selection, respecting the different modifier.Methods in org.openstreetmap.josm.gui with parameters of type OsmPrimitive Modifier and Type Method Description private javax.swing.JLabel
MapStatus.Collector. popupBuildPrimitiveLabels(OsmPrimitive osm)
Builds the labels with all necessary listeners for the info popup for the given OsmPrimitiveMethod parameters in org.openstreetmap.josm.gui with type arguments of type OsmPrimitive Modifier and Type Method Description java.util.List<OsmPrimitive>
NavigatableComponent. getAllNearest(java.awt.Point p, java.util.Collection<OsmPrimitive> ignore, java.util.function.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, java.util.Collection<OsmPrimitive> ignore, java.util.function.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, java.util.function.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, java.util.function.Predicate<OsmPrimitive> predicate)
Convenience method toNavigatableComponent.getNearestNode(Point, Predicate, boolean)
.Node
NavigatableComponent. getNearestNode(java.awt.Point p, java.util.function.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, java.util.function.Predicate<OsmPrimitive> predicate, boolean useSelected, java.util.Collection<OsmPrimitive> preferredRefs)
The *result* depends on the current map selection state IF use_selected is trueNode
NavigatableComponent. getNearestNode(java.awt.Point p, java.util.function.Predicate<OsmPrimitive> predicate, boolean useSelected, java.util.Collection<OsmPrimitive> preferredRefs)
The *result* depends on the current map selection state IF use_selected is trueOsmPrimitive
NavigatableComponent. getNearestNodeOrWay(java.awt.Point p, java.util.function.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, java.util.function.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, java.util.function.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, java.util.function.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, java.util.function.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, java.util.function.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.function.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, java.util.function.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, java.util.function.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, java.util.function.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, java.util.function.Predicate<OsmPrimitive> predicate)
Convenience method toNavigatableComponent.getNearestWaySegment(Point, Predicate, boolean)
.WaySegment
NavigatableComponent. getNearestWaySegment(java.awt.Point p, java.util.function.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, java.util.function.Predicate<OsmPrimitive> predicate, boolean useSelected, java.util.Collection<OsmPrimitive> preferredRefs)
The *result* depends on the current map selection state IF use_selected is true.WaySegment
NavigatableComponent. getNearestWaySegment(java.awt.Point p, java.util.function.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, java.util.function.Predicate<OsmPrimitive> predicate)
The result *order* depends on the current map selection state.java.util.List<WaySegment>
NavigatableComponent. getNearestWaySegments(java.awt.Point p, java.util.function.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, java.util.function.Predicate<OsmPrimitive> predicate)
The *result* does not depend on the current map selection state, neither does the result *order*.private void
MapStatus.Collector. popupCycleSelection(java.util.Collection<OsmPrimitive> osms, int mods)
Call this with a set of primitives to cycle through them.private void
MapStatus. refreshDistText(java.util.Collection<? extends OsmPrimitive> newSelection)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.autofilter
Fields in org.openstreetmap.josm.gui.autofilter with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.function.Function<OsmPrimitive,java.util.stream.IntStream>
AutoFilterRule. defaultValueSupplier
Methods in org.openstreetmap.josm.gui.autofilter with parameters of type OsmPrimitive Modifier and Type Method Description private static java.util.stream.IntStream
AutoFilterRule. defaultLayer(OsmPrimitive osm)
java.util.stream.IntStream
AutoFilterRule. getTagValuesForPrimitive(OsmPrimitive osm)
Returns the numeric values for the given OSM primitiveboolean
AutoFilterManager.Match. match(OsmPrimitive osm)
Method parameters in org.openstreetmap.josm.gui.autofilter with type arguments of type OsmPrimitive Modifier and Type Method Description AutoFilterRule
AutoFilterRule. setDefaultValueSupplier(java.util.function.Function<OsmPrimitive,java.util.stream.IntStream> defaultValueSupplier)
Sets the function which yields default values for the given OSM primitive. -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.conflict.pair
Fields in org.openstreetmap.josm.gui.conflict.pair declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
ConflictResolver. my
private OsmPrimitive
ConflictResolver. their
Fields in org.openstreetmap.josm.gui.conflict.pair with type parameters of type OsmPrimitive Modifier and Type Field Description private Conflict<? extends OsmPrimitive>
ConflictResolver. conflict
Methods in org.openstreetmap.josm.gui.conflict.pair with type parameters of type OsmPrimitive Modifier and Type Method Description protected <P extends OsmPrimitive>
OsmDataLayerAbstractListMerger. findLayerFor(P primitive)
Methods in org.openstreetmap.josm.gui.conflict.pair that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
AbstractListMergeModel. getMyPrimitive(T entry)
Replies primitive from my dataset referenced by entryOsmPrimitive
AbstractListMergeModel. getMyPrimitiveById(PrimitiveId entry)
OsmPrimitive
PairTable. getPrimitiveInLayer(int row, OsmDataLayer layer)
OsmPrimitive
AbstractListMergeModel.EntriesTableModel. getReferredPrimitive(int idx)
Methods in org.openstreetmap.josm.gui.conflict.pair with parameters of type OsmPrimitive Modifier and Type Method Description protected void
AbstractListMergeModel. initPopulate(OsmPrimitive my, OsmPrimitive their, java.util.Map<PrimitiveId,PrimitiveId> mergedMap)
protected void
ConflictResolver. setMy(OsmPrimitive my)
Sets theOsmPrimitive
in the role "my"protected void
ConflictResolver. setTheir(OsmPrimitive their)
Sets theOsmPrimitive
in the role "their".Method parameters in org.openstreetmap.josm.gui.conflict.pair with type arguments of type OsmPrimitive Modifier and Type Method Description abstract C
AbstractListMergeModel. buildResolveCommand(Conflict<? extends OsmPrimitive> conflict)
Builds the command to resolve conflicts in the list.void
ConflictResolver. populate(Conflict<? extends OsmPrimitive> conflict)
populates the conflict resolver with the conflicts between my and theirvoid
IConflictResolver. populate(Conflict<? extends OsmPrimitive> conflict)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.conflict.pair.nodes
Method parameters in org.openstreetmap.josm.gui.conflict.pair.nodes with type arguments of type OsmPrimitive Modifier and Type Method Description WayNodesConflictResolverCommand
NodeListMergeModel. buildResolveCommand(Conflict<? extends OsmPrimitive> conflict)
void
NodeListMerger. populate(Conflict<? extends OsmPrimitive> conflict)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.conflict.pair.properties
Fields in org.openstreetmap.josm.gui.conflict.pair.properties declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
PropertiesMergeModel. my
Fields in org.openstreetmap.josm.gui.conflict.pair.properties with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.List<OsmPrimitive>
PropertiesMergeModel. myReferrers
private java.util.List<OsmPrimitive>
PropertiesMergeModel. theirReferrers
Methods in org.openstreetmap.josm.gui.conflict.pair.properties that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
PropertiesMergeModel. getMyPrimitive()
Methods in org.openstreetmap.josm.gui.conflict.pair.properties that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.List<OsmPrimitive>
PropertiesMergeModel. getMyReferrers()
Returns local referrersjava.util.List<OsmPrimitive>
PropertiesMergeModel. getTheirReferrers()
Returns server referrersMethod parameters in org.openstreetmap.josm.gui.conflict.pair.properties with type arguments of type OsmPrimitive Modifier and Type Method Description java.util.List<Command>
PropertiesMergeModel. buildResolveCommand(Conflict<? extends OsmPrimitive> conflict)
Builds the command(s) to apply the conflict resolutions to my primitivevoid
PropertiesMergeModel. populate(Conflict<? extends OsmPrimitive> conflict)
Populates the model with the differences between local and server versionvoid
PropertiesMerger. populate(Conflict<? extends OsmPrimitive> conflict)
protected static java.lang.String
PropertiesMerger. referrersToString(java.util.List<OsmPrimitive> referrers)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.conflict.pair.relation
Methods in org.openstreetmap.josm.gui.conflict.pair.relation that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
RelationMemberListMergeModel. getMyPrimitive(RelationMember entry)
Method parameters in org.openstreetmap.josm.gui.conflict.pair.relation with type arguments of type OsmPrimitive Modifier and Type Method Description RelationMemberConflictResolverCommand
RelationMemberListMergeModel. buildResolveCommand(Conflict<? extends OsmPrimitive> conflict)
void
RelationMemberMerger. populate(Conflict<? extends OsmPrimitive> conflict)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.conflict.pair.tags
Methods in org.openstreetmap.josm.gui.conflict.pair.tags with parameters of type OsmPrimitive Modifier and Type Method Description void
TagMergeItem. applyToMyPrimitive(OsmPrimitive primitive)
applies the current merge decisions to the tag set of an OSM primitive.void
TagMergeModel. populate(OsmPrimitive my, OsmPrimitive their)
Method parameters in org.openstreetmap.josm.gui.conflict.pair.tags with type arguments of type OsmPrimitive Modifier and Type Method Description TagConflictResolveCommand
TagMergeModel. buildResolveCommand(Conflict<? extends OsmPrimitive> conflict)
void
TagMerger. populate(Conflict<? extends OsmPrimitive> conflict)
Constructors in org.openstreetmap.josm.gui.conflict.pair.tags with parameters of type OsmPrimitive Constructor Description TagMergeItem(java.lang.String key, OsmPrimitive my, OsmPrimitive their)
constructor -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.conflict.tags
Fields in org.openstreetmap.josm.gui.conflict.tags declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
RelationMemberConflictDecision. originalPrimitive
protected OsmPrimitive
CombinePrimitiveResolverDialog. targetPrimitive
Fields in org.openstreetmap.josm.gui.conflict.tags with type parameters of type OsmPrimitive Modifier and Type Field Description protected java.util.Collection<? extends OsmPrimitive>
RelationMemberConflictResolverModel. primitives
the collection of primitives for which we manage conflictsMethods in org.openstreetmap.josm.gui.conflict.tags that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
RelationMemberConflictDecision. getOriginalPrimitive()
OsmPrimitive
CombinePrimitiveResolverDialog. getTargetPrimitive()
Replies the target primitive the collection of primitives is merged or combined to.Methods in org.openstreetmap.josm.gui.conflict.tags with parameters of type OsmPrimitive Modifier and Type Method Description void
MultiValueResolutionDecision. applyTo(OsmPrimitive primitive)
Applies the resolution to anOsmPrimitive
Command
MultiValueResolutionDecision. buildChangeCommand(OsmPrimitive primitive)
Builds a change command for applying this resolution to a primitivejava.util.List<Command>
CombinePrimitiveResolver. buildResolutionCommands(OsmPrimitive targetPrimitive)
Builds conflicts resolution commands for the given target primitive.java.util.List<Command>
RelationMemberConflictResolverModel. buildResolutionCommands(OsmPrimitive newPrimitive)
Builds a collection of commands executing the decisions made in this model.protected Command
RelationMemberConflictResolverModel. buildResolveCommand(Relation relation, OsmPrimitive newPrimitive)
protected java.util.List<Command>
CombinePrimitiveResolver. buildTagChangeCommand(OsmPrimitive primitive, TagCollection tc)
Builds the list of tag change commands.protected java.util.List<Command>
CombinePrimitiveResolverDialog. buildTagChangeCommand(OsmPrimitive primitive, TagCollection tc)
Builds the list of tag change commands.java.util.Set<Relation>
RelationMemberConflictResolverModel. getModifiedRelations(OsmPrimitive newPrimitive)
Replies the set of relations which have to be modified according to the decisions managed by this model.protected boolean
RelationMemberConflictResolverModel. isChanged(Relation relation, OsmPrimitive newPrimitive)
protected void
RelationMemberConflictResolverModel. populate(Relation relation, OsmPrimitive primitive)
Populates the model with the members of the relationrelation
referring toprimitive
.void
CombinePrimitiveResolverDialog. setTargetPrimitive(OsmPrimitive primitive)
Sets the primitive the collection of primitives is merged or combined to.private void
CombinePrimitiveResolverDialog. setTargetPrimitive(OsmPrimitive primitive, boolean updateTitle)
Sets the primitive the collection of primitives is merged or combined to.Method parameters in org.openstreetmap.josm.gui.conflict.tags with type arguments of type OsmPrimitive Modifier and Type Method Description void
MultiValueResolutionDecision. applyTo(java.util.Collection<? extends OsmPrimitive> primitives)
Applies this resolution to a collection of primitivesCommand
MultiValueResolutionDecision. buildChangeCommand(java.util.Collection<? extends OsmPrimitive> primitives)
Builds a change command for applying this resolution to a collection of primitivesCommand
RelationMemberConflictResolver. buildTagApplyCommands(java.util.Collection<? extends OsmPrimitive> primitives)
protected static void
CombinePrimitiveResolverDialog. informAboutRelationMembershipConflicts(java.util.Collection<? extends OsmPrimitive> primitives, java.util.Set<Relation> parentRelations)
Inform a non-expert user about what relation membership conflict resolution means.protected static void
CombinePrimitiveResolverDialog. informAboutTagConflicts(java.util.Collection<? extends OsmPrimitive> primitives, TagCollection normalizedTags)
Inform a non-expert user about what tag conflict resolution means.static java.util.List<Command>
CombinePrimitiveResolverDialog. launchIfNecessary(TagCollection tagsOfPrimitives, java.util.Collection<? extends OsmPrimitive> primitives, java.util.Collection<? extends OsmPrimitive> targetPrimitives)
Replies the list ofcommands
needed to resolve specified conflicts, by displaying if necessary aCombinePrimitiveResolverDialog
to the user.static void
TagConflictResolutionUtil. normalizeTagCollectionBeforeEditing(TagCollection tc, java.util.Collection<? extends OsmPrimitive> merged)
Normalizes the tags in the tag collectiontc
before resolving tag conflicts. -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.datatransfer
Method parameters in org.openstreetmap.josm.gui.datatransfer with type arguments of type OsmPrimitive Modifier and Type Method Description private boolean
OsmTransferHandler. importTags(javax.swing.TransferHandler.TransferSupport support, java.util.Collection<? extends OsmPrimitive> primitives)
void
OsmTransferHandler. pasteTags(java.util.Collection<? extends OsmPrimitive> primitives)
Paste the given tags on the primitives. -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.datatransfer.data
Methods in org.openstreetmap.josm.gui.datatransfer.data that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Collection<? extends OsmPrimitive>
PrimitiveTransferData.GetReferences. getReferredPrimitives(OsmPrimitive primitive)
java.util.Collection<? extends OsmPrimitive>
PrimitiveTransferData.ReferenceGetter. getReferredPrimitives(OsmPrimitive primitive)
Methods in org.openstreetmap.josm.gui.datatransfer.data with parameters of type OsmPrimitive Modifier and Type Method Description java.util.Collection<? extends OsmPrimitive>
PrimitiveTransferData.GetReferences. getReferredPrimitives(OsmPrimitive primitive)
java.util.Collection<? extends OsmPrimitive>
PrimitiveTransferData.ReferenceGetter. getReferredPrimitives(OsmPrimitive primitive)
Method parameters in org.openstreetmap.josm.gui.datatransfer.data with type arguments of type OsmPrimitive Modifier and Type Method Description static PrimitiveTransferData
PrimitiveTransferData. getData(java.util.Collection<? extends OsmPrimitive> primitives)
Creates a newPrimitiveTransferData
object that only contains the primitives.static PrimitiveTransferData
PrimitiveTransferData. getDataWithReferences(java.util.Collection<? extends OsmPrimitive> primitives)
Creates a newPrimitiveTransferData
object that contains the primitives and all references.Constructor parameters in org.openstreetmap.josm.gui.datatransfer.data with type arguments of type OsmPrimitive Constructor Description PrimitiveTransferData(java.util.Collection<? extends OsmPrimitive> primitives, PrimitiveTransferData.ReferenceGetter referencedGetter)
Create the new transfer data. -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.datatransfer.importers
Method parameters in org.openstreetmap.josm.gui.datatransfer.importers with type arguments of type OsmPrimitive Modifier and Type Method Description protected static void
AbstractTagPaster. commitCommands(java.util.Collection<? extends OsmPrimitive> selection, java.util.List<Command> commands)
Create and execute SequenceCommand with descriptive titleboolean
AbstractOsmDataPaster. importTagsOn(javax.swing.TransferHandler.TransferSupport support, java.util.Collection<? extends OsmPrimitive> selection)
Imports only if this import changes the tags only.boolean
AbstractTagPaster. importTagsOn(javax.swing.TransferHandler.TransferSupport support, java.util.Collection<? extends OsmPrimitive> selection)
boolean
PrimitiveTagTransferPaster. importTagsOn(javax.swing.TransferHandler.TransferSupport support, java.util.Collection<? extends OsmPrimitive> selection)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.dialogs
Fields in org.openstreetmap.josm.gui.dialogs with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.LinkedList<java.util.Collection<? extends OsmPrimitive>>
SelectionListDialog.SelectionListModel. history
private javax.swing.JList<OsmPrimitive>
ConflictDialog. lstConflicts
the list widget for the list of conflictsprivate javax.swing.JList<OsmPrimitive>
SelectionListDialog. lstPrimitives
protected java.util.Collection<? extends OsmPrimitive>
SelectionListDialog.SelectionMenuItem. sel
private java.util.List<OsmPrimitive>
SelectionListDialog.SelectionListModel. selection
Methods in org.openstreetmap.josm.gui.dialogs that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
ConflictDialog.ConflictListModel. get(int idx)
OsmPrimitive
ConflictDialog.ConflictListModel. getElementAt(int index)
OsmPrimitive
SelectionListDialog.SelectionListModel. getElementAt(int index)
Methods in org.openstreetmap.josm.gui.dialogs that return types with arguments of type OsmPrimitive Modifier and Type Method Description protected static java.util.Collection<? extends OsmPrimitive>
CommandStackDialog. getAffectedPrimitives(PseudoCommand c)
Return primitives that are affected by some commandjava.util.Set<OsmPrimitive>
DeleteFromRelationConfirmationDialog.RelationMemberTableModel. getObjectsToDelete()
Gets the list of children that are currently displayed.java.util.Set<OsmPrimitive>
DeleteFromRelationConfirmationDialog.RelationDeleteModel. getParentRelations()
Gets the set of parent relationsjava.util.Set<OsmPrimitive>
DeleteFromRelationConfirmationDialog.RelationMemberTableModel. getParentRelations()
Gets the set of parent relationsjava.util.Collection<OsmPrimitive>
SelectionListDialog.SelectionListModel. getSelected()
Replies the collection of OSM primitives currently selected in the view of this modelConflict<? extends OsmPrimitive>
ConflictDialog. getSelectedConflict()
returns the first selected item of the conflicts listjava.util.Collection<OsmPrimitive>
SelectionListDialog. getSelectedPrimitives()
Replies the selected OSM primitives.java.util.List<java.util.Collection<? extends OsmPrimitive>>
SelectionListDialog.SelectionListModel. getSelectionHistory()
Replies the history of JOSM selectionsMethods in org.openstreetmap.josm.gui.dialogs with parameters of type OsmPrimitive Modifier and Type Method Description (package private) void
InspectPrimitiveDataText. addConflicts(OsmPrimitive o)
int
ConflictDialog.ConflictListModel. indexOf(OsmPrimitive my)
protected void
ConflictResolutionDialog. updateTitle(OsmPrimitive my)
void
ValidatorDialog.ValidatorBoundingXYVisitor. visit(OsmPrimitive p)
Method parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type OsmPrimitive Modifier and Type Method Description void
RelationListDialog.RelationListModel. addRelations(java.util.Collection<? extends OsmPrimitive> addedPrimitives)
Add all relations inaddedPrimitives
to the model for the relation list dialogprotected java.util.Map<User,java.lang.Integer>
UserListDialog.UserTableModel. computeStatistics(java.util.Collection<? extends OsmPrimitive> primitives)
void
FilterTableModel. executeFilters(java.util.Collection<? extends OsmPrimitive> primitives)
Runs the filter on a list of primitives that are part of the edit data set, if any.void
FilterTableModel. executeFilters(java.util.Collection<? extends OsmPrimitive> primitives, boolean force)
Runs the filter on a list of primitives that are part of the edit data set, if any.static void
SelectionListDialog.SelectionHistoryPopup. launch(java.awt.Component parent, java.util.Collection<java.util.Collection<? extends OsmPrimitive>> history)
void
UserListDialog.UserTableModel. populate(java.util.Collection<? extends OsmPrimitive> primitives)
void
UserListDialog. refresh(java.util.Collection<? extends OsmPrimitive> fromPrimitives)
Refreshes user list from given collection of OSM primitives.void
SelectionListDialog.SelectionListModel. remember(java.util.Collection<? extends OsmPrimitive> selection)
Remembers a JOSM selection the history of JOSM selectionsvoid
RelationListDialog.RelationListModel. removeRelations(java.util.Collection<? extends OsmPrimitive> removedPrimitives)
Removes all relations inremovedPrimitives
from the modelvoid
SelectionListDialog.SelectionListModel. setJOSMSelection(java.util.Collection<? extends OsmPrimitive> selection)
Sets the collection of currently selected OSM objectsvoid
SelectionListDialog.SelectionListModel. setSelected(java.util.Collection<OsmPrimitive> sel)
Sets the OSM primitives to be selected in the view of this modelprivate boolean
ValidatorDialog. setSelection(java.util.Collection<OsmPrimitive> sel, boolean addSelected)
Checks for fixes in selected element and, if needed, adds to the sel parameter all selected elementsvoid
SelectionListDialog.SelectionListModel. update(java.util.Collection<? extends OsmPrimitive> toUpdate)
Triggers a refresh of the view for all primitives intoUpdate
which are currently displayed in the viewvoid
ValidatorDialog. updateSelection(java.util.Collection<? extends OsmPrimitive> newSelection)
Called when the selection was changed to update the list of displayed errorsConstructor parameters in org.openstreetmap.josm.gui.dialogs with type arguments of type OsmPrimitive Constructor Description SelectionHistoryPopup(java.util.Collection<java.util.Collection<? extends OsmPrimitive>> history)
SelectionMenuItem(java.util.Collection<? extends OsmPrimitive> sel)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.dialogs.changeset
Methods in org.openstreetmap.josm.gui.dialogs.changeset that return types with arguments of type OsmPrimitive Modifier and Type Method Description protected java.util.Set<OsmPrimitive>
ChangesetContentPanel.SelectionBasedAction. getTarget()
Method parameters in org.openstreetmap.josm.gui.dialogs.changeset with type arguments of type OsmPrimitive Modifier and Type Method Description void
ChangesetListModel. initFromPrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
Loads this list with the given changesets -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.dialogs.properties
Fields in org.openstreetmap.josm.gui.dialogs.properties with type parameters of type OsmPrimitive Modifier and Type Field Description protected java.util.Collection<OsmPrimitive>
TagEditHelper. sel
Methods in org.openstreetmap.josm.gui.dialogs.properties that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Collection<OsmPrimitive>
PropertiesDialog.TaggingPresetCommandHandler. getSelection()
private java.util.Collection<OsmPrimitive>
TagEditHelper. updateSelection()
Update the current selection for this editorMethod parameters in org.openstreetmap.josm.gui.dialogs.properties with type arguments of type OsmPrimitive Modifier and Type Method Description private void
TagEditHelper.AddTagsDialog. performTagAdding(java.util.Collection<OsmPrimitive> selection)
Read tags from comboboxes and add it to all selected objects -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.dialogs.relation
Fields in org.openstreetmap.josm.gui.dialogs.relation with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.List<OsmPrimitive>
SelectionTableModel. cache
private java.util.Collection<OsmPrimitive>
DownloadRelationMemberTask. children
Methods in org.openstreetmap.josm.gui.dialogs.relation that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
SelectionTableModel. getPrimitive(int row)
Replies the primitive at rowrow
in this modelOsmPrimitive
MemberTableModel. getReferredPrimitive(int idx)
Methods in org.openstreetmap.josm.gui.dialogs.relation that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Set<OsmPrimitive>
MemberTableModel. getChildPrimitives(java.util.Collection<? extends OsmPrimitive> referenceSet)
Replies the set of selected referrers.java.util.Set<OsmPrimitive>
MemberTableModel. getIncompleteMemberPrimitives()
Replies the set of incomplete primitivesjava.util.Collection<OsmPrimitive>
MemberTableModel. getSelectedChildPrimitives()
Replies the set of selected referrers.java.util.Set<OsmPrimitive>
MemberTableModel. getSelectedIncompleteMemberPrimitives()
Replies the set of selected incomplete primitivesjava.util.List<OsmPrimitive>
SelectionTableModel. getSelection()
Returns the selected primitives.Methods in org.openstreetmap.josm.gui.dialogs.relation with parameters of type OsmPrimitive Modifier and Type Method Description static boolean
GenericRelationEditor. confirmAddingPrimitive(OsmPrimitive primitive)
Asks confirmation before adding a primitive.protected static java.util.Set<java.lang.String>
GenericRelationEditor. findSuggestedRoles(java.util.Collection<TaggingPreset> presets, OsmPrimitive p)
protected abstract RelationMember
MemberTransferHandler.AbstractRelationMemberConverter. getMember(MemberTable destination, T data, OsmPrimitive p)
int
MemberTableModel. getNumMembersWithPrimitive(OsmPrimitive primitive)
Replies the number of members which refer to a particular primitive(package private) RelationMember
MemberTableModel. getRelationMemberForPrimitive(OsmPrimitive primitive)
boolean
MemberTableModel. isInJosmSelection(OsmPrimitive primitive)
Replies true ifprimitive
is currently selected in the layer this model is attached toprotected void
MemberTableCellRenderer. renderBackgroundForeground(MemberTableModel model, OsmPrimitive primitive, boolean isSelected)
protected void
SelectionTableCellRenderer. renderBackgroundForeground(MemberTableModel model, OsmPrimitive primitive, boolean isSelected)
protected void
MemberTableMemberCellRenderer. renderPrimitive(OsmPrimitive primitive, java.awt.Dimension cellSize)
static void
GenericRelationEditor. warnOfCircularReferences(OsmPrimitive primitive)
Warn about circular references.static void
GenericRelationEditor. warnOfCircularReferences(OsmPrimitive primitive, java.util.List<Relation> loop)
Warn about circular references.Method parameters in org.openstreetmap.josm.gui.dialogs.relation with type arguments of type OsmPrimitive Modifier and Type Method Description void
MemberTableModel. addMembersAfterIdx(java.util.List<? extends OsmPrimitive> primitives, int idx)
void
MemberTableModel. addMembersAtBeginning(java.util.List<? extends OsmPrimitive> primitives)
void
MemberTableModel. addMembersAtEnd(java.util.List<? extends OsmPrimitive> primitives)
private void
MemberTableModel. addMembersAtIndex(java.util.List<? extends OsmPrimitive> primitives, int index)
void
MemberTableModel. addMembersBeforeIdx(java.util.List<? extends OsmPrimitive> primitives, int idx)
static Command
GenericRelationEditor. addPrimitivesToRelation(Relation orig, java.util.Collection<? extends OsmPrimitive> primitivesToAdd)
Adds primitives to a given relation.java.util.Set<OsmPrimitive>
MemberTableModel. getChildPrimitives(java.util.Collection<? extends OsmPrimitive> referenceSet)
Replies the set of selected referrers.boolean
MemberTableModel. hasMembersReferringTo(java.util.Collection<OsmPrimitive> primitives)
Replies true if there is at least one relation member in this model which refers to at least on the primitives inprimitives
.void
MemberTableModel. removeMembersReferringTo(java.util.List<? extends OsmPrimitive> primitives)
Remove members referring to the given list of primitives.private void
SelectionTableModel. selectionChanged(java.util.Collection<? extends OsmPrimitive> newSelection)
void
MemberTableModel. selectMembersReferringTo(java.util.Collection<? extends OsmPrimitive> primitives)
Selects all members which refer toOsmPrimitive
s in the collectionsprimitives
.Constructor parameters in org.openstreetmap.josm.gui.dialogs.relation with type arguments of type OsmPrimitive Constructor Description DownloadRelationMemberTask(Relation parent, java.util.Collection<OsmPrimitive> children, OsmDataLayer curLayer)
DownloadRelationMemberTask(Relation parent, java.util.Collection<OsmPrimitive> children, OsmDataLayer curLayer, java.awt.Dialog dialog)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.dialogs.relation.actions
Methods in org.openstreetmap.josm.gui.dialogs.relation.actions that return types with arguments of type OsmPrimitive Modifier and Type Method Description protected java.util.List<OsmPrimitive>
AddFromSelectionAction. filterConfirmedPrimitives(java.util.List<OsmPrimitive> primitives)
Methods in org.openstreetmap.josm.gui.dialogs.relation.actions with parameters of type OsmPrimitive Modifier and Type Method Description protected boolean
AddFromSelectionAction. isPotentialDuplicate(OsmPrimitive primitive)
Method parameters in org.openstreetmap.josm.gui.dialogs.relation.actions with type arguments of type OsmPrimitive Modifier and Type Method Description protected java.util.List<OsmPrimitive>
AddFromSelectionAction. filterConfirmedPrimitives(java.util.List<OsmPrimitive> primitives)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.dialogs.relation.sort
Methods in org.openstreetmap.josm.gui.dialogs.relation.sort with parameters of type OsmPrimitive Modifier and Type Method Description private static java.lang.String
RelationSorter.PublicTransportRoleStopPlatformSorter. getStopName(OsmPrimitive p)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.dialogs.validator
Fields in org.openstreetmap.josm.gui.dialogs.validator with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Set<? extends OsmPrimitive>
ValidatorTreePanel. filter
IfValidatorTreePanel.filter
is notnull
only errors are displayed that refer to one of the primitives in the filter.Methods in org.openstreetmap.josm.gui.dialogs.validator that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Set<? extends OsmPrimitive>
ValidatorTreePanel. getFilter()
Returns the filter listMethod parameters in org.openstreetmap.josm.gui.dialogs.validator with type arguments of type OsmPrimitive Modifier and Type Method Description void
ValidatorTreePanel. selectRelatedErrors(java.util.Collection<OsmPrimitive> primitives)
Selects all errors related to the specifiedprimitives
, i.e.void
ValidatorTreePanel. setFilter(java.util.Set<? extends OsmPrimitive> filter)
Set the filter list to a set of primitivesprivate void
ValidatorTreePanel. walkAndSelectRelatedErrors(javax.swing.tree.TreePath p, java.util.function.Predicate<OsmPrimitive> isRelevant, java.util.Collection<javax.swing.tree.TreePath> paths)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.history
Methods in org.openstreetmap.josm.gui.history that return OsmPrimitive Modifier and Type Method Description protected OsmPrimitive
HistoryBrowserPanel. getPrimitiveFromDataSet(PointInTimeType pointInTime)
Methods in org.openstreetmap.josm.gui.history with parameters of type OsmPrimitive Modifier and Type Method Description HistoryLoadTask
HistoryLoadTask. add(OsmPrimitive primitive)
Adds an object to be loaded, the object is specified by an OSM primitive.(package private) HistoryOsmPrimitive
HistoryBrowserModel.HistoryPrimitiveBuilder. build(OsmPrimitive primitive)
private boolean
HistoryBrowserModel. canShowAsLatest(OsmPrimitive primitive)
void
VersionInfoPanel. update(OsmPrimitive primitive, boolean isLatest)
Updates the content of this panel based on the changeset information given byprimitive
.Method parameters in org.openstreetmap.josm.gui.history with type arguments of type OsmPrimitive Modifier and Type Method Description HistoryLoadTask
HistoryLoadTask. addOsmPrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
Adds a collection of objects to loaded, specified by a collection of OSM primitives. -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.io
Fields in org.openstreetmap.josm.gui.io with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.List<OsmPrimitive>
UploadSelectionDialog.OsmPrimitiveListModel. data
private java.util.List<OsmPrimitive>
UploadedObjectsSummaryPanel.PrimitiveListModel. primitives
private java.util.Collection<? extends OsmPrimitive>
UpdatePrimitivesTask. toUpdate
private java.util.Collection<OsmPrimitive>
UploadLayerTask. toUpload
Methods in org.openstreetmap.josm.gui.io that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
UploadedObjectsSummaryPanel.PrimitiveListModel. getElementAt(int index)
OsmPrimitive
UploadSelectionDialog.OsmPrimitiveListModel. getElementAt(int index)
protected OsmPrimitive
UploadLayerTask. getPrimitive(OsmPrimitiveType type, long id)
Methods in org.openstreetmap.josm.gui.io that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.List<OsmPrimitive>
UploadSelectionDialog.OsmPrimitiveListModel. getPrimitives(int... indices)
java.util.List<OsmPrimitive>
UploadSelectionDialog. getSelectedPrimitives()
Gets the list of primitives the user selectedMethods in org.openstreetmap.josm.gui.io with parameters of type OsmPrimitive Modifier and Type Method Description int
UploadSelectionDialog.OsmPrimitiveListModel.OsmPrimitiveComparator. compare(OsmPrimitive o1, OsmPrimitive o2)
Method parameters in org.openstreetmap.josm.gui.io with type arguments of type OsmPrimitive Modifier and Type Method Description protected void
AbstractUploadTask. 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.protected void
AbstractUploadTask. 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.void
UploadSelectionDialog. populate(java.util.Collection<OsmPrimitive> selected, java.util.Collection<OsmPrimitive> deleted)
void
UploadedObjectsSummaryPanel.PrimitiveListModel. setPrimitives(java.util.List<OsmPrimitive> primitives)
void
UploadSelectionDialog.OsmPrimitiveListModel. setPrimitives(java.util.List<OsmPrimitive> data)
(package private) void
BasicUploadSettingsPanel. setUploadedPrimitives(java.util.List<OsmPrimitive> primitives)
void
UploadedObjectsSummaryPanel. setUploadedPrimitives(java.util.List<OsmPrimitive> add, java.util.List<OsmPrimitive> update, java.util.List<OsmPrimitive> delete)
Sets the collections of primitives which will be uploadedConstructor parameters in org.openstreetmap.josm.gui.io with type arguments of type OsmPrimitive Constructor Description PrimitiveListModel(java.util.List<OsmPrimitive> primitives)
UpdatePrimitivesTask(OsmDataLayer layer, java.util.Collection<? extends OsmPrimitive> toUpdate)
Constructs a newUpdatePrimitivesTask
. -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.layer
Methods in org.openstreetmap.josm.gui.layer with parameters of type OsmPrimitive Modifier and Type Method Description private static void
OsmDataLayer. addDoubleIfPresent(WayPoint wpt, OsmPrimitive p, java.lang.String gpxPrefix, java.lang.String gpxKey, java.lang.String osmKey)
private static void
OsmDataLayer. addIntegerIfPresent(WayPoint wpt, OsmPrimitive p, java.lang.String gpxPrefix, java.lang.String gpxKey, java.lang.String osmKey)
private static void
OsmDataLayer. addStringIfPresent(WayPoint wpt, OsmPrimitive p, java.lang.String gpxPrefix, java.lang.String gpxKey, java.lang.String osmKey, java.lang.String osmKey2)
private static java.lang.String
OsmDataLayer. gpxVal(OsmPrimitive prim, java.lang.String gpxPrefix, java.lang.String key)
Reads the Gpx key from the givenOsmPrimitive
, with or without "gpx:" prefix -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.layer.gpx
Methods in org.openstreetmap.josm.gui.layer.gpx with parameters of type OsmPrimitive Modifier and Type Method Description private static void
ConvertFromGpxLayerAction. addAttributes(java.util.Map<java.lang.String,java.lang.Object> attr, OsmPrimitive p, java.util.List<java.lang.String> keys, boolean check, boolean none, java.lang.String gpxPrefix)
private static void
ConvertFromGpxLayerAction. addExtensions(GpxExtensionCollection exts, OsmPrimitive p, boolean seg, java.util.List<java.lang.String> keys, boolean check, java.lang.String gpxPrefix)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.layer.validation
Methods in org.openstreetmap.josm.gui.layer.validation with parameters of type OsmPrimitive Modifier and Type Method Description void
PaintVisitor. visit(OsmPrimitive p)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.mappaint.mapcss
Fields in org.openstreetmap.josm.gui.mappaint.mapcss with type parameters of type OsmPrimitive Modifier and Type Field Description private static java.util.function.Predicate<OsmPrimitive>
ConditionFactory.PseudoClasses. IN_DOWNLOADED_AREA
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.tagging
Fields in org.openstreetmap.josm.gui.tagging declared as OsmPrimitive Modifier and Type Field Description private OsmPrimitive
TagEditorModel. primitive
Methods in org.openstreetmap.josm.gui.tagging with parameters of type OsmPrimitive Modifier and Type Method Description TagEditorModel
TagEditorModel. forPrimitive(OsmPrimitive primitive)
Makes this TagEditorModel specific to a given OSM primitive.Method parameters in org.openstreetmap.josm.gui.tagging with type arguments of type OsmPrimitive Modifier and Type Method Description protected Command
TagEditorModel. createDeleteTagsCommand(java.util.Collection<OsmPrimitive> primitives)
protected Command
TagEditorModel. createUpdateTagCommand(java.util.Collection<OsmPrimitive> primitives, TagModel tag)
Constructors in org.openstreetmap.josm.gui.tagging with parameters of type OsmPrimitive Constructor Description TagEditorPanel(OsmPrimitive primitive, TaggingPresetHandler presetHandler)
Creates a new tag editor panel. -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.tagging.ac
Methods in org.openstreetmap.josm.gui.tagging.ac with parameters of type OsmPrimitive Modifier and Type Method Description protected void
AutoCompletionManager. cachePrimitiveTags(OsmPrimitive primitive)
make sure, the keys and values of all tags held by primitive are in the auto completion cacheMethod parameters in org.openstreetmap.josm.gui.tagging.ac with type arguments of type OsmPrimitive Modifier and Type Method Description protected void
AutoCompletionManager. cachePrimitives(java.util.Collection<? extends OsmPrimitive> primitives)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.tagging.presets
Fields in org.openstreetmap.josm.gui.tagging.presets with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Collection<OsmPrimitive>
TaggingPresetItemGuiSupport. selected
Methods in org.openstreetmap.josm.gui.tagging.presets that return OsmPrimitive Modifier and Type Method Description static OsmPrimitive
TaggingPresetValidation. applyChangedTags(OsmPrimitive original, java.util.List<Tag> changedTags)
Methods in org.openstreetmap.josm.gui.tagging.presets that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Collection<OsmPrimitive>
TaggingPreset. createSelection(java.util.Collection<OsmPrimitive> participants)
Removes all unsuitable OsmPrimitives from the given listjava.util.Collection<OsmPrimitive>
TaggingPresetItemGuiSupport. getSelected()
Returns the selected primitivesjava.util.Collection<OsmPrimitive>
TaggingPresetHandler. getSelection()
Gets the selection the preset should be applied to.Methods in org.openstreetmap.josm.gui.tagging.presets with parameters of type OsmPrimitive Modifier and Type Method Description static OsmPrimitive
TaggingPresetValidation. applyChangedTags(OsmPrimitive original, java.util.List<Tag> changedTags)
static TaggingPresetItemGuiSupport
TaggingPresetItemGuiSupport. create(boolean presetInitiallyMatches, OsmPrimitive... selected)
Creates a newTaggingPresetItemGuiSupport
java.lang.String
TaggingPreset. suggestRoleForOsmPrimitive(OsmPrimitive osm)
Suggests a relation role for this primitivestatic void
TaggingPresetValidation. validate(OsmPrimitive primitive, javax.swing.JLabel validationLabel)
Validates the user input for the given primitive.static void
TaggingPresetValidation. validateAsync(OsmPrimitive original, javax.swing.JLabel validationLabel, java.util.List<Tag> changedTags)
Asynchronously validates the user input for the given primitive.Method parameters in org.openstreetmap.josm.gui.tagging.presets with type arguments of type OsmPrimitive Modifier and Type Method Description static TaggingPresetItemGuiSupport
TaggingPresetItemGuiSupport. create(boolean presetInitiallyMatches, java.util.Collection<OsmPrimitive> selected, java.util.function.Supplier<java.util.Collection<Tag>> changedTagsSupplier)
Creates a newTaggingPresetItemGuiSupport
static Command
TaggingPreset. createCommand(java.util.Collection<OsmPrimitive> sel, java.util.List<Tag> changedTags)
Create a command to change the given list of tags.TaggingPreset.PresetPanel
TaggingPreset. createPanel(java.util.Collection<OsmPrimitive> selected)
Creates a panel for this preset.java.util.Collection<OsmPrimitive>
TaggingPreset. createSelection(java.util.Collection<OsmPrimitive> participants)
Removes all unsuitable OsmPrimitives from the given listjava.util.List<TaggingPresetSelector.PresetClassification>
TaggingPresetSelector.PresetClassifications. getMatchingPresets(java.lang.String[] groupWords, java.lang.String[] nameWords, boolean onlyApplicable, boolean inTags, java.util.Set<TaggingPresetType> presetTypes, java.util.Collection<? extends OsmPrimitive> selectedPrimitives)
Get matching presetsjava.util.List<TaggingPresetSelector.PresetClassification>
TaggingPresetSelector.PresetClassifications. getMatchingPresets(java.lang.String searchText, boolean onlyApplicable, boolean inTags, java.util.Set<TaggingPresetType> presetTypes, java.util.Collection<? extends OsmPrimitive> selectedPrimitives)
Get matching presetsvoid
TaggingPreset. showAndApply(java.util.Collection<OsmPrimitive> primitives)
Show preset dialog, apply changesint
TaggingPreset. showDialog(java.util.Collection<OsmPrimitive> sel, boolean showNewRelation)
Shows the preset dialog.Constructor parameters in org.openstreetmap.josm.gui.tagging.presets with type arguments of type OsmPrimitive Constructor Description TaggingPresetItemGuiSupport(boolean presetInitiallyMatches, java.util.Collection<OsmPrimitive> selected, java.util.function.Supplier<java.util.Collection<Tag>> changedTagsSupplier)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.tagging.presets.items
Fields in org.openstreetmap.josm.gui.tagging.presets.items with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Collection<OsmPrimitive>
PresetLink.TaggingPresetMouseAdapter. sel
Method parameters in org.openstreetmap.josm.gui.tagging.presets.items with type arguments of type OsmPrimitive Modifier and Type Method Description protected static KeyedItem.Usage
KeyedItem. determineBooleanUsage(java.util.Collection<OsmPrimitive> sel, java.lang.String key)
static KeyedItem.Usage
KeyedItem. determineTextUsage(java.util.Collection<OsmPrimitive> sel, java.lang.String key)
Computes the tag usage for the given key from the given primitivesConstructor parameters in org.openstreetmap.josm.gui.tagging.presets.items with type arguments of type OsmPrimitive Constructor Description TaggingPresetMouseAdapter(TaggingPreset t, java.util.Collection<OsmPrimitive> sel)
-
Uses of OsmPrimitive in org.openstreetmap.josm.gui.util
Fields in org.openstreetmap.josm.gui.util with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Set<OsmPrimitive>
HighlightHelper. highlightedPrimitives
Methods in org.openstreetmap.josm.gui.util that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Set<OsmPrimitive>
HighlightHelper. getHighlighted()
Returns an (unmodifiable) set of currently highlighted primitivesMethods in org.openstreetmap.josm.gui.util with parameters of type OsmPrimitive Modifier and Type Method Description boolean
HighlightHelper. highlightOnly(OsmPrimitive p)
Highlight and remember given primitive, forgetting previously highlighted by this instanceboolean
HighlightHelper. setHighlight(OsmPrimitive p, boolean flag)
Highlight and remember given primitiveprivate boolean
HighlightHelper. setHighlight(OsmPrimitive p, boolean flag, java.util.Set<Relation> seenRelations)
Method parameters in org.openstreetmap.josm.gui.util with type arguments of type OsmPrimitive Modifier and Type Method Description boolean
HighlightHelper. highlight(java.util.Collection<? extends OsmPrimitive> prims)
Highlight and remember given primitivesboolean
HighlightHelper. highlight(java.util.Collection<? extends OsmPrimitive> prims, boolean only)
Highlight and remember given primitivesboolean
HighlightHelper. highlightOnly(java.util.Collection<? extends OsmPrimitive> prims)
Highlight and remember given primitives, forgetting previously highlighted by this instance -
Uses of OsmPrimitive in org.openstreetmap.josm.gui.widgets
Methods in org.openstreetmap.josm.gui.widgets that return OsmPrimitive Modifier and Type Method Description OsmPrimitive
OsmPrimitivesTable. getPrimitiveInLayer(int row, OsmDataLayer layer)
Returns primitive at the specified row.OsmPrimitive
OsmPrimitivesTableModel. getReferredPrimitive(int idx)
Gets the primitive at a given row index -
Uses of OsmPrimitive in org.openstreetmap.josm.io
Fields in org.openstreetmap.josm.io with type parameters of type OsmPrimitive Modifier and Type Field Description protected java.util.Map<PrimitiveId,OsmPrimitive>
AbstractReader. externalIdMap
the map from external ids to read OsmPrimitives.private java.util.Collection<? extends OsmPrimitive>
DiffResultProcessor. primitives
the collection of primitives being uploadedprivate java.util.Set<OsmPrimitive>
DiffResultProcessor. processed
the set of processed primitives *after* the new id, the new version and the new changeset id is setprivate java.util.Collection<OsmPrimitive>
OsmServerWriter. processed
This list contains all successfully processed objects.Methods in org.openstreetmap.josm.io with type parameters of type OsmPrimitive Modifier and Type Method Description private static <O extends OsmPrimitive>
OGeoJSONReader. fillTagsFromFeature(jakarta.json.JsonObject feature, O primitive)
Merge existing tags in primitive (if any) with the values given in the GeoJSON feature.protected <T extends OsmPrimitive>
java.util.Collection<T>OsmWriter. sortById(java.util.Collection<T> primitives)
Methods in org.openstreetmap.josm.io that return OsmPrimitive Modifier and Type Method Description protected OsmPrimitive
AbstractReader. buildPrimitive(PrimitiveData pd)
Methods in org.openstreetmap.josm.io that return types with arguments of type OsmPrimitive Modifier and Type Method Description java.util.Collection<OsmPrimitive>
OsmServerWriter. getProcessedPrimitives()
Replies the collection of successfully processed primitivesprivate java.util.Optional<? extends OsmPrimitive>
GeoJSONReader. parseFeature(jakarta.json.JsonObject feature)
private java.util.Optional<? extends OsmPrimitive>
GeoJSONReader. parseFeatureCollection(jakarta.json.JsonArray features, boolean createRelation)
private java.util.Optional<? extends OsmPrimitive>
GeoJSONReader. parseGeometry(jakarta.json.JsonObject feature, jakarta.json.JsonObject geometry)
private java.util.Optional<? extends OsmPrimitive>
GeoJSONReader. parseNonGeometryFeature(jakarta.json.JsonObject feature, jakarta.json.JsonObject properties)
private java.util.Optional<? extends OsmPrimitive>
GeoJSONReader. parsePolygon(jakarta.json.JsonObject feature, jakarta.json.JsonArray coordinates)
protected java.util.Set<OsmPrimitive>
DiffResultProcessor. postProcess(Changeset cs, ProgressMonitor monitor)
Postprocesses the diff result read and parsed from the server.java.util.Collection<OsmPrimitive>
OsmApi. uploadDiff(java.util.Collection<? extends OsmPrimitive> list, ProgressMonitor monitor)
Uploads a list of changes in "diff" form to the server.Methods in org.openstreetmap.josm.io with parameters of type OsmPrimitive Modifier and Type Method Description MultiFetchServerObjectReader
MultiFetchServerObjectReader. append(OsmPrimitive primitive)
appends anOsmPrimitive
to the list of ids which will be fetched from the server.protected void
GeoJSONWriter. appendPrimitive(OsmPrimitive p, jakarta.json.JsonArrayBuilder array)
void
OsmApi. deletePrimitive(OsmPrimitive osm, ProgressMonitor monitor)
Deletes an OSM primitive on the server.(package private) void
OsmServerWriter. makeApiRequest(OsmPrimitive osm, ProgressMonitor progressMonitor)
private static TagCollection
GeoJSONReader. mergeAllTagValues(OsmPrimitive primitive, TagCollection featureTags)
protected boolean
OsmWriter. shouldWrite(OsmPrimitive osm)
Method parameters in org.openstreetmap.josm.io with type arguments of type OsmPrimitive Modifier and Type Method Description MultiFetchServerObjectReader
MultiFetchServerObjectReader. append(java.util.Collection<? extends OsmPrimitive> primitives)
appends a list ofOsmPrimitive
to the list of ids which will be fetched from the server.void
OsmServerWritePostprocessor. postprocessUploadedPrimitives(java.util.Collection<OsmPrimitive> p, ProgressMonitor progress)
protected void
OsmServerWriter. uploadChangesAsDiffUpload(java.util.Collection<? extends OsmPrimitive> primitives, ProgressMonitor progressMonitor)
Upload all changes in one diff uploadprotected void
OsmServerWriter. uploadChangesInChunks(java.util.Collection<? extends OsmPrimitive> primitives, ProgressMonitor progressMonitor, int chunkSize)
Upload all changes in one diff uploadprotected void
OsmServerWriter. uploadChangesIndividually(java.util.Collection<? extends OsmPrimitive> primitives, ProgressMonitor progressMonitor)
Uploads the changes individually.java.util.Collection<OsmPrimitive>
OsmApi. uploadDiff(java.util.Collection<? extends OsmPrimitive> list, ProgressMonitor monitor)
Uploads a list of changes in "diff" form to the server.void
OsmServerWriter. uploadOsm(UploadStrategySpecification strategy, java.util.Collection<? extends OsmPrimitive> primitives, Changeset changeset, ProgressMonitor monitor)
Send the dataset to the server.Constructors in org.openstreetmap.josm.io with parameters of type OsmPrimitive Constructor Description OsmServerBackreferenceReader(OsmPrimitive primitive)
constructorOsmServerBackreferenceReader(OsmPrimitive primitive, boolean readFull)
Creates a back reference reader for given primitiveConstructor parameters in org.openstreetmap.josm.io with type arguments of type OsmPrimitive Constructor Description DiffResultProcessor(java.util.Collection<? extends OsmPrimitive> primitives)
Creates a diff result reader -
Uses of OsmPrimitive in org.openstreetmap.josm.io.remotecontrol
Fields in org.openstreetmap.josm.io.remotecontrol with type parameters of type OsmPrimitive Modifier and Type Field Description private java.util.Collection<? extends OsmPrimitive>
AddTagsDialog. sel
Method parameters in org.openstreetmap.josm.io.remotecontrol with type arguments of type OsmPrimitive Modifier and Type Method Description static void
AddTagsDialog. addTags(java.lang.String[][] keyValue, java.lang.String sender, java.util.Collection<? extends OsmPrimitive> primitives)
Ask user and add the tags he confirm.static void
AddTagsDialog. addTags(java.util.Map<java.lang.String,java.lang.String> args, java.lang.String sender, java.util.Collection<? extends OsmPrimitive> primitives)
parse addtags parameters Example URL (part): addtags=wikipedia:de%3DResidenzschloss Dresden|name:en%3DDresden CastleConstructor parameters in org.openstreetmap.josm.io.remotecontrol with type arguments of type OsmPrimitive Constructor Description AddTagsDialog(java.lang.String[][] tags, java.lang.String senderName, java.util.Collection<? extends OsmPrimitive> primitives)
Constructs a newAddTagsDialog
. -
Uses of OsmPrimitive in org.openstreetmap.josm.io.remotecontrol.handler
Methods in org.openstreetmap.josm.io.remotecontrol.handler that return types with arguments of type OsmPrimitive Modifier and Type Method Description private java.util.Collection<OsmPrimitive>
LoadAndZoomHandler. performSearchZoom()
Method parameters in org.openstreetmap.josm.io.remotecontrol.handler with type arguments of type OsmPrimitive Modifier and Type Method Description private void
LoadAndZoomHandler. addTags(java.util.Collection<OsmPrimitive> forTagAdd)
private void
LoadAndZoomHandler. searchAndZoom(java.util.Collection<OsmPrimitive> forTagAdd, Bounds bbox)
private void
LoadAndZoomHandler. selectAndZoom(java.util.Collection<OsmPrimitive> forTagAdd, Bounds bbox)
protected void
LoadAndZoomHandler. zoom(java.util.Collection<OsmPrimitive> primitives, Bounds bbox)
-
Uses of OsmPrimitive in org.openstreetmap.josm.tools
Methods in org.openstreetmap.josm.tools with type parameters of type OsmPrimitive Modifier and Type Method Description static <T extends OsmPrimitive>
TGeometry. getClosestPrimitive(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the closest primitive toosm
from the collection of OsmPrimitiveprimitives
static <T extends OsmPrimitive>
java.util.Collection<T>Geometry. getClosestPrimitives(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the closest primitives toosm
from the collection of OsmPrimitiveprimitives
static <T extends OsmPrimitive>
TGeometry. getFurthestPrimitive(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the furthest primitive toosm
from the collection of OsmPrimitiveprimitives
static <T extends OsmPrimitive>
java.util.Collection<T>Geometry. getFurthestPrimitives(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the furthest primitives toosm
from the collection of OsmPrimitiveprimitives
Methods in org.openstreetmap.josm.tools that return types with arguments of type OsmPrimitive Modifier and Type Method Description 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<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 itMethods in org.openstreetmap.josm.tools with parameters of type OsmPrimitive Modifier and Type Method Description (package private) static void
RightAndLefthandTraffic. appendLeftDrivingBoundaries(OsmPrimitive osm, java.util.Collection<Way> ways)
static <T extends OsmPrimitive>
TGeometry. getClosestPrimitive(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the closest primitive toosm
from the collection of OsmPrimitiveprimitives
static <T extends OsmPrimitive>
java.util.Collection<T>Geometry. getClosestPrimitives(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the closest primitives toosm
from the collection of OsmPrimitiveprimitives
static WaySegment
Geometry. getClosestWaySegment(Way way, OsmPrimitive primitive)
Get the closestWaySegment
from a way to a primitive.static double
Geometry. getDistance(OsmPrimitive one, OsmPrimitive two)
Get the distance between differentOsmPrimitive
sstatic <T extends OsmPrimitive>
TGeometry. getFurthestPrimitive(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the furthest primitive toosm
from the collection of OsmPrimitiveprimitives
static <T extends OsmPrimitive>
java.util.Collection<T>Geometry. getFurthestPrimitives(OsmPrimitive osm, java.util.Collection<T> primitives)
Get the furthest primitives toosm
from the collection of OsmPrimitiveprimitives
static javax.swing.ImageIcon
ImageProvider. getPadded(OsmPrimitive primitive, java.awt.Dimension iconSize)
Returns anImageIcon
for the given OSM object, at the specified size.static ImageResource
OsmPrimitiveImageProvider. getResource(OsmPrimitive primitive, java.util.Collection<OsmPrimitiveImageProvider.Options> options)
Returns anImageIcon
for the given OSM object, at the specified size.private static ImageResource
OsmPrimitiveImageProvider. getResourceFromMapPaintStyles(OsmPrimitive primitive, java.util.Collection<OsmPrimitiveImageProvider.Options> options)
Computes a new padded icon for the given tagged primitive, using map paint styles. -
Uses of OsmPrimitive in org.openstreetmap.josm.tools.template_engine
Methods in org.openstreetmap.josm.tools.template_engine that return types with arguments of type OsmPrimitive Modifier and Type Method Description (package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.AndSet. getPrimitives(OsmPrimitive root)
(package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.ChildSet. getPrimitives(OsmPrimitive root)
(package private) abstract java.util.List<OsmPrimitive>
ContextSwitchTemplate.ContextProvider. getPrimitives(OsmPrimitive root)
(package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.OrSet. getPrimitives(OsmPrimitive root)
(package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.ParentSet. getPrimitives(OsmPrimitive root)
Methods in org.openstreetmap.josm.tools.template_engine with parameters of type OsmPrimitive Modifier and Type Method Description (package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.AndSet. getPrimitives(OsmPrimitive root)
(package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.ChildSet. getPrimitives(OsmPrimitive root)
(package private) abstract java.util.List<OsmPrimitive>
ContextSwitchTemplate.ContextProvider. getPrimitives(OsmPrimitive root)
(package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.OrSet. getPrimitives(OsmPrimitive root)
(package private) java.util.List<OsmPrimitive>
ContextSwitchTemplate.ParentSet. getPrimitives(OsmPrimitive root)
boolean
ContextSwitchTemplate.AndSet. match(OsmPrimitive osm)
boolean
ContextSwitchTemplate.ChildSet. match(OsmPrimitive osm)
boolean
ContextSwitchTemplate.OrSet. match(OsmPrimitive osm)
boolean
ContextSwitchTemplate.ParentSet. match(OsmPrimitive osm)
-