Class ColorIcon
- java.lang.Object
-
- com.tagtraum.beatunes.songtable.renderer.ColorIcon
-
- All Implemented Interfaces:
Accessible
,Icon
public class ColorIcon extends Object implements Icon, Accessible
Retina capable color icon.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected class
ColorIcon.AccessibleColorIcon
This class implements accessibility support for theColorIcon
class.
-
Constructor Summary
Constructors Constructor Description ColorIcon(int width, int height, int arc, int insets, Paint paint)
ColorIcon(int width, int height, int arc, int insets, Paint paint, Paint border)
ColorIcon(int width, int height, int insets, Paint paint)
ColorIcon(int width, int height, int insets, Paint paint, Paint border)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessibleContext
getAccessibleContext()
Gets the AccessibleContext associated with this ColorIcon.String
getDescription()
Gets the description of the image.int
getIconHeight()
int
getIconWidth()
void
paintIcon(Component c, Graphics g, int x, int y)
void
setDescription(String description)
Sets the description of the image.
-
-
-
Method Detail
-
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interfaceIcon
-
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interfaceIcon
-
getDescription
public String getDescription()
Gets the description of the image. 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 image. The description may be null.- Returns:
- a brief textual description of the image
-
setDescription
public void setDescription(String description)
Sets the description of the image. 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 image.- Parameters:
description
- a brief textual description of the image
-
getAccessibleContext
public AccessibleContext getAccessibleContext()
Gets the AccessibleContext associated with this ColorIcon. For image icons, the AccessibleContext takes the form of an AccessibleColorIcon. A new AccessibleColorIcon instance is created if necessary.- Specified by:
getAccessibleContext
in interfaceAccessible
- Returns:
- an AccessibleColorIcon that serves as the AccessibleContext of this ColorIcon
- Since:
- 1.3
-
-