Package | Description |
---|---|
org.openstreetmap.josm.data.preferences.sources |
Provide classes to manage source of JOSM extensions that can be chosen in user preferences:
map paint styles
tagging presets
validator rules
|
org.openstreetmap.josm.tools |
Provides the classes for various utilities and tools called from all other packages.
|
Modifier and Type | Field and Description |
---|---|
ImageResource |
ExtendedSourceEntry.icon
icon used for display
|
Modifier and Type | Field and Description |
---|---|
private static java.util.Map<java.lang.String,ImageResource> |
ImageProvider.cache
The icon cache
|
Modifier and Type | Method and Description |
---|---|
private static ImageResource |
ImageProvider.getIfAvailableDataUrl(java.lang.String url)
Internal implementation of the image request for inline images (data: urls).
|
private static ImageResource |
ImageProvider.getIfAvailableHttp(java.lang.String url,
ImageProvider.ImageType type)
Internal implementation of the image request for URL's.
|
private ImageResource |
ImageProvider.getIfAvailableImpl()
Internal implementation of the image request.
|
private static ImageResource |
ImageProvider.getIfAvailableLocalURL(java.net.URL path,
ImageProvider.ImageType type)
Internal implementation of the image request for local images.
|
private static ImageResource |
ImageProvider.getIfAvailableWiki(java.lang.String name,
ImageProvider.ImageType type)
Internal implementation of the image request for wiki images.
|
private static ImageResource |
ImageProvider.getIfAvailableZip(java.lang.String fullName,
java.io.File archive,
java.lang.String inArchiveDir,
ImageProvider.ImageType type)
Internal implementation of the image request for images in Zip archives.
|
ImageResource |
ImageProvider.getResource()
Execute the image request.
|
ImageResource |
ImageResource.setDisabled(boolean disabled)
Set, if image must be filtered to grayscale so it will look like disabled icon.
|
Modifier and Type | Method and Description |
---|---|
static java.awt.Image |
HiDPISupport.getMultiResolutionImage(java.awt.Image base,
ImageResource ir)
Create a multi-resolution image from a base image and an
ImageResource . |
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.CompletableFuture<java.lang.Void> |
ImageProvider.getResourceAsync(java.util.function.Consumer<? super ImageResource> action)
Load the image in a background thread.
|
Constructor and Description |
---|
ImageResource(ImageResource res,
java.util.List<ImageOverlay> overlayInfo)
Constructs a new
ImageResource from another one and sets overlays. |