new IWIcon(url, hotspot, size)
Creates a new icon.
Parameters:
Name | Type | Description |
---|---|---|
url |
String | an absolute URL to the image |
hotspot |
IWPoint | the hotspot (optional, defaults to 0,0) |
size |
IWSize | the size of the image in pixels |
Methods
-
getHotspot()
-
Returns the hotspot of the image.
Returns:
- Type
- IWPoint
-
getSize()
-
Returns the size of the image in pixel.
Returns:
- Type
- IWSize
-
getUrl()
-
Returns the URL of the image.
Returns:
- Type
- String
-
setHotspot(hotspot)
-
Sets the hotspot of the image.
Parameters:
Name Type Description hotspot
IWPoint Returns:
- Type
- void
-
setSize(size)
-
Sets the size of the image in pixel.
Parameters:
Name Type Description size
IWSize the size of the image in pixel Returns:
- Type
- void
-
setUrl(url)
-
Sets the URL of the image.
Parameters:
Name Type Description url
String an absolute URL to the image Returns:
- Type
- void
-
toString()
-
Returns a string representation of this icon.
Returns:
- Type
- String