| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private final int | |
| private final int | |
| private final BiFunction | |
| private final Dimension2D[] |
| Access | Constructor and Description |
|---|---|
| public | MultiResolutionCachedImage(int baseImageWidth, int baseImageHeight, BiFunction<Integer, Integer, Image> mapper)
|
| public | MultiResolutionCachedImage(int baseImageWidth, int baseImageHeight, Dimension2D[] sizes, BiFunction<Integer, Integer, Image> mapper)
|
| private | MultiResolutionCachedImage(int baseImageWidth, int baseImageHeight, Dimension2D[] sizes, BiFunction<Integer, Integer, Image> mapper, boolean copySizes)
|
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| protected Image | getBaseImage()
Implements abstract java. Return the base image representing the best version of the image for rendering at the default width and height. |
| public int | getHeight(ImageObserver observer)
Overrides java. This method simply delegates to the same method on the base image and
it is equivalent to: |
| private static int | |
| public Object | getProperty(String name, ImageObserver observer)
Overrides java. This method simply delegates to the same method on the base image and
it is equivalent to: |
| 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 List | getResolutionVariants()
Implements java. Gets a readable list of all resolution variants. |
| public Image | getScaledInstance(int width, int height, int hints)
Overrides java. Creates a scaled version of this image. |
| public int | getWidth(ImageObserver observer)
Overrides java. This method simply delegates to the same method on the base image and
it is equivalent to: |
| public MultiResolutionCachedImage | |
| public static Image | |
| private static void | |
| private void |
| availableInfo | back to summary |
|---|---|
| private int availableInfo | |
| baseImageHeight | back to summary |
|---|---|
| private final int baseImageHeight | |
| baseImageWidth | back to summary |
|---|---|
| private final int baseImageWidth | |
| mapper | back to summary |
|---|---|
| private final BiFunction<Integer, Integer, Image> mapper | |
| sizes | back to summary |
|---|---|
| private final Dimension2D[] sizes | |
| MultiResolutionCachedImage | back to summary |
|---|---|
| public MultiResolutionCachedImage(int baseImageWidth, int baseImageHeight, BiFunction<Integer, Integer, Image> mapper) | |
| MultiResolutionCachedImage | back to summary |
|---|---|
| public MultiResolutionCachedImage(int baseImageWidth, int baseImageHeight, Dimension2D[] sizes, BiFunction<Integer, Integer, Image> mapper) | |
| MultiResolutionCachedImage | back to summary |
|---|---|
| private MultiResolutionCachedImage(int baseImageWidth, int baseImageHeight, Dimension2D[] sizes, BiFunction<Integer, Integer, Image> mapper, boolean copySizes) | |
| checkSize | back to summary |
|---|---|
| private static void checkSize(double width, double height) | |
| getBaseImage | back to summary |
|---|---|
| protected Image getBaseImage() Implements abstract java. Doc from java. Return the base image representing the best version of the image for rendering at the default width and height.
| |
| getHeight | back to summary |
|---|---|
| public int getHeight(ImageObserver observer) Overrides java. Doc from java. This method simply delegates to the same method on the base image and
it is equivalent to:
| |
| getInfo | back to summary |
|---|---|
| private static int getInfo(Image image) | |
| getProperty | back to summary |
|---|---|
| public Object getProperty(String name, ImageObserver observer) Overrides java. Doc from java. This method simply delegates to the same method on the base image and
it is equivalent to:
| |
| 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.
| |
| 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.
| |
| getScaledInstance | back to summary |
|---|---|
| public Image getScaledInstance(int width, int height, int hints) Overrides java. Doc from java. Creates a scaled version of this image.
A new
If either
| |
| getWidth | back to summary |
|---|---|
| public int getWidth(ImageObserver observer) Overrides java. Doc from java. This method simply delegates to the same method on the base image and
it is equivalent to:
| |
| map | back to summary |
|---|---|
| public MultiResolutionCachedImage map(Function<Image, Image> mapper) | |
| map | back to summary |
|---|---|
| public static Image map(MultiResolutionImage mrImage, Function<Image, Image> mapper) | |
| preload | back to summary |
|---|---|
| private static void preload(Image image, int availableInfo) | |
| updateInfo | back to summary |
|---|---|
| private void updateInfo(ImageObserver observer, int info) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Image | |
| private final int | |
| private final int | |
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| private int | |
| public int |
| baseImage | back to summary |
|---|---|
| private final Image baseImage | |
| h | back to summary |
|---|---|
| private final int h | |
| hash | back to summary |
|---|---|
| private final int hash | |
| pixelCount | back to summary |
|---|---|
| private final int pixelCount | |
| w | back to summary |
|---|---|
| private final int w | |
| ImageCacheKey | back to summary |
|---|---|
| pack-priv ImageCacheKey(final Image baseImage, final int w, final int h) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getPixelCount | back to summary |
|---|---|
| public int getPixelCount() Implements sun.
| |
| hash | back to summary |
|---|---|
| private int hash() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |