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, setRepository
public 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 IltrImage
null
, if name is unknownpublic Image getImage(String location)
getImage
in interface IlpImageRepository
getImage
in class IlpDefaultImageRepository
location
- The relative path of the imagepublic String getImageLocation(Image image)
null
otherwise.getImageLocation
in interface IlpImageRepository
getImageLocation
in class IlpDefaultImageRepository
image
- The image to search for.null
if the
image was not found.public List getImageLocations()
getImageLocations
in interface IlpImageRepository
getImageLocations
in class IlpDefaultImageRepository
String
instances for the images
currently in the repository.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.