DhStyleBase | +--DhElement | +--DhImagepublic class DhImage
Displays a bitmap file in the document. To create a dhImage object on your page, construct an object using the URL of the image (which can be relative to the HTML document).
Constructors
Name | Description |
---|---|
DhImage(String url) | Creates a DhImage obect. |
Methods
Name | Description |
---|---|
addFilter(DhFilter filter) | Adds a filter to this element and applies it immediately. |
addFilter(DhFilter filter, boolean bApply) | Adds a filter to this element. |
addFilter(DhFilter filter, boolean bApply, boolean bFlush) | Adds a filter to this element. |
addOnReadyStateChange ( DhEventHandler h ) | Topic under construction. |
addTransition(DhFilter trans) | Adds a transition effect to this element. |
applyFilters() | Applies filters that were previously deferred. |
findFilter(Class filterClass) | Retrieves the current filter with the specified filter class. |
getImageMap() | Retrieves the DhImageMap object associated with this image. |
getImageMapName() | Retrieves the name of the image map associated with this image. |
getLoadComplete() | Determines if the image has been fully loaded. |
getReadyState() | Returns the current state of the image object. |
getURL() | Retrieves the current URL that refers to the location of the bitmap file. |
removeAllFilters() | Removes all filters from this element. |
removeAllFilters(boolean bApply) | Removes all filters from this element. |
removeFilter(DhFilter filter) | Removes the specified filter from this element. |
removeFilter(DhFilter filter, boolean bApply) | Removes the given filter from this element. |
removeOnReadyStateChange ( DhEventHandler h ) | Topic under construction. |
replaceFilter(DhFilter filter1, DhFilter filter2) | Replaces a filter with another filter. |
replaceFilter(DhFilter filter1, DhFilter filter2, boolean bApply) | Replaces a filter with a specified filter. |
setImageMap( DhImageMap im ) | Sets the DhImageMap to associate with this image. |
setImageMapName( String strName ) | Sets the name of the image map to associate with this image. |
setURL(String url) | Sets the URL of the bitmap file. |
Creates a DhImage obect.
Adds a filter to this element and applies it immediately. Filters added this way are combined with other filters that were previously added and not explicity flushed or removed.
wfc.html.DhCantAddElementException thrown if this type of filter already exists on this element.
Adds a filter to this element. You can apply the filter immediately or delay application. Delaying application is useful if you are applying more than one filter to this element. Filters added this way are combined with other filters that were previously added and not explicity flushed or removed.
wfc.html.DhCantAddElementException thrown if this type of filter already exists on this element.
Adds a filter to this element. You can apply the filter immediately or delay application. Delaying application is useful if you are applying more than one filter to this element. You can also specify whether to flush filters that were previously applied to this element or to combine this filter with those already present.
wfc.html.DhCantAddElementException thrown if this type of filter already exists on this element.
Topic under construction.
Adds a transition effect to this element. You must call this method before you can run the effect. Note that this functionality is provided for extension only (see the sample classes). This package does provide transition effects.
wfc.html.DhCantAddElementException thrown if this type of transition effect already exists on this element.
Applies filters that were previously deferred. Use this method if you called addFilter(DhFilter,boolean) with false for the second parameter. This function applies every filter that was added to this element.
Returns the DhFilter object (if found) that is of type filterClass.
Retrieves the current filter with the specified filter class.
Returns a DhImageMap object, or returns null if none is set.
Retrieves the DhImageMap object associated with this image.
Returns the name of the image map, or returns a null string if none is set.
Retrieves the name of the image map associated with this image.
Returns true if loading of the image is complete; otherwise, returns false. .
Determines if the image has been fully loaded.
Returns the current state.
Returns the current state of the image object.
Possible values include:
Returns the URL that refers to the bitmap file to display.
Retrieves the current URL that refers to the location of the bitmap file.
Removes all filters from this element. This method automatically clears all filters on this element.
Removes all filters from this element. You can clear all filters on this element or delay removal.
Removes the specified filter from this element. This method automatically reapplies filters that may be left after this method is called.
Removes the given filter from this element. You can reapply filters that may be left after this method is called, or you can delay application if you are removing more than one filter.
Topic under construction.
Replaces a filter with another filter. This method provides an easy way to swap filters. This method applies all changes due to this swap immediately.
Replaces a filter with a specified filter. This method provides an easy way to swap filters. You can specify whether to apply all the changes due to this swap immediately or to delay application until later.
Sets the DhImageMap to associate with this image.
Sets the name of the image map to associate with this image.
Sets the URL of the bitmap file.