APIdia Launch Partner
Top Description Methods
javax.accessibility

public Interface AccessibleIcon

Known Direct Implementers
javax.swing.ImageIcon.AccessibleImageIcon, javax.swing.text.html.AccessibleHTML.IconElementInfo.IconAccessibleContext

The AccessibleIcon interface should be supported by any object that has an associated icon (e.g., buttons). This interface provides the standard mechanism for an assistive technology to get descriptive information about icons. Applications can determine if an object supports the AccessibleIcon interface by first obtaining its AccessibleContext (see Accessible) and then calling the AccessibleContext#getAccessibleIcon method. If the return value is not null, the object supports this interface.
Author
Lynn Monsanto
Since
1.3
See Also
Accessible, AccessibleContext

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the description of the icon
getAccessibleIconDescription
()

Gets the description of the icon.

public int

Returns:

the height of the icon
getAccessibleIconHeight
()

Gets the height of the icon.

public int

Returns:

the width of the icon
getAccessibleIconWidth
()

Gets the width of the icon.

public void
setAccessibleIconDescription(String
the description of the icon
description
)

Sets the description of the icon.

Method Detail

getAccessibleIconDescriptionback to summary
public String getAccessibleIconDescription()

Gets the description of the icon. This is meant to be a brief textual description of the object. For example, it might be presented to a blind user to give an indication of the purpose of the icon.

Returns:String

the description of the icon

getAccessibleIconHeightback to summary
public int getAccessibleIconHeight()

Gets the height of the icon.

Returns:int

the height of the icon

getAccessibleIconWidthback to summary
public int getAccessibleIconWidth()

Gets the width of the icon.

Returns:int

the width of the icon

setAccessibleIconDescriptionback to summary
public void setAccessibleIconDescription(String description)

Sets the description of the icon. This is meant to be a brief textual description of the object. For example, it might be presented to a blind user to give an indication of the purpose of the icon.

Parameters
description:String

the description of the icon