|
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(Image image,
URL url)
Create a new wrapper instance |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Overloaded from Object |
Image |
getImage()
Get the image instance that is currently stored in this wrapper |
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(Image image,
URL url)
image - the image that is wrapped by this objecturl - describes the image resource location| Method Detail |
|---|
public Image getImage()
public URL getUrl()
public boolean isNoImage()
false iff both image and resource URL are null.public boolean equals(Object o)
Object
equals in class 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 Object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||