| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| pack-priv Image |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public Image | getResolutionVariant(double destWidth, double destHeight)
Implements java. Gets a specific image that is the best variant to represent this logical image at the indicated size. |
| public Image | |
| public static ImageObserver | getResolutionVariantObserver(final Image image, final ImageObserver observer, final int imgWidth, final int imgHeight, final int rvWidth, final int rvHeight)
|
| public static ImageObserver | getResolutionVariantObserver(final Image image, final ImageObserver observer, final int imgWidth, final int imgHeight, final int rvWidth, final int rvHeight, boolean concatenateInfo)
|
| public List | getResolutionVariants()
Implements java. Gets a readable list of all resolution variants. |
| public static Image |
| BITS_INFO | back to summary |
|---|---|
| private static final int BITS_INFO | |
| resolutionVariant | back to summary |
|---|---|
| pack-priv Image resolutionVariant | |
| MultiResolutionToolkitImage | back to summary |
|---|---|
| public MultiResolutionToolkitImage(Image lowResolutionImage, Image resolutionVariant) | |
| checkSize | back to summary |
|---|---|
| private static void checkSize(double width, double height) | |
| getResolutionVariant | back to summary |
|---|---|
| public Image getResolutionVariant(double destWidth, double destHeight) Implements java. Doc from java. Gets a specific image that is the best variant to represent this logical image at the indicated size.
| |
| getResolutionVariant | back to summary |
|---|---|
| public Image getResolutionVariant() | |
| getResolutionVariantObserver | back to summary |
|---|---|
| public static ImageObserver getResolutionVariantObserver(final Image image, final ImageObserver observer, final int imgWidth, final int imgHeight, final int rvWidth, final int rvHeight) | |
| getResolutionVariantObserver | back to summary |
|---|---|
| public static ImageObserver getResolutionVariantObserver(final Image image, final ImageObserver observer, final int imgWidth, final int imgHeight, final int rvWidth, final int rvHeight, boolean concatenateInfo) | |
| getResolutionVariants | back to summary |
|---|---|
| public List Implements java. Doc from java. Gets a readable list of all resolution variants. The list must be nonempty and contain at least one resolution variant. Note that many implementations might return an unmodifiable list.
| |
| map | back to summary |
|---|---|
| public static Image map(MultiResolutionToolkitImage mrImage, Function<Image, Image> mapper) | |
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final WeakReference | |
| private static final Map | |
| private final WeakReference |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
Implements java. This method is called when information about an image which was previously requested using an asynchronous interface becomes available. |
| concat | back to summary |
|---|---|
| private final boolean concat | |
| imageRef | back to summary |
|---|---|
| private final WeakReference<Image> imageRef | |
| INSTANCE | back to summary |
|---|---|
| private static final Map<ImageObserver, ImageObserver> INSTANCE | |
| observerRef | back to summary |
|---|---|
| private final WeakReference<ImageObserver> observerRef | |
| ObserverCache | back to summary |
|---|---|
| private ObserverCache(ImageObserver obs, boolean concat, Image img) | |
| imageUpdate | back to summary |
|---|---|
| public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height) Implements java. Doc from java. This method is called when information about an image which was previously requested using an asynchronous interface becomes available. Asynchronous interfaces are method calls such as getWidth(ImageObserver) and drawImage(img, x, y, ImageObserver) which take an ImageObserver object as an argument. Those methods register the caller as interested either in information about the overall image itself (in the case of getWidth(ImageObserver)) or about an output version of an image (in the case of the drawImage(img, x, y, [w, h,] ImageObserver) call). This method should return true if further updates are needed or false if the required information has been acquired. The image which was being tracked is passed in using the img argument. Various constants are combined to form the infoflags argument which indicates what information about the image is now available. The interpretation of the x, y, width, and height arguments depends on the contents of the infoflags argument.
The
| |