javax.swing
protected class ImageIcon.AccessibleImageIcon extends AccessibleContext implements AccessibleIcon, Serializable
ImageIcon
class.
Constructor Summary | |
---|---|
protected | AccessibleImageIcon()
Creates a new instance of AccessibleImageIcon . |
Method Summary | |
---|---|
Accessible | getAccessibleChild(int i)
Returns the accessible child at index i , which is
null in this case because an {@link ImageIcon} has no
children.
|
int | getAccessibleChildrenCount()
Returns the number of accessible children of this component,
which is 0, because an {@link ImageIcon} has no children.
|
String | getAccessibleIconDescription()
Returns the accessible icon description. |
int | getAccessibleIconHeight()
Returns the icon height. |
int | getAccessibleIconWidth()
Returns the icon width. |
int | getAccessibleIndexInParent()
Returns the index of this object in its accessible parent. |
Accessible | getAccessibleParent()
Returns the accessible parent of this object. |
AccessibleRole | getAccessibleRole()
Returns the accessible role for the ImageIcon .
|
AccessibleStateSet | getAccessibleStateSet()
Returns the accessible state for the ImageIcon . |
Locale | getLocale()
Returns the locale of this object. |
void | setAccessibleIconDescription(String newDescr)
Sets the accessible icon description. |
AccessibleImageIcon
.i
, which is
null
in this case because an {@link ImageIcon} has no
children.
Parameters: i the index of the child to be fetched
Returns: null
.
Returns: 0
.
description
property of the underlying {@link ImageIcon}.
Returns: The description (possibly null
).
See Also: setAccessibleIconDescription
iconHeight
property of the underlying {@link ImageIcon}.
Returns: The icon height.
iconWidth
property
of the underlying {@link ImageIcon}.
Returns: The icon width.
-1
.
Returns: -1
.
null
.
Returns: null
.
ImageIcon
.
Returns: {@link AccessibleRole#ICON}.
ImageIcon
. To
match the reference implementation, this method always returns
null
.
Returns: null
.
null
.
Returns: null
.
description
property of the underlying {@link ImageIcon}.
Parameters: newDescr the description (null
permitted).
See Also: getAccessibleIconDescription