Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/JOSM/josm
/ functions
Functions
24,633 in github.com/JOSM/josm
⨍
Functions
24,633
◇
Types & classes
4,058
↓ 41 callers
Method
assertSwitch
(Tag oldTag, Tag newTag)
test/unit/org/openstreetmap/josm/actions/corrector/ReverseWayTagCorrectorTest.java:98
↓ 41 callers
Method
cancel
Abort current operation, usually called when user somehow requested an abort
src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java:158
↓ 41 callers
Method
getConflicts
replies the map of conflicts @return the map of conflicts
src/org/openstreetmap/josm/data/osm/DataSetMerger.java:519
↓ 41 callers
Method
getEnvironment
(String key, String value)
test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSParserTest.java:53
↓ 41 callers
Method
getLayersOfType
Replies an unmodifiable list of layers of a certain type. <p> Example: <pre> List<WMSLayer> wmsLayers = getLayersOfType(WMSLayer.class); </p
src/org/openstreetmap/josm/gui/layer/LayerManager.java:375
↓ 41 callers
Method
isDebugEnabled
Determines if debug log level is enabled. Useful to avoid costly construction of debug messages when not enabled. @return {@code true} if log level is
src/org/openstreetmap/josm/tools/Logging.java:405
↓ 41 callers
Method
putPref
(String key, Object value)
src/org/openstreetmap/josm/gui/preferences/display/GPXSettingsPanel.java:330
↓ 40 callers
Method
add
Add new style records for the given node. @param osm node @param flags flags @since 13810 (signature)
src/org/openstreetmap/josm/data/osm/visitor/paint/ComputeStyleListWorker.java:157
↓ 40 callers
Method
add
(Action a)
src/org/openstreetmap/josm/gui/widgets/ListPopupMenu.java:26
↓ 40 callers
Method
addShortAlias
Adds an alias for the long option --optionName to the short version -name @param optionName The long option @param shortName The short version @return
src/org/openstreetmap/josm/tools/OptionParser.java:42
↓ 40 callers
Method
appendText
Execute this template by generating text for a given data provider. @param result the {@link StringBuilder} to append the text to @param dataProvider
src/org/openstreetmap/josm/tools/template_engine/TemplateEntry.java:29
↓ 40 callers
Method
compare
(String s1, String s2)
src/org/openstreetmap/josm/tools/AlphanumComparator.java:216
↓ 40 callers
Method
getDouble
Gets a double preference @param key The preference key @param def The default value to use @return The double value or the default value if it could n
src/org/openstreetmap/josm/spi/preferences/IPreferences.java:139
↓ 40 callers
Method
getHost
Replies the host name of the server URL. @return the host name of the server URL, or null if the server URL is malformed.
src/org/openstreetmap/josm/io/OsmApi.java:199
↓ 40 callers
Method
getX
Returns the x position. @return the x position
src/org/openstreetmap/josm/gui/layer/imagery/TilePosition.java:39
↓ 40 callers
Method
getY
Returns the y position. @return the y position
src/org/openstreetmap/josm/gui/layer/imagery/TilePosition.java:47
↓ 40 callers
Method
setActiveLayer
Set the active layer, unless the layer is being uploaded. If the layer is an OsmDataLayer, the edit layer is also changed. @param layer The active lay
src/org/openstreetmap/josm/gui/layer/MainLayerManager.java:269
↓ 40 callers
Method
setEnabled
(JCheckBox cb)
src/org/openstreetmap/josm/gui/layer/geoimage/AdvancedCorrelationSettingsDialog.java:235
↓ 40 callers
Method
subTask
Normal subtask @param title Can be {@code null}, in that case task title is not changed
src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java:127
↓ 40 callers
Method
values
()
src/org/openstreetmap/josm/data/osm/Storage.java:492
↓ 39 callers
Method
fillRect
(int x, int y, int width, int height)
test/unit/org/openstreetmap/josm/testutils/FakeGraphics.java:91
↓ 39 callers
Method
find
Finds the item that matches string. <p> Looks in the model for an element whose {@code toString()} matches {@code s}. @param s The string to match. @
src/org/openstreetmap/josm/gui/widgets/JosmComboBoxModel.java:248
↓ 39 callers
Method
from
Determines the OSM primitive type of the given object. @param obj the OSM object to inspect @return the OSM primitive type of {@code obj} @throws Ille
src/org/openstreetmap/josm/data/osm/OsmPrimitiveType.java:90
↓ 39 callers
Method
getDeclaredField
(String name)
src/org/openstreetmap/josm/gui/widgets/JosmImageView.java:53
↓ 39 callers
Method
getDisplayName
(NameFormatter formatter)
src/org/openstreetmap/josm/data/osm/IWay.java:104
↓ 39 callers
Method
getInstant
Time of last modification to this object. This is not set by JOSM but read from the server and delivered back to the server unmodified. It is used to
src/org/openstreetmap/josm/data/osm/IPrimitive.java:299
↓ 39 callers
Method
getSelectedImages
Return the current selected images @return the selected images as list {@link ImageEntry} @since 15333
src/org/openstreetmap/josm/data/ImageData.java:132
↓ 39 callers
Method
hasNext
()
src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSRuleIndex.java:49
↓ 39 callers
Method
iterator
()
src/org/openstreetmap/josm/data/gpx/Line.java:83
↓ 39 callers
Method
max
Helper function to calculate maximum of 4 values. @param a First value @param b Second value @param c Third value @param d Fourth value @return maxim
src/org/openstreetmap/josm/data/osm/visitor/paint/WireframeMapRenderer.java:230
↓ 39 callers
Method
testgetCharactersForKeyE00
(String locale, Character... expected)
test/unit/org/openstreetmap/josm/tools/KeyboardUtilsTest.java:98
↓ 38 callers
Method
create
Creates a new {@code TaggingPresetItemGuiSupport} @param presetInitiallyMatches whether the preset initially matched @param selected the selected pri
src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetItemGuiSupport.java:107
↓ 38 callers
Method
draw
(Shape s)
test/unit/org/openstreetmap/josm/testutils/FakeGraphics.java:333
↓ 38 callers
Method
getEditLayer
()
src/org/openstreetmap/josm/actions/downloadtasks/DownloadOsmTask.java:266
↓ 38 callers
Method
getPointFor
Gets the {@link MapViewPoint} for the given {@link EastNorth} coordinate. @param eastNorth the position. @return The point for that position.
src/org/openstreetmap/josm/gui/MapViewState.java:198
↓ 38 callers
Method
getRelation
Replies the currently edited relation @return the currently edited relation
src/org/openstreetmap/josm/gui/dialogs/relation/IRelationEditor.java:18
↓ 38 callers
Method
isWay
Determines if this relation member is a way. @return True if member is way
src/org/openstreetmap/josm/data/osm/IRelationMember.java:46
↓ 38 callers
Method
readBytes
(InputStream in, byte[] b)
src/org/openstreetmap/josm/data/projection/datum/NTV2SubGrid.java:155
↓ 37 callers
Method
getFile
Returns associated file. @return associated file
src/org/openstreetmap/josm/data/imagery/street_level/IImageEntry.java:185
↓ 37 callers
Method
getInstance
Replies the unique instance of the cache @return the unique instance of the cache
src/org/openstreetmap/josm/data/osm/ChangesetCache.java:60
↓ 37 callers
Method
getOneImage
()
test/unit/org/openstreetmap/josm/data/ImageDataTest.java:36
↓ 37 callers
Method
getParentWays
Replies the list of referring ways. @return the list of referring ways @since 12031
src/org/openstreetmap/josm/data/osm/Node.java:365
↓ 37 callers
Method
getSegments
Returns the track segments. @return the track segments
src/org/openstreetmap/josm/data/gpx/IGpxTrack.java:19
↓ 37 callers
Method
newNode
Creates a new node with the given tags (see {@link OsmUtils#createPrimitive(java.lang.String)}) @param tags the tags to set @return a new node
test/unit/org/openstreetmap/josm/TestUtils.java:399
↓ 37 callers
Method
populate
(Conflict<? extends OsmPrimitive> conflict)
src/org/openstreetmap/josm/gui/conflict/pair/IConflictResolver.java:16
↓ 37 callers
Method
worked
Increase number of already done work units by ticks @param ticks number of ticks to add
src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java:115
↓ 37 callers
Method
writeUnlock
(boolean locked)
src/org/openstreetmap/josm/data/osm/OsmPrimitive.java:223
↓ 36 callers
Method
addListener
Add a listener that listens to changes in the GPX track. @param l The listener
src/org/openstreetmap/josm/data/gpx/IGpxTrack.java:53
↓ 36 callers
Method
evaluate
Evaluate this expression. @param env The environment @return the result of the evaluation, can be a {@link java.util.List}, String or any primitive ty
src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java:22
↓ 36 callers
Method
getInstance
Get the instance to test @return The item to test
test/unit/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetItemTest.java:21
↓ 36 callers
Method
getInstance
Replies the unique instance of the version information @return the unique instance of the version information
src/org/openstreetmap/josm/data/Version.java:33
↓ 36 callers
Method
getProperty
Get the color property @return The property that is used to access the color. @since 10874
src/org/openstreetmap/josm/data/osm/visitor/paint/PaintColors.java:120
↓ 36 callers
Method
getX
(final double x, final double y, final double z)
test/unit/org/openstreetmap/josm/gui/util/imagery/Vector3DTest.java:30
↓ 36 callers
Method
getY
(final double x, final double y, final double z)
test/unit/org/openstreetmap/josm/gui/util/imagery/Vector3DTest.java:37
↓ 36 callers
Method
size
Get the list size @return The list size
src/org/openstreetmap/josm/gui/mappaint/StyleElementList.java:69
↓ 36 callers
Method
startTest
Start the test using a given progress monitor @param progressMonitor the progress monitor
src/org/openstreetmap/josm/data/validation/Test.java:163
↓ 35 callers
Method
addArgumentParameter
Add a parameter that expects a string attribute. E.g.: --config=/path/to/file @param optionName The name of the parameter. @param count The number of
src/org/openstreetmap/josm/tools/OptionParser.java:87
↓ 35 callers
Method
connect
Opens the HTTP connection. @return HTTP response @throws IOException if any I/O error occurs
src/org/openstreetmap/josm/tools/HttpClient.java:124
↓ 35 callers
Method
getEditorComponent
Returns the editor component @return the editor component @see ComboBoxEditor#getEditorComponent() @since 9484
src/org/openstreetmap/josm/gui/widgets/JosmComboBox.java:134
↓ 35 callers
Method
getMin
Gets the point that has both the minimal lat and lon coordinate @return The point
src/org/openstreetmap/josm/data/IBounds.java:19
↓ 35 callers
Method
getTime
Get the time for this setting. @return the time for this setting @see #setTime(java.lang.Long)
src/org/openstreetmap/josm/spi/preferences/Setting.java:65
↓ 35 callers
Method
highlight
Sets the primitives to highlight when selecting this error. @param highlighted the primitives to highlight @return {@code this} @see ValidatorVisitor
src/org/openstreetmap/josm/data/validation/TestError.java:169
↓ 35 callers
Method
isDisabled
Replies true, if this primitive is disabled. (E.g. a filter applies) @return {@code true} if this object has the "disabled" flag enabled @since 13662
src/org/openstreetmap/josm/data/osm/IPrimitive.java:130
↓ 35 callers
Method
loadStyleSource
(boolean metadataOnly)
src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java:154
↓ 35 callers
Method
paintSlippyMap
()
test/unit/org/openstreetmap/josm/gui/dialogs/MinimapDialogTest.java:172
↓ 35 callers
Method
setEnabled
Sets the enabled state of the {@code FileExporter}. When enabled, it is listed and usable in "File → Save" dialogs. @param enabled true to enable this
src/org/openstreetmap/josm/gui/io/importexport/FileExporter.java:83
↓ 35 callers
Method
zoomTo
Zoom to the given coordinate and scale. @param newCenter The center x-value (easting) to zoom to. @param newScale The scale to use.
src/org/openstreetmap/josm/gui/NavigatableComponent.java:678
↓ 34 callers
Method
addAction
Registers an action and its shortcut @param action The action to add
src/org/openstreetmap/josm/gui/util/MultikeyActionsHandler.java:220
↓ 34 callers
Method
drawImage
(Image img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, Color bgcolor,
test/unit/org/openstreetmap/josm/testutils/FakeGraphics.java:128
↓ 34 callers
Method
getAreaText
Returns the text describing the given area in this system of measurement. @param area The area in square metres @return The text describing the given
src/org/openstreetmap/josm/data/SystemOfMeasurement.java:252
↓ 34 callers
Method
getMax
Gets the point that has both the maximum lat and lon coordinate @return The point
src/org/openstreetmap/josm/data/IBounds.java:42
↓ 34 callers
Method
getMembersCount
Returns the number of members. @return number of members
src/org/openstreetmap/josm/data/osm/IRelation.java:21
↓ 34 callers
Method
getRemovedLayer
Gets the layer that is about to be removed. @return The layer.
src/org/openstreetmap/josm/gui/layer/LayerManager.java:141
↓ 34 callers
Method
indeterminateSubTask
Subtask that will show progress running back and forth @param title Can be {@code null}, in that case task title is not changed
src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java:121
↓ 34 callers
Method
lastIndexOf
(Object o)
src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java:805
↓ 34 callers
Method
parseDouble
Returns a new {@code double} initialized to the value represented by the specified {@code String}, allowing both dot and comma decimal separators. @p
src/org/openstreetmap/josm/tools/JosmDecimalFormatSymbolsProvider.java:48
↓ 34 callers
Method
setSelectedImage
Select as the selected the given image @param image the selected image
src/org/openstreetmap/josm/data/ImageData.java:214
↓ 33 callers
Method
checkSimilarity
(String message, String name1, String name2, boolean expected)
test/unit/org/openstreetmap/josm/data/validation/tests/SimilarNamedWaysTest.java:16
↓ 33 callers
Method
decorate
Add the listener to a given text component. @param tc The text component.
src/org/openstreetmap/josm/gui/widgets/SelectAllOnFocusGainedDecorator.java:19
↓ 33 callers
Method
getCascade
Read-only version of {@link #getOrCreateCascade}. For convenience, it returns an empty cascade for non-existing layers. However this empty (read-only)
src/org/openstreetmap/josm/gui/mappaint/MultiCascade.java:65
↓ 33 callers
Method
getDistText
Returns the text describing the given distance in this system of measurement. @param dist The distance in metres @return The text describing the given
src/org/openstreetmap/josm/data/SystemOfMeasurement.java:224
↓ 33 callers
Method
getExpirationTime
Returns when the object expires in milliseconds from Epoch. @return when the object expires in milliseconds from Epoch
src/org/openstreetmap/josm/data/cache/CacheEntryAttributes.java:125
↓ 33 callers
Method
getInstance
Replies the instance of the dialog @return the instance of the dialog @throws IllegalStateException if the dialog is not created yet @see #createInst
src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java:131
↓ 33 callers
Method
getMembersCount
()
src/org/openstreetmap/josm/data/osm/Relation.java:67
↓ 33 callers
Method
getModel
Returns the layer list model. @return the layer list model
src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java:391
↓ 33 callers
Method
isLocked
Determines if this is read-only/locked (thus it cannot be modified). @return {@code true} if this is read-only/locked
src/org/openstreetmap/josm/data/osm/Lockable.java:24
↓ 33 callers
Method
load
Load the layer from xml meta-data. @param elem XML element @param support support class providing import utilities @param progressMonitor progress mon
src/org/openstreetmap/josm/io/session/SessionLayerImporter.java:29
↓ 33 callers
Method
ofEnv
Create a {@link Factory} for a function @param function The function to use @return The result of the function
src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java:185
↓ 33 callers
Method
resolve
Try to resolve a conflict between a set of values for a Tag @param values the set of conflicting values for the Tag. @return the resolved value or nul
src/org/openstreetmap/josm/gui/conflict/tags/TagConflictResolutionUtil.java:200
↓ 33 callers
Method
showDialog
()
src/org/openstreetmap/josm/gui/ExtendedDialog.java:241
↓ 33 callers
Method
split
Splits string {@code toSplit} at occurrences of the separator string {@code sep} and returns a list of matches. @param sep separator string @param toS
src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java:185
↓ 33 callers
Method
unlock
Disables the read-only/locked mode.
src/org/openstreetmap/josm/data/osm/Lockable.java:18
↓ 33 callers
Method
zoomTo
Zooms the view to display the given set of primitives. @param sel The primitives to zoom to, e.g. the current selection.
src/org/openstreetmap/josm/actions/AutoScaleAction.java:147
↓ 32 callers
Method
addElement
Adds an element to the end of the model. Does nothing if max size is already reached.
src/org/openstreetmap/josm/gui/widgets/JosmComboBoxModel.java:86
↓ 32 callers
Method
addLayerChangeListener
Adds a layer change listener @param listener the listener. @throws IllegalArgumentException If the listener was added twice. @see #addAndFireLayerCha
src/org/openstreetmap/josm/gui/layer/LayerManager.java:407
↓ 32 callers
Method
createStarted
Creates and starts a stopwatch @return the started stopwatch
src/org/openstreetmap/josm/tools/Stopwatch.java:24
↓ 32 callers
Method
endTest
Notification of the end of the test. The tester may perform additional actions and destroy the used structures. <p> If you override this method, don't
src/org/openstreetmap/josm/data/validation/Test.java:195
↓ 32 callers
Method
getAttributes
Returns the attributes @return the attributes
src/org/openstreetmap/josm/data/gpx/IWithAttributes.java:57
↓ 32 callers
Method
getInstance
Returns the unique instance. @return the unique instance
src/org/openstreetmap/josm/data/osm/event/SelectionEventManager.java:40
↓ 32 callers
Method
getInstance
Replies the unique instance. @return The unique instance of {@code OAuthAccessTokenHolder}
src/org/openstreetmap/josm/data/oauth/OAuthAccessTokenHolder.java:31
← previous
next →
401–500 of 24,633, ranked by callers