|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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 locationMethod 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.Object
o
-
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.Object
public java.net.URL getUrl()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |