public class IconManager.IconManagerIcon extends Object implements Icon, Accessible
Icon
implementation used for icons created by the icon manager.Modifier and Type | Class and Description |
---|---|
protected class |
IconManager.IconManagerIcon.AccessibleIconManagerIcon
This class implements accessibility support for the
IconManagerIcon class. |
Modifier | Constructor and Description |
---|---|
protected |
IconManagerIcon(String iconName,
Rectangle iconRectangle,
int effect,
Dimension targetSize)
Constructor for IconManagerIcon.
|
Modifier and Type | Method and Description |
---|---|
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this Icon.
|
int |
getIconHeight() |
int |
getIconWidth() |
String |
getName()
Returns if available the name of the icon otherwise
null . |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
void |
setName(String iconName)
Sets the name of the icon.
|
protected IconManagerIcon(String iconName, Rectangle iconRectangle, int effect, Dimension targetSize)
targetSize
- the size of the resulting iconiconRectangle
- the bounding icon rectangleseffect
- an ORed combination of a set of effect flags.public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public String getName()
null
.public void setName(String iconName)
iconName
- name of the iconpublic AccessibleContext getAccessibleContext()
getAccessibleContext
in interface Accessible
Copyright © 2024 levigo holding gmbh. All rights reserved.