ImageIcon.AccessibleImageIcon
public interface AccessibleIcon
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.Modifier and Type | Method | Description |
---|---|---|
String |
getAccessibleIconDescription() |
Gets the description of the icon. |
int |
getAccessibleIconHeight() |
Gets the height of the icon. |
int |
getAccessibleIconWidth() |
Gets the width of the icon. |
void |
setAccessibleIconDescription |
Sets the description of the icon. |
String getAccessibleIconDescription()
void setAccessibleIconDescription(String description)
description
- the description of the iconint getAccessibleIconWidth()
int getAccessibleIconHeight()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/accessibility/AccessibleIcon.html