Package | Description |
---|---|
org.openstreetmap.josm.tools |
Modifier and Type | Method and Description |
---|---|
ImageProvider |
ImageProvider.setAdditionalClassLoaders(Collection<ClassLoader> additionalClassLoaders)
Add a collection of additional class loaders to search image for.
|
ImageProvider |
ImageProvider.setArchive(File archive)
Specify a zip file where the image is located.
|
ImageProvider |
ImageProvider.setDirs(Collection<String> dirs)
Directories to look for the image.
|
ImageProvider |
ImageProvider.setHeight(int height) |
ImageProvider |
ImageProvider.setId(String id)
Set an id used for caching.
|
ImageProvider |
ImageProvider.setInArchiveDir(String inArchiveDir)
Specify a base path inside the zip file.
|
ImageProvider |
ImageProvider.setMaxHeight(int maxHeight) |
ImageProvider |
ImageProvider.setMaxSize(Dimension maxSize)
Limit the maximum size of the image.
|
ImageProvider |
ImageProvider.setMaxSize(int maxSize)
Convenience method, see
setMaxSize(Dimension) . |
ImageProvider |
ImageProvider.setMaxWidth(int maxWidth) |
ImageProvider |
ImageProvider.setOptional(boolean optional)
Decide, if an exception should be thrown, when the image cannot be located.
|
ImageProvider |
ImageProvider.setSize(Dimension size)
Set the dimensions of the image.
|
ImageProvider |
ImageProvider.setSuppressWarnings(boolean suppressWarnings)
Suppresses warning on the command line in case the image cannot be found.
|
ImageProvider |
ImageProvider.setWidth(int width) |