Package org.openstreetmap.josm.tools
package org.openstreetmap.josm.tools
Provides the classes for various utilities and tools called from all other packages.
-
ClassDescriptionThe Alphanum Algorithm is an improved sorting algorithm for strings containing numbers: Instead of sorting numbers in ASCII order like a standard sort, this algorithm sorts numbers in numeric order.This utility class provides a collection of static helper methods for checking parameters at run-time.Helper to convert from color to HTML string and back.Utility class that helps to work with color scale for coloring GPX tracks etc.Joined List build from two Lists (read-only).CopyList<E>A List implementation initially based on given array, but never modifying the array directly.Implementation of simple boolean
GeoProperty.Some objects like layers (when they are removed) or the whole map frame (when the last layer has been removed) have a definite set of actions to execute.A class to compare vectors of objects.The result of comparison is an "edit script": a chain of change objects.Scan the tables of which lines are inserted and deleted, producing an edit script in reverse order.Script builder.Utilities for exception handling.Read out EXIF information from a JPEG fileCustom fonts manager that provides some embedded fonts to ensure a common rendering on different platforms.A wrapper for GridBagConstraints which has sane default static creators and member functions to chain calling.Utility class to parse various types from other values.Some tools for geometry related tasks.Data class to hold two double values (area and perimeter of a polygon).The result types for aGeometry.polygonIntersection(Area, Area)testGeoProperty<T>A method to look up a property of the earth surface.Fast index to look up properties of the earth surface.Support class to handle size information of Gui elements This is needed, because display resolution may vary a lot and a common set of sizes won't work for all users alike.Helper class for HiDPI support.Provides a uniform access for a HTTP/HTTPS 1.0/1.1 server.A wrapper for the HTTP 1.x response.Provides uniform access for a HTTP/HTTPS server.A wrapper for the HTTP connection response.HTTP client factory.A wrapper for the HTTP response.Internationalisation support.Enumeration of possible plural modes.This annotates strings which do not permit a clean i18n.class to describe how image overlayProcessor that modifies images (sharpen, brightness, etc.).Helper class to support the application with images.Supported image sizesSupported image typesDetermines how the image is sized/resized inImageResource.getImageIcon(Dimension, boolean, ImageResizeMode).Holds data for one particular image.Image warping algorithm.Wrapper that optimizes a givenImageWarp.PointTransform.Interpolation method.Transformation that translates the pixel coordinates.Tools to work with Swing InputMap.JOSM implementation of theDecimalFormatSymbolsclass, consistent with ISO 80000-1.JOSM runtime exception.Keyboard utils.This is a utility class that provides information about locales and allows to convert locale codes.Type of the locale to useThis is a special weak reference that notifies a listener when it is no longer available.ListenerList<T>This is a list of listeners.This is a function that can be invoked for every listener.This is a specialListenerListthat traces calls to the add/remove methods.This is a proxy of a collection that notifies a listener on every collection changeThis class contains utility methods to log errors and warnings.AConsoleHandlerwith a couple of extra features, allowing it to be targeted at an an arbitraryOutputStreamwhich it can be asked to reacquire the reference for on demand throughLogging.ReacquiringConsoleHandler.reacquireOutputStream().Interaction with Mediawiki instances, such as the OSM wiki.This class allows all components of JOSM to register reclaimable amounts to memory.A memory area managed by theMemoryManager.This exception is thrown if there is not enough memory for allocating the given object.MultiMap<A,B> MultiMap - maps keys to multiple values.Helper to open platform web browser on different platforms This now delegates the real work to a platform specific class.A replacement of getopt.How often an option may / must be specified on the command line.Exception thrown when an option cannot be parsed.AnImageProviderforOsmPrimitiveOptions used inOsmPrimitiveImageProvider.getResource(OsmPrimitive, Collection).Parses various URL used in OpenStreetMap projects intoBounds.Pair<A,B> A pair of objects.A class that caches compiled patterns.Enum listing the supported platforms (operating system families).This interface allows platform (operating system) dependent code to be bundled into self-contained classes.Called when an outdated version of Java is detected at startup.Called when interfacing with native OS functions.Inform the user that a sanity check or checks failedPlatformHookimplementation for Apple macOS (formerly Mac OS X) systems.PlatformHookimplementation for Unix systems.PlatformHookimplementation for Microsoft Windows systems.Simple data class to hold information about a font.Holder for current platform hook.Visitor, to be used withPlatform.Property<O,P> Small interface to define a property with both read and write access.Reflection utilities.Unified provider that looks up for resource in various classloaders (josm, plugins, etc.).Look up, if there is right- or left-hand traffic at a certain place.Determines how an icon is to be rotated depending on the primitive to be displayed.A static rotationThe rotation along a way.Quit parsing, when a certain condition is metBuilds an Overpass QL from aSearchActionquery.Tools to clip a shape based on the Sutherland-Hodgman algorithm.Global shortcut class.Measures elapsed time in millisecondsUtility methods for streams.Utility class to parse various types from strings.SubclassFilteredCollection<S,T extends S> Filtered view of a collection.Extracts web links from OSM tags.Represents an operation that accepts a link.Describes a regional Taginfo instance.Look up territories ISO3166 codes at a certain place.A helper class that analyzes the text and attempts to parse tags from itClass that helps to parse tags from arbitrary textCalled when a problematic tag is encountered.Text/String utils.Signals that an error has been reached unexpectedly while parsing.Exception thrown when an operation is canceled by user.Basic utils, that can be useful in different parts of the program.Utility class to save a string along with its rendering direction (left-to-right or right-to-left).A ForkJoinWorkerThread that will always inherit caller permissions, unlike JDK's InnocuousForkJoinWorkerThread, used if a security manager exists.Read a trac-wiki page.Represents a Windows shortcut (typically visible to Java only as a '.lnk' file).Utility class to access Window registry (read access only).An helper class that reads from a XML stream into specific objects.An exception thrown during XML parsing, with known line and column.XML utils, mainly used to construct safe factories.