The IWP_Link interface provides various methods for performing operations
upon images, and for setting and retreiving properties associated with
an image object. The methods are as follows:
Return | Function Call | Description |
Void | setImageSource(String URL) | sets the image source (URL) |
String | getImageSource() | retrieves the image source (URL) |
Void | setAlternate(String alt) | sets the alternative text which displays in the event that the image is not available |
String | getAlternate() | retrieves the alternative text which displays in the event that the image is not available |
Void | setBorderWidth(int size) | sets the image border width in pixels |
Int | getBorderWidth() | retrieves the image border width in pixels |
Void | setWidth(int size) | sets the image width in pixels. The image will be stretched to fit the value specified by this attribute. |
Int | getWidth() | retrieves the image width attribute. If no width was specified, the function returns a value of 0 |
Void | setHeight(int size) | sets the image height in pixels. The image will be stretched to fit the value specified by this attribute. |
Int | getHeight() | retrieves the image height attribute. If no height was specified, the function returns a value of 0 |
Void | setVSpace(int size) | sets the vertical space, in pixels. This specifies how much white space should be left above and below the image |
Int | getVSpace() | retrieves the vertical space attribute |
Void | setHSpace(int size) | sets the horizontal space, in pixels. This specifies how much white space appears to the left and right of the image |
Int | getHSpace() | retrieves the horizontal space attribute |
Void | setAlign(string align) | sets the image's alignment, relative to the text around it. Valid
settings are..
left - the image is placed on the left margin right - the image is placed on the right margin top - text will be aligned with respect to the top of the image, middle - text around the image will be centered vertically bottom - text will align with respect to the bottom of the image |
String | getAlign() | retrieves the image's alignment setting |
Return | Function Call | Description |
String | getName() | retreives the name of an object |
Boolean | setName(String name) | sets the name of an object |