Home » openjdk-7 » javax » accessibility » [javadoc | source]
javax.accessibility
public interface: AccessibleIcon [javadoc | source]

All Known Implementing Classes:
    AccessibleImageIcon, 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.
Method from javax.accessibility.AccessibleIcon Summary:
getAccessibleIconDescription,   getAccessibleIconHeight,   getAccessibleIconWidth,   setAccessibleIconDescription
Method from javax.accessibility.AccessibleIcon Detail:
 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.
 public int getAccessibleIconHeight()
    Gets the height of the icon
 public int getAccessibleIconWidth()
    Gets the width of the icon
 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.