Package | Description |
---|---|
org.openstreetmap.josm.actions |
Provides the classes for JOSM user actions.
|
org.openstreetmap.josm.actions.downloadtasks |
Provides the classes for JOSM
download tasks . |
org.openstreetmap.josm.command |
Provides the classes for JOSM commands allowing to modify an OSM data set.
|
org.openstreetmap.josm.data.conflict |
Provides the classes for edition
conflicts
between OsmPrimitive s |
org.openstreetmap.josm.data.osm |
Provides the classes for OSM data:
Primitives :
Node ,
Way ,
Relation
Users
Tags
Changesets
Utilities classes
|
org.openstreetmap.josm.data.osm.history |
Provides the classes for OSM primitives
history (edition revisions). |
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.relation |
Provides the classes for displaying conflicts in OSM primitive relation memberships.
|
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 else
|
org.openstreetmap.josm.gui.dialogs.relation |
Toggle dialog allowing to display currently loaded relations and perform operations on them.
|
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.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.handler |
Provides the classes for remote control handlers (features exposed to the browser).
|
Modifier and Type | Method and Description |
---|---|
static void |
UpdateSelectionAction.updatePrimitive(PrimitiveId id)
Updates the data for the
OsmPrimitive s with id id
with the data currently kept on the server. |
Modifier and Type | Method and Description |
---|---|
static void |
DownloadPrimitiveAction.processItems(boolean newLayer,
java.util.List<PrimitiveId> ids,
boolean downloadReferrers,
boolean full)
Submits the download task for the given primitive ids.
|
Modifier and Type | Method and Description |
---|---|
void |
DownloadOsmChangeTask.HistoryLoaderAndListener.historyUpdated(HistoryDataSet source,
PrimitiveId id) |
Constructor and Description |
---|
DownloadReferrersTask(OsmDataLayer targetLayer,
PrimitiveId primitiveId,
ProgressMonitor progressMonitor)
constructor
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<PrimitiveId,PrimitiveData> |
PurgeCommand.makeIncompleteDataByPrimId |
private java.util.List<? extends PrimitiveId> |
SplitWayCommand.newSelection |
Modifier and Type | Method and Description |
---|---|
java.util.List<? extends PrimitiveId> |
SplitWayCommand.getNewSelection()
Replies the new list of selected primitives ids
|
Constructor and Description |
---|
SplitWayCommand(java.lang.String name,
java.util.Collection<Command> commandList,
java.util.List<? extends PrimitiveId> newSelection,
Way originalWay,
java.util.List<Way> newWays)
Create a new
SplitWayCommand . |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PrimitiveId,PrimitiveId> |
Conflict.mergedMap |
private java.util.Map<PrimitiveId,PrimitiveId> |
Conflict.mergedMap |
Modifier and Type | Method and Description |
---|---|
java.util.Map<PrimitiveId,PrimitiveId> |
Conflict.getMergedMap() |
java.util.Map<PrimitiveId,PrimitiveId> |
Conflict.getMergedMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
Conflict.isParticipating(PrimitiveId id)
Replies true if the primitive with id
id is participating
in this conflict |
Modifier and Type | Method and Description |
---|---|
void |
Conflict.setMergedMap(java.util.Map<PrimitiveId,PrimitiveId> mergedMap) |
void |
Conflict.setMergedMap(java.util.Map<PrimitiveId,PrimitiveId> mergedMap) |
Modifier and Type | Interface and Description |
---|---|
interface |
INode
|
interface |
IPrimitive
IPrimitive captures the common functions of
OsmPrimitive and PrimitiveData . |
interface |
IRelation<M extends IRelationMember<?>>
IRelation captures the common functions of
Relation and RelationData . |
interface |
IRelationMember<P extends IPrimitive>
IRelationMember captures the common functions of
RelationMember and RelationMemberData . |
interface |
IWay<N extends INode>
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractPrimitive
Abstract class to represent common features of the datatypes primitives.
|
class |
Node
One node data, consisting of one world coordinate waypoint.
|
class |
NodeData
The data on a single node (tags and position) that is stored in the database
|
class |
OsmPrimitive
|
class |
PrimitiveData
This class can be used to save properties of OsmPrimitive.
|
class |
Relation
A relation, having a set of tags and any number (0...n) of members.
|
class |
RelationData
Relation data.
|
class |
RelationMember
A linkage class that can be used by an relation to keep a list of members.
|
class |
RelationMemberData
This is the data (role, type and id) that is stored in the database for a given relation member.
|
class |
SimplePrimitiveId
A primitive id and a primitive type
|
class |
Way
One full way, consisting of a list of way
nodes . |
class |
WayData
The data (tags and node ids) that is stored for a way in the database.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PrimitiveId,java.lang.Object> |
ChangesetDataSet.entryMap
maps an id to either one
ChangesetDataSet.ChangesetDataSetEntry or an array of ChangesetDataSet.ChangesetDataSetEntry |
private java.util.Map<PrimitiveId,PrimitiveId> |
DataSetMerger.mergedMap
A map of all primitives that got replaced with other primitives.
|
private java.util.Map<PrimitiveId,PrimitiveId> |
DataSetMerger.mergedMap
A map of all primitives that got replaced with other primitives.
|
private java.util.Set<PrimitiveId> |
DataSetMerger.objectsWithChildrenToMerge
a set of primitive ids for which we have to fix references (to nodes and
to relation members) after the first phase of merging
|
private java.util.Map<PrimitiveId,OsmPrimitive> |
DataSet.primitivesMap |
private java.util.Iterator<java.util.Map.Entry<PrimitiveId,java.lang.Object>> |
ChangesetDataSet.DefaultIterator.typeIterator |
Modifier and Type | Method and Description |
---|---|
default PrimitiveId |
IPrimitive.getOsmPrimitiveId()
Replies the OSM primitive id for this primitive.
|
default PrimitiveId |
IPrimitive.getPrimitiveId()
Replies the unique primitive id for this primitive.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<PrimitiveId> |
ChangesetDataSet.getIds() |
Modifier and Type | Method and Description |
---|---|
void |
DataSet.addSelected(PrimitiveId... osm) |
void |
OsmData.addSelected(PrimitiveId... osm)
Adds the primitives in
osm to the current selection
and notifies all DataSelectionListener . |
void |
DataSet.clearSelection(PrimitiveId... osm) |
void |
OsmData.clearSelection(PrimitiveId... osm)
Removes the selection from every value in the collection.
|
boolean |
ChangesetDataSet.contains(PrimitiveId id)
Replies true if the changeset content contains the object with primitive
id . |
boolean |
Storage.PrimitiveIdHash.equals(PrimitiveId key,
PrimitiveId value) |
private ChangesetDataSet.ChangesetDataSetEntry |
ChangesetDataSet.getEntry(PrimitiveId id,
int n) |
ChangesetDataSet.ChangesetDataSetEntry |
ChangesetDataSet.getFirstEntry(PrimitiveId id)
Replies the first
ChangesetDataSet.ChangesetDataSetEntry with id id from this dataset. |
int |
Storage.PrimitiveIdHash.getHashCode(PrimitiveId k) |
ChangesetDataSet.ChangesetDataSetEntry |
ChangesetDataSet.getLastEntry(PrimitiveId id)
Replies the last
ChangesetDataSet.ChangesetDataSetEntry with id id from this dataset. |
ChangesetDataSet.ChangesetModificationType |
ChangesetDataSet.getModificationType(PrimitiveId id)
Replies the last modification type for the object with id
id . |
HistoryOsmPrimitive |
ChangesetDataSet.getPrimitive(PrimitiveId id)
Replies the
HistoryOsmPrimitive with id id from this dataset. |
OsmPrimitive |
DataSet.getPrimitiveById(PrimitiveId primitiveId) |
O |
OsmData.getPrimitiveById(PrimitiveId primitiveId)
Returns a primitive with a given id from the data set.
|
private OsmPrimitive |
DataSet.getPrimitiveByIdChecked(PrimitiveId primitiveId)
Show message and stack trace in log in case primitive is not found
|
boolean |
ChangesetDataSet.isCreated(PrimitiveId id)
Replies true if the primitive with id
id was created in this
changeset. |
boolean |
ChangesetDataSet.isDeleted(PrimitiveId id)
Replies true if the primitive with id
id was deleted in this
changeset. |
boolean |
ChangesetDataSet.isUpdated(PrimitiveId id)
Replies true if the primitive with id
id was updated in this
changeset. |
void |
DataSet.removePrimitive(PrimitiveId primitiveId)
Removes a primitive from the dataset.
|
void |
DataSet.setSelected(PrimitiveId... osm) |
void |
OsmData.setSelected(PrimitiveId... osm)
Sets the current selection to the primitives in
osm
and notifies all DataSelectionListener . |
void |
DataSet.toggleSelected(PrimitiveId... osm) |
void |
OsmData.toggleSelected(PrimitiveId... osm)
Toggles the selected state of the given collection of primitives.
|
Modifier and Type | Method and Description |
---|---|
void |
DataSet.addSelected(java.util.Collection<? extends PrimitiveId> selection) |
void |
OsmData.addSelected(java.util.Collection<? extends PrimitiveId> selection)
Adds the primitives in
selection to the current selection
and notifies all DataSelectionListener . |
private void |
DataSet.addSelected(java.util.stream.Stream<? extends PrimitiveId> stream) |
protected void |
Node.addToBBox(BBox box,
java.util.Set<PrimitiveId> visited) |
protected void |
Relation.addToBBox(BBox box,
java.util.Set<PrimitiveId> visited) |
protected void |
Way.addToBBox(BBox box,
java.util.Set<PrimitiveId> visited) |
protected abstract void |
OsmPrimitive.addToBBox(BBox box,
java.util.Set<PrimitiveId> visited)
If necessary, extend the bbox to contain this primitive
|
void |
DataSet.clearSelection(java.util.Collection<? extends PrimitiveId> list) |
void |
OsmData.clearSelection(java.util.Collection<? extends PrimitiveId> list)
Removes the selection from every value in the collection.
|
private void |
DataSet.clearSelection(java.util.stream.Stream<? extends PrimitiveId> stream) |
void |
DataSet.setSelected(java.util.Collection<? extends PrimitiveId> selection) |
void |
OsmData.setSelected(java.util.Collection<? extends PrimitiveId> selection)
Sets the current selection to the primitives in
selection
and notifies all DataSelectionListener . |
private void |
DataSet.setSelected(java.util.stream.Stream<? extends PrimitiveId> stream) |
void |
DataSet.toggleSelected(java.util.Collection<? extends PrimitiveId> osm) |
void |
OsmData.toggleSelected(java.util.Collection<? extends PrimitiveId> osm)
Toggles the selected state of the given collection of primitives.
|
private void |
DataSet.toggleSelected(java.util.stream.Stream<? extends PrimitiveId> stream) |
Constructor and Description |
---|
RelationMemberData(java.lang.String role,
PrimitiveId primitive)
Constructs a new
RelationMemberData . |
Constructor and Description |
---|
DefaultIterator(java.util.Map<PrimitiveId,java.lang.Object> entryMap) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PrimitiveId,java.util.ArrayList<HistoryOsmPrimitive>> |
HistoryDataSet.data
the history data
|
Modifier and Type | Method and Description |
---|---|
PrimitiveId |
History.getPrimitiveId()
Replies the primitive id for this history.
|
PrimitiveId |
HistoryOsmPrimitive.getPrimitiveId()
Returns the primitive id.
|
Modifier and Type | Method and Description |
---|---|
protected void |
HistoryDataSet.fireHistoryUpdated(PrimitiveId id) |
History |
HistoryDataSet.getHistory(PrimitiveId pid)
Replies the history for a primitive with id
id . |
void |
HistoryDataSetListener.historyUpdated(HistoryDataSet source,
PrimitiveId id)
Fired by a
HistoryDataSet if the cached history of an OSM primitive with
id id is updated |
Modifier and Type | Class and Description |
---|---|
class |
AbstractListMergeModel<T extends PrimitiveId,C extends ConflictResolveCommand>
ListMergeModel is a model for interactively comparing and merging two list of entries
of type T.
|
class |
AbstractListMerger<T extends PrimitiveId,C extends ConflictResolveCommand>
A UI component for resolving conflicts in two lists of entries of type T.
|
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PrimitiveId,PrimitiveId> |
AbstractListMergeModel.mergedMap |
private java.util.Map<PrimitiveId,PrimitiveId> |
AbstractListMergeModel.mergedMap |
private AbstractListMergeModel<? extends PrimitiveId,? extends ConflictResolveCommand> |
PairTable.model |
Modifier and Type | Method and Description |
---|---|
OsmPrimitive |
AbstractListMergeModel.getMyPrimitiveById(PrimitiveId entry) |
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractListMergeModel.alertCopyFailedForDeletedPrimitives(java.util.List<PrimitiveId> deletedIds) |
protected void |
AbstractListMergeModel.initPopulate(OsmPrimitive my,
OsmPrimitive their,
java.util.Map<PrimitiveId,PrimitiveId> mergedMap) |
protected void |
AbstractListMergeModel.initPopulate(OsmPrimitive my,
OsmPrimitive their,
java.util.Map<PrimitiveId,PrimitiveId> mergedMap) |
Constructor and Description |
---|
PairTable(java.lang.String name,
AbstractListMergeModel<? extends PrimitiveId,? extends ConflictResolveCommand> model,
OsmPrimitivesTableModel dm,
javax.swing.table.TableColumnModel cm,
javax.swing.ListSelectionModel sm)
Constructs a new
PairTable . |
Modifier and Type | Method and Description |
---|---|
void |
NodeListMergeModel.populate(Way my,
Way their,
java.util.Map<PrimitiveId,PrimitiveId> mergedMap)
|
void |
NodeListMergeModel.populate(Way my,
Way their,
java.util.Map<PrimitiveId,PrimitiveId> mergedMap)
|
Modifier and Type | Method and Description |
---|---|
void |
RelationMemberListMergeModel.populate(Relation my,
Relation their,
java.util.Map<PrimitiveId,PrimitiveId> mergedMap)
populates the model with the relation members in relation my and their
|
void |
RelationMemberListMergeModel.populate(Relation my,
Relation their,
java.util.Map<PrimitiveId,PrimitiveId> mergedMap)
populates the model with the relation members in relation my and their
|
Modifier and Type | Method and Description |
---|---|
java.util.List<PrimitiveId> |
OsmIdSelectionDialog.getOsmIds()
Gets the requested OSM object IDs.
|
Modifier and Type | Class and Description |
---|---|
private static class |
MemberTransferHandler.AbstractRelationMemberConverter<T extends PrimitiveId> |
Modifier and Type | Method and Description |
---|---|
protected <T extends PrimitiveId> |
MemberTransferHandler.importData(MemberTable destination,
int insertRow,
java.util.Collection<T> memberData,
MemberTransferHandler.AbstractRelationMemberConverter<T> toMemberFunction) |
Modifier and Type | Field and Description |
---|---|
private PrimitiveId |
VersionInfoPanel.primitiveId |
private PrimitiveId |
NodeListViewer.ZoomToNodeAction.primitiveId |
private PrimitiveId |
NodeListViewer.ShowHistoryAction.primitiveId |
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<PrimitiveId> |
HistoryBrowserDialogManager.notNewPredicate |
private java.util.Set<PrimitiveId> |
HistoryLoadTask.toLoad |
private java.util.function.Predicate<PrimitiveId> |
HistoryBrowserDialogManager.unloadedHistoryPredicate |
Modifier and Type | Method and Description |
---|---|
private static PrimitiveId |
NodeListViewer.primitiveIdAtRow(DiffTableModel model,
int row) |
Modifier and Type | Method and Description |
---|---|
HistoryLoadTask |
HistoryLoadTask.add(PrimitiveId pid)
Adds an object whose history is to be loaded.
|
protected static java.lang.String |
HistoryLoadTask.getLoadingMessage(PrimitiveId pid) |
void |
HistoryBrowserDialog.historyUpdated(HistoryDataSet source,
PrimitiveId primitiveId) |
private void |
HistoryLoadTask.loadHistory(PrimitiveId pid) |
void |
NodeListViewer.NodeListPopupMenu.prepare(PrimitiveId pid) |
void |
NodeListViewer.ZoomToNodeAction.setPrimitiveId(PrimitiveId pid) |
void |
NodeListViewer.ShowHistoryAction.setPrimitiveId(PrimitiveId pid) |
boolean |
HistoryBrowserDialogManager.UnloadedHistoryPredicate.test(PrimitiveId p) |
(package private) javax.swing.Action |
OpenChangesetPopupMenu.ChangesetViewerEntry.toAction(long changesetId,
PrimitiveId primitiveId) |
void |
VersionInfoPanel.update(Changeset cs,
boolean isLatest,
java.util.Date timestamp,
long version,
PrimitiveId id)
Updates the content of this panel based on the changeset information given by
cs . |
Modifier and Type | Method and Description |
---|---|
default void |
HistoryHook.modifyRequestedIds(java.util.List<PrimitiveId> ids)
Modify the requested primitive ids before history request.
|
void |
HistoryBrowserDialogManager.showHistory(java.util.Collection<? extends PrimitiveId> primitives)
Show history dialog(s) for the given primitive(s).
|
Constructor and Description |
---|
OpenChangesetPopupMenu(long changesetId,
PrimitiveId primitiveId)
Constructs a new
OpenChangesetPopupMenu for the given changeset id. |
Modifier and Type | Field and Description |
---|---|
private java.util.List<PrimitiveId> |
DownloadPrimitivesTask.ids |
private java.util.List<PrimitiveId> |
DownloadPrimitivesWithReferrersTask.ids
List of primitives id to download
|
private java.util.Set<PrimitiveId> |
AbstractPrimitiveTask.missingPrimitives |
Modifier and Type | Method and Description |
---|---|
java.util.List<PrimitiveId> |
DownloadPrimitivesWithReferrersTask.getDownloadedId()
Return id of really downloaded primitives.
|
java.util.Set<PrimitiveId> |
AbstractPrimitiveTask.getMissingPrimitives()
Replies the set of ids of all primitives for which a fetch request to the
server was submitted but which are not available from the server (the server
replied a return code of 404)
|
Modifier and Type | Method and Description |
---|---|
private static ExtendedDialog |
DownloadPrimitivesWithReferrersTask.reportProblemDialog(java.util.Set<PrimitiveId> errs,
java.lang.String title,
java.lang.String text,
java.lang.String listLabel,
int msgType)
Dialog for report a problem during download.
|
Constructor and Description |
---|
DownloadPrimitivesTask(OsmDataLayer layer,
java.util.List<PrimitiveId> ids,
boolean fullRelation)
Constructs a new
DownloadPrimitivesTask . |
DownloadPrimitivesTask(OsmDataLayer layer,
java.util.List<PrimitiveId> ids,
boolean fullRelation,
ProgressMonitor progressMonitor)
Constructs a new
DownloadPrimitivesTask . |
DownloadPrimitivesWithReferrersTask(boolean newLayer,
java.util.List<PrimitiveId> ids,
boolean downloadReferrers,
boolean full,
java.lang.String newLayerName,
ProgressMonitor monitor)
Constructor
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<PrimitiveId> |
OsmIdTextField.OsmIdValidator.ids |
Modifier and Type | Method and Description |
---|---|
java.util.List<PrimitiveId> |
OsmIdTextField.getIds()
Get entered ID list - supports "1,2,3" "1 2 ,3" or even "1 2 3 v2 6 v8"
|
Modifier and Type | Field and Description |
---|---|
private PrimitiveId |
OsmServerObjectReader.id
the id of the object to download
|
private PrimitiveId |
NameFinder.SearchResult.osmId |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PrimitiveId,DiffResultProcessor.DiffResultEntry> |
DiffResultProcessor.diffResults
mapping from old id to new id and version, the result of parsing the diff result
replied by the server
|
protected java.util.Map<PrimitiveId,OsmPrimitive> |
AbstractReader.externalIdMap
the map from external ids to read OsmPrimitives.
|
private java.util.Set<PrimitiveId> |
MultiFetchServerObjectReader.missingPrimitives |
java.util.Set<PrimitiveId> |
MultiFetchServerObjectReader.FetchResult.missingPrimitives
The collection of primitive ids that could not have been loaded
|
Modifier and Type | Method and Description |
---|---|
PrimitiveId |
NameFinder.SearchResult.getOsmId()
Returns the OSM id.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Map<PrimitiveId,DiffResultProcessor.DiffResultEntry> |
DiffResultProcessor.getDiffResults() |
java.util.Set<PrimitiveId> |
MultiFetchServerObjectReader.getMissingPrimitives()
replies the set of ids of all primitives for which a fetch request to the
server was submitted but which are not available from the server (the server
replied a return code of 404)
|
Modifier and Type | Method and Description |
---|---|
protected void |
MultiFetchServerObjectReader.remember(PrimitiveId id)
Remembers an
OsmPrimitive 's id. |
Constructor and Description |
---|
OsmServerObjectReader(PrimitiveId id,
boolean full)
Creates a new server object reader for an object with the given
id |
OsmServerObjectReader(PrimitiveId id,
boolean full,
int version) |
OsmServerObjectReader(PrimitiveId id,
int version)
Creates a new server object reader for an object with the given
id |
Constructor and Description |
---|
FetchResult(DataSet dataSet,
java.util.Set<PrimitiveId> missingPrimitives)
Constructs a
FetchResult |
Modifier and Type | Field and Description |
---|---|
private java.util.List<PrimitiveId> |
LoadObjectHandler.ps |