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
↓ 3,534 callers
Method
tr
Translates some text for the current locale. The first argument is the text to translate, and the subsequent arguments are parameters for the string i
src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java:1014
↓ 2,584 callers
Method
get
Replies the value of the given key; null, if there is no value for this key @param key the key @return the value
src/org/openstreetmap/josm/data/osm/Tagged.java:88
↓ 2,567 callers
Method
put
Sets a key/value pairs @param key the key @param value the value. If null, removes the key/value pair.
src/org/openstreetmap/josm/data/osm/Tagged.java:58
↓ 2,520 callers
Method
tr
Translates some text for the current locale. These strings are collected by a script that runs on the source code files. After translation, the locali
src/org/openstreetmap/josm/tools/I18n.java:211
↓ 2,253 callers
Method
add
Add a point to an existing BBox. Extends this bbox if necessary so that this.bounds(c) will return true if c is a valid LatLon instance. Kept for bina
src/org/openstreetmap/josm/data/osm/BBox.java:127
↓ 2,066 callers
Method
equals
Compare two instances for semantic or lookup equality. For use cases where it compares different types, refer to {@link Storage}. @param k the object
src/org/openstreetmap/josm/data/osm/Hash.java:36
↓ 1,553 callers
Method
isEmpty
Determines if this way is empty, i.e. it has no nodes. @return {@code true} if this way is empty, i.e. it has no nodes @since 16119
src/org/openstreetmap/josm/data/osm/IWay.java:25
↓ 1,314 callers
Method
size
()
src/org/openstreetmap/josm/tools/Utils.java:550
↓ 1,292 callers
Method
stream
Gets a stream with all extensions with the given prefix and key @param prefix the prefix @param key the key/tag @return the <code>Stream<{@link Gpx
src/org/openstreetmap/josm/data/gpx/GpxExtensionCollection.java:198
↓ 1,258 callers
Method
get
Compute and get the {@link BoxProviderResult}. The temporary flag is set if the result of the computation may change in the future. @return The result
src/org/openstreetmap/josm/gui/mappaint/styleelement/BoxTextElement.java:78
↓ 1,138 callers
Method
append
Append a list of nodes @param nodes The nodes to append @param connect <code>true</code> if we should use a lineTo as first command. @return this for
src/org/openstreetmap/josm/gui/draw/MapViewPath.java:148
↓ 1,031 callers
Method
getPref
Get the preferences. @return the preferences @since 12847
src/org/openstreetmap/josm/spi/preferences/Config.java:25
↓ 952 callers
Method
contains
Determines if the given point {@code ll} is within these bounds. <p> Points with unknown coordinates are always outside the coordinates. @param ll Th
src/org/openstreetmap/josm/data/IBounds.java:75
↓ 897 callers
Method
asList
Replies the tags of this tag collection as list. Note that the order of the list is not preserved between method invocations. @return the tags of thi
src/org/openstreetmap/josm/data/osm/TagCollection.java:467
↓ 751 callers
Method
toString
Describe the projection in one or two words. @return the name / description
src/org/openstreetmap/josm/data/projection/Projection.java:39
↓ 724 callers
Method
filter
Filters a component according to the given filter expression. @param expr filter expression
src/org/openstreetmap/josm/gui/widgets/FilterField.java:57
↓ 708 callers
Method
add
Add a new {@link ToggleDialog} to the list of known dialogs and trigger reconstruct. @param dlg The dialog to add
src/org/openstreetmap/josm/gui/dialogs/DialogsPanel.java:74
↓ 700 callers
Method
add
()
src/org/openstreetmap/josm/gui/preferences/advanced/MapListEditor.java:92
↓ 653 callers
Method
getName
Returns the name of this data set (optional). @return the name of this data set. Can be {@code null} @since 12718
src/org/openstreetmap/josm/data/osm/OsmData.java:44
↓ 565 callers
Method
getLayerManager
Returns the main layer manager that is used by the map view. @return The layer manager. The value returned will never change. @since 12636 (as a repla
src/org/openstreetmap/josm/gui/MainApplication.java:474
↓ 552 callers
Method
eol
Create the constraint for the last elements on a line. @return A constraint which indicates the last item on a line.
src/org/openstreetmap/josm/tools/GBC.java:38
↓ 545 callers
Method
map
Add a new tag name to class type mapping @param tagName The tag name that should be converted to that class @param klass The class the XML elements sh
src/org/openstreetmap/josm/tools/XmlObjectParser.java:325
↓ 498 callers
Method
isSelected
Determines whether the given primitive is selected or not @param osm the primitive @return whether {@code osm} is selected or not
src/org/openstreetmap/josm/data/osm/OsmData.java:383
↓ 474 callers
Method
isValidInet6Address
Validates an IPv6 address. Returns true if valid. @param inet6Address the IPv6 address to validate @return true if the argument contains a valid IPv6
src/org/openstreetmap/josm/data/validation/routines/InetAddressValidator.java:132
↓ 466 callers
Method
fill
Try to fill both, horizontal and vertical @return This constraint for chaining.
src/org/openstreetmap/josm/tools/GBC.java:57
↓ 446 callers
Method
clear
Removes all primitives.
src/org/openstreetmap/josm/data/osm/OsmData.java:66
↓ 444 callers
Method
setText
Sets the current text to display. <code>text</code> is a html fragment. If null, empty string is assumed. @param text the text to display
src/org/openstreetmap/josm/gui/widgets/HtmlPanel.java:99
↓ 442 callers
Method
remove
Removes a given key/value pair @param key the key
src/org/openstreetmap/josm/data/osm/Tagged.java:95
↓ 440 callers
Method
putValue
(String key, Object value)
src/org/openstreetmap/josm/gui/widgets/JosmPasswordField.java:148
↓ 439 callers
Method
size
()
src/org/openstreetmap/josm/gui/util/RedirectInputMap.java:42
↓ 424 callers
Method
of
(DoubleUnaryOperator operator)
src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java:92
↓ 423 callers
Method
warn
Prints a warning message if logging is on. @param message The message to print.
src/org/openstreetmap/josm/tools/Logging.java:214
↓ 419 callers
Method
getKey
Returns the preference key. @return the preference key
src/org/openstreetmap/josm/spi/preferences/PreferenceChangeEvent.java:21
↓ 410 callers
Method
error
Prints an error message if logging is on. @param message The message to print.
src/org/openstreetmap/josm/tools/Logging.java:187
↓ 407 callers
Method
format
Formats a name for a {@link INode}. @param node the node @return the name @since 13564 (signature)
src/org/openstreetmap/josm/data/osm/NameFormatter.java:19
↓ 372 callers
Method
insets
Adds insets to this GBC. @param left The left space of the insets @param top The top space of the insets @param right The right space o
src/org/openstreetmap/josm/tools/GBC.java:93
↓ 360 callers
Method
setEnabled
(boolean enabled)
src/org/openstreetmap/josm/gui/widgets/EditableList.java:154
↓ 356 callers
Method
getMainFrame
Returns the JOSM main frame. @return the JOSM main frame @since 14140
src/org/openstreetmap/josm/gui/MainApplication.java:454
↓ 341 callers
Method
getId
Replies the id of this primitive. @return the id of this primitive.
src/org/openstreetmap/josm/data/osm/IPrimitive.java:219
↓ 340 callers
Method
getMap
Returns the MapFrame. <p> There should be no need to access this to access any map data. Use {@link #layerManager} instead. @return the MapFrame @see
src/org/openstreetmap/josm/gui/MainApplication.java:486
↓ 335 callers
Method
add
(Tag tag)
src/org/openstreetmap/josm/gui/dialogs/properties/RecentTagCollection.java:55
↓ 332 callers
Method
add
(int index, Marker element)
src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java:787
↓ 332 callers
Method
addPrimitive
Adds a primitive to the dataset. @param primitive the primitive. @throws IllegalStateException if the dataset is read-only
src/org/openstreetmap/josm/data/osm/DataSet.java:510
↓ 326 callers
Method
setSelected
Sets the current selection to the primitives in <code>selection</code> and notifies all {@link DataSelectionListener}. @param selection the selection
src/org/openstreetmap/josm/data/osm/OsmData.java:403
↓ 323 callers
Method
getText
Execute this template by generating text for a given data provider. @param dataProvider the data provider from which information should be compiled to
src/org/openstreetmap/josm/tools/template_engine/TemplateEntry.java:18
↓ 316 callers
Method
toString
Short name of the projection choice as shown in the GUI (combo box). @return the name
src/org/openstreetmap/josm/gui/preferences/projection/ProjectionChoice.java:87
↓ 312 callers
Method
next
()
src/org/openstreetmap/josm/tools/Utils.java:566
↓ 299 callers
Method
std
Create a standard constraint (which is not the last). @return A standard constraint with no filling.
src/org/openstreetmap/josm/tools/GBC.java:28
↓ 297 callers
Method
east
Returns easting. @return easting
src/org/openstreetmap/josm/data/coor/EastNorth.java:33
↓ 296 callers
Method
length
Returns the track length. @return the track length
src/org/openstreetmap/josm/data/gpx/IGpxTrack.java:31
↓ 291 callers
Method
ensureParameterNotNull
Ensures a parameter is not {@code null} @param value The parameter to check @param parameterName The parameter name @throws IllegalArgumentException i
src/org/openstreetmap/josm/tools/CheckParameterUtil.java:24
↓ 280 callers
Method
north
Returns northing. @return northing
src/org/openstreetmap/josm/data/coor/EastNorth.java:41
↓ 275 callers
Method
getValue
Returns the value of this setting. @return the value of this setting
src/org/openstreetmap/josm/spi/preferences/Setting.java:18
↓ 274 callers
Method
marktr
Marks a string for translation (such that a script can harvest the translatable strings from the source files). For example, <code> String[] options
src/org/openstreetmap/josm/tools/I18n.java:254
↓ 271 callers
Method
addNode
Adds a node to the end of the list of nodes. Ignored, if n is null. @param n the node. Ignored, if null @throws IllegalStateException if this way is
src/org/openstreetmap/josm/data/osm/Way.java:412
↓ 269 callers
Method
toList
Converts to list. @return elements as list
src/org/openstreetmap/josm/data/osm/QuadBuckets.java:457
↓ 268 callers
Method
ht
This is a simple marker method for help topic literals. If you declare a help topic literal in the source you should enclose it in ht(...). <strong>
src/org/openstreetmap/josm/gui/help/HelpUtil.java:231
↓ 263 callers
Method
trace
Prints a trace message if logging is on. @param message The message to print.
src/org/openstreetmap/josm/tools/Logging.java:295
↓ 259 callers
Method
add
Add a JosmAction at the end of a menu. <p> This method handles all the shortcut handling. It also makes sure that actions that are handled by the OS a
src/org/openstreetmap/josm/gui/MainMenu.java:511
↓ 258 callers
Method
iterator
()
src/org/openstreetmap/josm/tools/Utils.java:555
↓ 255 callers
Method
getBoolean
Gets a boolean preference @param key The preference key @param def The default value to use @return The boolean, <code>false</code> if it could not be
src/org/openstreetmap/josm/spi/preferences/IPreferences.java:79
↓ 255 callers
Method
getEastNorth
Replies the projected east/north coordinates. <p> Uses the {@link ProjectionRegistry#getProjection() global projection} to project the lat/lon-coordin
src/org/openstreetmap/josm/data/osm/INode.java:35
↓ 253 callers
Method
addAll
(Collection<? extends WayPoint> c)
src/org/openstreetmap/josm/data/gpx/Line.java:113
↓ 253 callers
Method
getValue
gets the value for this setting @return The value the user selected
src/org/openstreetmap/josm/gui/mappaint/StyleSetting.java:42
↓ 252 callers
Method
isEmpty
Determines if a collection is null or empty. @param collection collection @return {@code true} if collection is null or empty @since 18207
src/org/openstreetmap/josm/tools/Utils.java:662
↓ 251 callers
Method
getResource
Execute the image request. @return the requested image or null if the request failed @since 7693
src/org/openstreetmap/josm/tools/ImageProvider.java:694
↓ 249 callers
Method
println
Prints the object to the command line, with new line at the end (for debugging purpose). @param o the object @return the same object, unchanged
src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java:1280
↓ 245 callers
Method
setVisible
Sets the visibility of this dialog @param visible The visibility, <code>true</code> to show it, <code>false</code> to hide it
src/org/openstreetmap/josm/gui/progress/swing/PleaseWaitProgressMonitor.java:40
↓ 243 callers
Method
debug
Prints a debug message if logging is on. @param message The message to print.
src/org/openstreetmap/josm/tools/Logging.java:268
↓ 239 callers
Method
append
Appends a collection of Primitives to the OsmChange document. @param primitives the collection of primitives. Ignored if null. @throws IllegalStateEx
src/org/openstreetmap/josm/io/OsmChangeBuilder.java:101
↓ 239 callers
Method
isValid
Determines if the bbox covers a part of the planet surface. @return true if the bbox covers a part of the planet surface. Height and width must be no
src/org/openstreetmap/josm/data/IBounds.java:132
↓ 233 callers
Method
getMember
Returns the relation member at the specified index. @param index the index of the relation member @return relation member at the specified index @sinc
src/org/openstreetmap/josm/data/osm/IRelation.java:38
↓ 228 callers
Method
getDataSet
Returns the parent data set of this primitive. @return OsmData this primitive is part of. @since 13807
src/org/openstreetmap/josm/data/osm/IPrimitive.java:513
↓ 221 callers
Method
substring
Returns the substring of {@code s} starting at index {@code begin} (inclusive, 0-indexed). @param s The base string @param begin The start index @retu
src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java:1028
↓ 214 callers
Method
attachImageIcon
(String key, ImageSizes size, ImageResource uploadImg, ImageResource saveImg, ImageResource actionImg)
src/org/openstreetmap/josm/gui/io/SaveLayersDialog.java:505
↓ 213 callers
Method
entrySet
()
src/org/openstreetmap/josm/data/osm/TagMap.java:164
↓ 209 callers
Method
addPrimitive
Adds a primitive. @param primitive the primitive
src/org/openstreetmap/josm/data/osm/OsmData.java:61
↓ 205 callers
Method
registerShortcut
Register a shortcut. <p> Here you get your shortcuts from. The parameters are: @param shortText an ID. re-use a {@code "system: "} ID if possible, el
src/org/openstreetmap/josm/tools/Shortcut.java:523
↓ 205 callers
Method
setIcon
Decorate the dialog with an icon that is shown on the left part of the window area. (Similar to how it is done in {@link JOptionPane}) @param icon The
src/org/openstreetmap/josm/gui/IExtendedDialog.java:81
↓ 204 callers
Method
getNodes
Returns the list of nodes in this way. @return the list of nodes in this way @since 1862 @since 13717 (IWay)
src/org/openstreetmap/josm/data/osm/IWay.java:62
↓ 200 callers
Method
get
Execute the image request and scale result. @return the requested image or null if the request failed
src/org/openstreetmap/josm/tools/ImageProvider.java:637
↓ 194 callers
Method
trn
Translates some text for the current locale and distinguishes between {@code singularText} and {@code pluralText} depending on {@code n}. <br> For ins
src/org/openstreetmap/josm/tools/I18n.java:285
↓ 193 callers
Method
addMember
Adds the specified relation member at the last position. @param member the member to add
src/org/openstreetmap/josm/data/osm/Relation.java:81
↓ 187 callers
Method
addLayer
Add a layer. The layer will be added at a given position and the mapview zoomed at its projection bounds. @param layer The layer to add
src/org/openstreetmap/josm/gui/layer/LayerManager.java:209
↓ 187 callers
Method
containsKey
(Object key)
src/org/openstreetmap/josm/data/osm/TagMap.java:169
↓ 182 callers
Method
size
()
src/org/openstreetmap/josm/data/gpx/Line.java:68
↓ 182 callers
Method
toArray
()
src/org/openstreetmap/josm/data/gpx/Line.java:88
↓ 179 callers
Method
hasTag
Replies true if there is a non-empty tag with key <code>key</code>. @param key the key @return true, if there is a non-empty tag with key <code>key</
src/org/openstreetmap/josm/data/osm/Tagged.java:125
↓ 178 callers
Method
get
Get the value of the property. @param obj the object, from that the property is derived @return the value of the property for the object obj
src/org/openstreetmap/josm/tools/Property.java:16
↓ 177 callers
Method
builder
Starts building a new {@code TestError} @param tester The tester @param severity The severity of this error @param code The test error reference code
src/org/openstreetmap/josm/data/validation/TestError.java:278
↓ 175 callers
Method
getUniqueId
Gets a unique id representing this object (the OSM server id for OSM objects) @return the id number
src/org/openstreetmap/josm/data/osm/PrimitiveId.java:16
↓ 175 callers
Method
matcher
Creates a matcher that will match the given input against this pattern. @param input The character sequence to be matched @return A new matcher for th
src/org/openstreetmap/josm/io/UrlPattern.java:25
↓ 174 callers
Method
info
Prints a info message if logging is on. @param message The message to print.
src/org/openstreetmap/josm/tools/Logging.java:241
↓ 172 callers
Method
getLayerManager
Gets the layer manager used for this action. Defaults to the main layer manager but you can overwrite this. <p> The layer manager must be available wh
src/org/openstreetmap/josm/actions/JosmAction.java:348
↓ 172 callers
Method
message
Sets the error message. @param message The error message @return {@code this}
src/org/openstreetmap/josm/data/validation/TestError.java:101
↓ 171 callers
Method
createPrimitive
Creates a new OSM primitive around (0,0) according to the given assertion. Originally written for unit tests, this can also be used in other places li
src/org/openstreetmap/josm/data/osm/OsmUtils.java:134
↓ 170 callers
Method
isIncomplete
Determines if this primitive is incomplete. @return {@code true} if this primitive is incomplete, {@code false} otherwise
src/org/openstreetmap/josm/data/osm/IPrimitive.java:100
↓ 167 callers
Method
primitives
Gets all primitives of the given type affected by this error @param type restrict primitives to subclasses @param <T> type of primitives @return the p
src/org/openstreetmap/josm/data/validation/TestError.java:326
↓ 166 callers
Method
map
First applies {@code mapper} to both sides and then applies {@code operator} on the two results. @param mapper the mapping function @param operator th
src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java:479
↓ 165 callers
Method
getWidth
Returns width of the image this ImageMetadata represents. @return width of the image this ImageMetadata represents
src/org/openstreetmap/josm/gui/layer/geoimage/ImageMetadata.java:33
next →
1–100 of 24,633, ranked by callers