SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Encapsulates the image attributes: src, hotspot and image size.
Author: JANConstructor Summary | |
IWIcon(newUrl, newHotspot, newSize)
Creates a new icon object. |
Method Summary | |
IWPoint
|
getHotspot()
Returns the hotspot of the image. |
IWSize
|
getSize()
Returns the size of the image in pixel. |
String
|
getUrl()
Returns the url of the image. |
void
|
setHotspot(newHotspot)
Sets the hotspot of the image. image corner. |
void
|
setSize(newSize)
Sets the size of the image in pixel. |
void
|
setUrl(newUrl)
Sets the url of the image. |
String
|
toString()
Returns a string representation of this icon. |
Constructor Detail |
IWIcon(newUrl, newHotspot, newSize)
String newUrl
- the image src attribute
IWPoint newHotspot
- the default hotspot is set to new IWPoint(0,0)
IWSize newSize
- the default size of the image is set to new IWSize(0, 0)
Method Detail |
IWPoint getHotspot()
IWPoint
IWSize getSize()
IWSize
String getUrl()
String
void setHotspot(newHotspot)
IWPoint newHotspot
void
void setSize(newSize)
IWSize newSize
- the size of the image in pixel.
void
void setUrl(newUrl)
String newUrl
void
String toString()
String