| Modifier and Type | Class and Description |
|---|---|
| private static class | ImageCache.
Caches set of arguments and Image. |
| Modifier and Type | Field and Description |
|---|---|
| private final LinkedList | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private ImageCache. | |
| public Image | getImage(Object key, GraphicsConfiguration config, int w, int h, Object[] args)
Returns the cached Image, or null, for the specified arguments. |
| public void | setImage(Object key, GraphicsConfiguration config, int w, int h, Object[] args, Image image)
Sets the cached image for the specified constraints. |
| pack-priv void |
| entries | back to summary |
|---|---|
| private final LinkedList<SoftReference<ImageCache. | |
| maxCount | back to summary |
|---|---|
| private int maxCount | |
| ImageCache | back to summary |
|---|---|
| public ImageCache(int maxCount) | |
| flush | back to summary |
|---|---|
| public void flush() | |
| getEntry | back to summary |
|---|---|
| private ImageCache. | |
| getImage | back to summary |
|---|---|
| public Image getImage(Object key, GraphicsConfiguration config, int w, int h, Object[] args) Returns the cached Image, or null, for the specified arguments. | |
| setImage | back to summary |
|---|---|
| public void setImage(Object key, GraphicsConfiguration config, int w, int h, Object[] args, Image image) Sets the cached image for the specified constraints. | |
| setMaxCount | back to summary |
|---|---|
| pack-priv void setMaxCount(int maxCount) | |
| Modifier and Type | Field and Description |
|---|---|
| private final Object[] | |
| private final GraphicsConfiguration | |
| private final int | |
| private Image | |
| private final int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public Image | |
| public void | |
| public String |
| args | back to summary |
|---|---|
| private final Object[] args | |
| config | back to summary |
|---|---|
| private final GraphicsConfiguration config | |
| h | back to summary |
|---|---|
| private final int h | |
| image | back to summary |
|---|---|
| private Image image | |
| w | back to summary |
|---|---|
| private final int w | |
| Entry | back to summary |
|---|---|
| pack-priv Entry(GraphicsConfiguration config, int w, int h, Object[] args) | |
| equals | back to summary |
|---|---|
| public boolean equals(GraphicsConfiguration config, int w, int h, Object[] args) | |
| getImage | back to summary |
|---|---|
| public Image getImage() | |
| setImage | back to summary |
|---|---|
| public void setImage(Image image) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |