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
↓ 164 callers
Method
getMessage
Get the validation message from a json object @param jsonObject The json object to parse @return The validator message
test/unit/org/openstreetmap/josm/data/validation/ValidatorCLITest.java:213
↓ 163 callers
Method
build
Returns a new test error with the specified values @return a new test error with the specified values @throws IllegalArgumentException when {@link #m
src/org/openstreetmap/josm/data/validation/TestError.java:252
↓ 163 callers
Method
getErrors
Gets the validation errors accumulated until this moment. @return The list of errors
src/org/openstreetmap/josm/data/validation/Test.java:184
↓ 156 callers
Method
getProjection
Replies the current projection. @return the currently active projection
src/org/openstreetmap/josm/data/projection/ProjectionRegistry.java:43
↓ 156 callers
Method
replace
Replaces in {@code s} every {@code} target} substring by {@code replacement}. @param s The source string @param target The sequence of char values to
src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java:1053
↓ 155 callers
Method
getInstance
Returns the unique instance. @return the unique instance @since 14134
src/org/openstreetmap/josm/data/UndoRedoHandler.java:51
↓ 155 callers
Method
submit
Submit job for background fetch, and listener will be fed with value object @param listener cache loader listener @param force true if the load shoul
src/org/openstreetmap/josm/data/cache/ICachedLoaderJob.java:45
↓ 154 callers
Method
getInt
Gets an integer preference @param key The preference key @param def The default value to use @return The integer @since 12840
src/org/openstreetmap/josm/spi/preferences/IPreferences.java:106
↓ 154 callers
Method
getSelectionModel
Returns the selection model. @return the selection model (never null) @see JList#getSelectionModel() @see JTable#getSelectionModel()
src/org/openstreetmap/josm/gui/util/ReorderableTableModel.java:28
↓ 154 callers
Method
getY
()
src/org/openstreetmap/josm/data/coor/Coordinate.java:38
↓ 153 callers
Method
add
(int index, E element)
src/org/openstreetmap/josm/tools/CopyList.java:68
↓ 153 callers
Method
getX
()
src/org/openstreetmap/josm/data/coor/Coordinate.java:34
↓ 153 callers
Method
showMessageDialog
Displays an message in modal dialog with an OK button. Makes sure the dialog is always on top even if there are other open windows like detached dialo
src/org/openstreetmap/josm/gui/ConditionalOptionPaneUtil.java:202
↓ 152 callers
Method
putBoolean
Set a boolean value for a certain setting. @param key the unique identifier for the setting @param value The new value @return {@code true}, if someth
src/org/openstreetmap/josm/spi/preferences/IPreferences.java:97
↓ 151 callers
Method
trim
Trim whitespaces from the string {@code s}. @param s The source string @return The resulting string @see Utils#strip @since 11756
src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java:1116
↓ 150 callers
Method
getHeight
Returns height of the image this ImageMetadata represents. @return height of the image this ImageMetadata represents @since 18592 (interface), 13220 (
src/org/openstreetmap/josm/gui/layer/geoimage/ImageMetadata.java:40
↓ 150 callers
Method
setColor
Sets the color of this track. Not necessarily supported by all implementations. @param color color of this track @since 15496
src/org/openstreetmap/josm/data/gpx/IGpxTrack.java:47
↓ 147 callers
Method
log
Logs a throwable that happened. The stack trace is not added to the log. @param level The level. @param t The throwable that should be logged. @see #l
src/org/openstreetmap/josm/tools/Logging.java:324
↓ 146 callers
Method
matches
Attempts to match the given input against the pattern. @param input The character sequence to be matched @return {@code true} if the given input match
src/org/openstreetmap/josm/io/UrlPattern.java:34
↓ 144 callers
Method
write
Write the plugin data to a stream @param outputStream The stream to write to
src/org/openstreetmap/josm/io/session/PluginSessionExporter.java:46
↓ 142 callers
Method
getValue
Get object value at given index. @param index index @return object value at given index
src/org/openstreetmap/josm/data/ReorderableModel.java:21
↓ 141 callers
Method
compile
Compiles the search expression. @param searchStr the search expression @return a {@link Match} object for the expression @throws SearchParseError if a
src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java:2006
↓ 140 callers
Method
eop
Create the constraint for the last elements on a line and on a paragraph. This is merely a shortcut for eol().insets(0,0,0,10) @return A constraint wh
src/org/openstreetmap/josm/tools/GBC.java:49
↓ 139 callers
Method
actionPerformed
Load this bookmark
src/org/openstreetmap/josm/gui/layer/ImageryLayer.java:357
↓ 139 callers
Method
getEditDataSet
Gets the active edit data set (not read-only). @return That data set, <code>null</code>. @see #getActiveDataSet
src/org/openstreetmap/josm/data/osm/IOsmDataManager.java:31
↓ 139 callers
Method
getWay
Returns the relation member as a way. @return Member as a way @since 17862
src/org/openstreetmap/josm/data/osm/IRelationMember.java:75
↓ 138 callers
Method
getEastNorth
(Projecting projection)
src/org/openstreetmap/josm/data/osm/Node.java:89
↓ 137 callers
Method
allPrimitives
Returns a collection containing all primitives of the dataset. @return A collection containing all primitives of the dataset. Data is not ordered
src/org/openstreetmap/josm/data/osm/OsmData.java:164
↓ 137 callers
Method
getPoint
Get the point for a vector @param vector the vector for which the corresponding point on the camera plane will be returned @return the point on the c
src/org/openstreetmap/josm/gui/util/imagery/CameraPlane.java:89
↓ 136 callers
Method
isDeleted
Replies <code>true</code>, if the object has been deleted. @return <code>true</code>, if the object has been deleted. @see #setDeleted(boolean)
src/org/openstreetmap/josm/data/osm/IPrimitive.java:75
↓ 133 callers
Method
addActionListener
(ActionListener l)
src/org/openstreetmap/josm/gui/widgets/QuadStateCheckBox.java:315
↓ 132 callers
Method
isEnabled
Determines the last state of the download type. @return The boolean indicating the last state of the download type
src/org/openstreetmap/josm/gui/download/IDownloadSourceType.java:54
↓ 132 callers
Method
repaint
Called when any repaint method is called (using default arguments if required). @param tm see {@link JComponent#repaint(long, int, int, int, int)} @pa
src/org/openstreetmap/josm/gui/MapView.java:866
↓ 131 callers
Method
getBytes
Get the raw bytes for this record @return The bytes
src/org/openstreetmap/josm/data/protobuf/ProtobufRecord.java:141
↓ 131 callers
Method
toList
()
src/org/openstreetmap/josm/gui/dialogs/properties/RecentTagCollection.java:65
↓ 128 callers
Method
keySet
Replies the set of keys @return the set of keys @see #keys()
src/org/openstreetmap/josm/data/osm/Tagged.java:216
↓ 128 callers
Method
parseDataSet
Parse the given input source and return the dataset. @param source the source input stream. Must not be null. @param progressMonitor the progress mon
src/org/openstreetmap/josm/io/OsmReader.java:536
↓ 128 callers
Method
setCoor
(LatLon coor)
src/org/openstreetmap/josm/data/osm/Node.java:43
↓ 127 callers
Method
getSource
The changeset cache the change happened in. @return The {@link ChangesetCache}
src/org/openstreetmap/josm/data/osm/ChangesetCacheEvent.java:14
↓ 127 callers
Method
getType
Gets the type of object represented by this object. Note that this should return the base primitive type ({@link OsmPrimitiveType#NODE}, {@link OsmPri
src/org/openstreetmap/josm/data/osm/PrimitiveId.java:28
↓ 126 callers
Method
values
Returns a collection of all value sets. @return a collection view of the values contained in this map @see Map#values()
src/org/openstreetmap/josm/tools/MultiMap.java:189
↓ 125 callers
Method
getTestDataRoot
Returns the path to test data root directory. @return path to test data root directory
test/unit/org/openstreetmap/josm/TestUtils.java:88
↓ 125 callers
Method
isValid
<p>Checks if a field has a valid url address.</p> Note that the method calls #isValidAuthority() which checks that the domain is valid. @param value
src/org/openstreetmap/josm/data/validation/routines/UrlValidator.java:296
↓ 124 callers
Method
isVisible
Checks if object is known to the server. Replies true if this primitive is either unknown to the server (i.e. its id is 0) or it is known to the serve
src/org/openstreetmap/josm/data/osm/IPrimitive.java:57
↓ 124 callers
Method
setBackground
(Color color)
test/unit/org/openstreetmap/josm/testutils/FakeGraphics.java:226
↓ 122 callers
Method
getString
Returns the String value to which the specified key is mapped, or {@code null} if this map contains no String mapping for the key. @param key the key
src/org/openstreetmap/josm/data/gpx/IWithAttributes.java:29
↓ 121 callers
Method
build
()
test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/FunctionsTest.java:71
↓ 121 callers
Method
getLayers
Get the layers for this vector tile @return A collection of layers
src/org/openstreetmap/josm/data/imagery/vectortile/VectorTile.java:18
↓ 119 callers
Method
isModified
Replies true if there is at least one primitive in this dataset with {@link IPrimitive#isModified()} == <code>true</code>. @return true if there is a
src/org/openstreetmap/josm/data/osm/OsmData.java:494
↓ 118 callers
Method
addAll
(int index, Collection<? extends Marker> c)
src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerLayer.java:764
↓ 118 callers
Method
getMembers
Returns members of the relation. @return Members of the relation. Changes made in returned list are not mapped back to the primitive, use {@link #setM
src/org/openstreetmap/josm/data/osm/IRelation.java:47
↓ 118 callers
Method
parseDouble
(Map<String, String> parameters, String parameterName)
src/org/openstreetmap/josm/data/projection/CustomProjection.java:636
↓ 117 callers
Method
max
(int a, int b, int c, int d)
src/org/openstreetmap/josm/gui/mappaint/styleelement/NodeElement.java:352
↓ 117 callers
Method
myprintln
(String s)
scripts/SyncEditorLayerIndex.java:304
↓ 116 callers
Method
isStripEmpty
Determines if the given String would be empty if stripped. This is an efficient alternative to {@code strip(s).isEmpty()} that avoids to create useles
src/org/openstreetmap/josm/tools/Utils.java:716
↓ 115 callers
Method
indexOf
Find the index of the first item that matches the predicate. @param <T> The iterable type @param collection The iterable to iterate over. @param predi
src/org/openstreetmap/josm/tools/Utils.java:136
↓ 115 callers
Method
set
Set the value of the property for the object. @param obj the object for that the property should be set @param value the value the property is set to
src/org/openstreetmap/josm/tools/Property.java:23
↓ 114 callers
Method
getSize
Get the size that was requested for this memory area. @return the size
src/org/openstreetmap/josm/tools/MemoryManager.java:127
↓ 114 callers
Method
lat
Returns the latitude, i.e., the north-south position in degrees. @return the latitude or NaN if {@link #isLatLonKnown()} returns false
src/org/openstreetmap/josm/data/coor/ILatLon.java:44
↓ 114 callers
Method
setFont
Sets the table font size based on the font scaling from the preferences @param table the table @param parent the parent component used for determining
src/org/openstreetmap/josm/gui/util/TableHelper.java:159
↓ 113 callers
Method
lon
Returns the longitude, i.e., the east-west position in degrees. @return the longitude or NaN if {@link #isLatLonKnown()} returns false
src/org/openstreetmap/josm/data/coor/ILatLon.java:38
↓ 112 callers
Method
compile
Compile a regex into a pattern. This may return a {@link Pattern} used elsewhere. This is safe. @param regex The regex to compile @return The immutabl
src/org/openstreetmap/josm/tools/PatternUtils.java:44
↓ 112 callers
Method
getKeys
Replies the map of key/value pairs. Never null, but may be the empty map. @return the map of key/value pairs
src/org/openstreetmap/josm/data/osm/Tagged.java:39
↓ 112 callers
Method
hasKey
Replies true if there is a tag with key <code>key</code>. The value could however be empty. See {@link #hasTag(String)} to check for non-empty tags.
src/org/openstreetmap/josm/data/osm/Tagged.java:113
↓ 110 callers
Method
trc
Translates some text in a context for the current locale. There can be different translations for the same text within different contexts. @param con
src/org/openstreetmap/josm/tools/I18n.java:228
↓ 109 callers
Method
getVersion
Replies the API version this dataset was created from. May be null. @return the API version this dataset was created from. May be null.
src/org/openstreetmap/josm/data/osm/OsmData.java:37
↓ 109 callers
Method
getWays
()
src/org/openstreetmap/josm/data/osm/DataSet.java:420
↓ 108 callers
Method
getRole
Returns role of the member at given index. @param idx member index @return role of the member at given index
src/org/openstreetmap/josm/data/osm/IRelation.java:67
↓ 108 callers
Method
setEnabled
(boolean b)
src/org/openstreetmap/josm/actions/ParameterizedActionDecorator.java:55
↓ 108 callers
Method
sort
Sort the items.
src/org/openstreetmap/josm/data/SortableModel.java:14
↓ 107 callers
Method
createSubTaskMonitor
Creates subtasks monitor. @param ticks Number of work units that should be done when subtask finishes @param internal If true then subtask can't modif
src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java:147
↓ 106 callers
Method
runInEDT
Executes asynchronously a runnable in <a href="https://docs.oracle.com/javase/tutorial/uiswing/concurrency/dispatch.html">Event Dispatch Thread</a>, e
src/org/openstreetmap/josm/gui/util/GuiHelper.java:198
↓ 105 callers
Method
applies
Checks if the condition applies in the given MapCSS {@link Environment}. @param e The environment to check. May not be <code>null</code>. @return <cod
src/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.java:20
↓ 105 callers
Method
getSelected
Replies an unmodifiable collection of primitives currently selected in this dataset, except deleted ones. May be empty, but not null. <p> When iterati
src/org/openstreetmap/josm/data/osm/OsmData.java:334
↓ 104 callers
Method
newWay
Creates a new way with the given tags (see {@link OsmUtils#createPrimitive(java.lang.String)}) and the nodes added @param tags the tags to set @para
test/unit/org/openstreetmap/josm/TestUtils.java:410
↓ 104 callers
Method
split
Splits the way {@code way} at the nodes in {@code atNodes} and replies the result of this process in an instance of {@link SplitWayCommand}. <p> Note
src/org/openstreetmap/josm/command/SplitWayCommand.java:905
↓ 103 callers
Method
apply
Call the function @param t The first argument @param u The second argument @param v The third argument @return The result of the function call
src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java:61
↓ 103 callers
Method
get
()
src/org/openstreetmap/josm/data/osm/search/SearchCompiler.java:332
↓ 103 callers
Method
match
(OsmPrimitive p, boolean cond)
test/unit/org/openstreetmap/josm/data/osm/search/SearchCompilerTest.java:90
↓ 102 callers
Method
getColor
Gets the color of this track. @return The color, <code>null</code> if not set or not supported by the implementation. @since 15496
src/org/openstreetmap/josm/data/gpx/IGpxTrack.java:38
↓ 101 callers
Method
getNodesCount
Replies the number of nodes in this way. @return the number of nodes in this way.
src/org/openstreetmap/josm/data/osm/IWay.java:18
↓ 101 callers
Method
getPrimitiveById
Returns a primitive with a given id from the data set. null, if no such primitive exists @param id uniqueId of the primitive. Might be < 0 for new
src/org/openstreetmap/josm/data/osm/OsmData.java:118
↓ 100 callers
Method
getReferrers
Gets a list of all primitives in the current dataset that reference this primitive. @return The referrers @since 13764
src/org/openstreetmap/josm/data/osm/IPrimitive.java:487
↓ 98 callers
Method
getFont
(Cascade c, String s)
src/org/openstreetmap/josm/gui/mappaint/styleelement/StyleElement.java:205
↓ 98 callers
Method
getPrimitiveId
Replies the unique primitive id for this primitive. @return the unique primitive id for this primitive @see #getUniqueId
src/org/openstreetmap/josm/data/osm/IPrimitive.java:250
↓ 97 callers
Method
getKeyStroke
Returns the keystroke launching this action (F1 by default). @return the keystroke launching this action
src/org/openstreetmap/josm/gui/dialogs/properties/HelpAction.java:47
↓ 97 callers
Method
matches
Apply the selector to the primitive and check if it matches. @param env the Environment. env.mc and env.layer are read-only when matching a selector.
src/org/openstreetmap/josm/gui/mappaint/mapcss/Selector.java:98
↓ 97 callers
Method
setHelpId
(String helpId)
src/org/openstreetmap/josm/actions/relation/AbstractRelationAction.java:72
↓ 96 callers
Method
add
(E e)
src/org/openstreetmap/josm/gui/tagging/presets/TaggingPresetReader.java:120
↓ 96 callers
Method
getNode
Replies the node at position <code>index</code>. @param index the position @return the node at position <code>index</code> @throws ArrayIndexOutOfBo
src/org/openstreetmap/josm/data/osm/IWay.java:54
↓ 95 callers
Method
addListSelectionListener
Add a list selection listener to the conflicts list. @param listener the ListSelectionListener @since 5958
src/org/openstreetmap/josm/gui/dialogs/ConflictDialog.java:172
↓ 95 callers
Method
getBounds
Returns the track bounds. @return the track bounds
src/org/openstreetmap/josm/data/gpx/IGpxTrack.java:25
↓ 95 callers
Method
getId
Gets the ID of the subpart @param env The environment to get it from @return The id
src/org/openstreetmap/josm/gui/mappaint/mapcss/Subpart.java:19
↓ 95 callers
Method
is
Matcher for a point at a given location. @param expected expected location @return matcher for a point at a given location
test/unit/org/CustomMatchers.java:107
↓ 95 callers
Method
registerSystemShortcut
FOR PLATFORMHOOK USE ONLY. <p> This registers a system shortcut. See PlatformHook for details. @param shortText an ID. re-use a {@code "system: "} ID
src/org/openstreetmap/josm/tools/Shortcut.java:458
↓ 94 callers
Method
getNode
(int index)
src/org/openstreetmap/josm/data/osm/Way.java:100
↓ 94 callers
Method
getPrimitiveById
(PrimitiveId primitiveId)
src/org/openstreetmap/josm/data/osm/DataSet.java:859
↓ 94 callers
Method
getRowCount
Returns the number of rows in the list/table. @return the number of rows in the list/table @see ListModel#getSize() @see TableModel#getRowCount()
src/org/openstreetmap/josm/gui/util/ReorderableTableModel.java:36
↓ 94 callers
Method
parse
Parse the GPX data. @param tryToFinish true, if the reader should return at least part of the GPX data in case of an error. @return true if file was
src/org/openstreetmap/josm/io/IGpxReader.java:26
↓ 93 callers
Method
removeAll
Removes all tags
src/org/openstreetmap/josm/data/osm/Tagged.java:239
← previous
next →
101–200 of 24,633, ranked by callers