| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.option.URLImageWrapper
public class URLImageWrapper
Utility class that wraps together an image object and the resource location where the image has been loaded from.
| Constructor Summary | |
|---|---|
| URLImageWrapper(java.awt.Image image,
                java.net.URL url)Create a new wrapper instance | |
| Method Summary | |
|---|---|
|  boolean | equals(java.lang.Object o)Overloaded from Object | 
|  java.awt.Image | getImage()Get the image instance that is currently stored in this wrapper | 
|  java.net.URL | getUrl()Get the image resource URL that is currently stored in this wrapper | 
|  int | hashCode() | 
|  boolean | isNoImage()Check whether this wrapper describes a valid image or URL resource | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public URLImageWrapper(java.awt.Image image,
                       java.net.URL url)
image - the image that is wrapped by this objecturl - describes the image resource location| Method Detail | 
|---|
public java.awt.Image getImage()
public boolean isNoImage()
false iff both image and resource URL are null.public boolean equals(java.lang.Object o)
Object
equals in class java.lang.Objecto - 
true iff o is an URLWrapper instance and either the url==null && both images are equal or
 both urls are equal (in this case the image data is ignored).public int hashCode()
hashCode in class java.lang.Objectpublic java.net.URL getUrl()
| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||