javax.accessibility
Interface AccessibleIcon

All Known Implementing Classes:
ImageIcon.AccessibleImageIcon

public interface AccessibleIcon

Objects which have an associated icon, such as buttons, should implement this interface. Accessibility software can use the implementations of this interface to aid the user in navigating the links.

The AccessibleContext.getAccessibleIcon() method should return null if an object does not implement this interface.

Since:
1.2
See Also:
Accessible, AccessibleContext, AccessibleContext.getAccessibleIcon()

Method Summary
 String getAccessibleIconDescription()
          Returns a textual description of the icon and its purpose.
 int getAccessibleIconHeight()
          Get the icon height.
 int getAccessibleIconWidth()
          Get the icon width.
 void setAccessibleIconDescription(String s)
          Modify the textual description of the icon and its purpose.
 

Method Detail

getAccessibleIconDescription

String getAccessibleIconDescription()
Returns a textual description of the icon and its purpose.

Returns:
the description, or null if there is none

setAccessibleIconDescription

void setAccessibleIconDescription(String s)
Modify the textual description of the icon and its purpose.

Parameters:
s - the new descrption string

getAccessibleIconWidth

int getAccessibleIconWidth()
Get the icon width.

Returns:
the width

getAccessibleIconHeight

int getAccessibleIconHeight()
Get the icon height.

Returns:
the height