public class IltDefaultImageRepository extends IlpDefaultImageRepository
IlpImageRepository.
This image repository contains a set of images which are internally used by JTGO.
IlpImageRepository| Constructor and Description |
|---|
IltDefaultImageRepository(IlpContext context)
Creates an image repository.
|
IltDefaultImageRepository(IlpContext context,
String defaultImageName)
Creates an image repository.
|
| Modifier and Type | Method and Description |
|---|---|
Image |
getImage(String location)
Gets an image by location.
|
String |
getImageLocation(Image image)
Gets the location string associated with an image in the repository.
|
List |
getImageLocations()
Gets a list of all the image locations currently in the repository.
|
static Image |
getPredefinedImageByName(String name) |
createDefaultImage, getContext, getImageURL, getLocalImage, getRepository, removeImage, setLocalImage, setRepositorypublic IltDefaultImageRepository(IlpContext context)
context - The service context used to get the URL access service that helps
the repository load data.public IltDefaultImageRepository(IlpContext context, String defaultImageName)
context - The service context used to get the URL access service that helps
the repository load data.defaultImageName - The name of the default image used if an image cannot be loaded.public static Image getPredefinedImageByName(String name)
name - Image name, as defined in IltrImagenull, if name is unknownpublic Image getImage(String location)
getImage in interface IlpImageRepositorygetImage in class IlpDefaultImageRepositorylocation - The relative path of the imagepublic String getImageLocation(Image image)
null otherwise.getImageLocation in interface IlpImageRepositorygetImageLocation in class IlpDefaultImageRepositoryimage - The image to search for.null if the
image was not found.public List getImageLocations()
getImageLocations in interface IlpImageRepositorygetImageLocations in class IlpDefaultImageRepositoryString instances for the images
currently in the repository.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.