public interface Displayable
Modifier and Type | Method and Description |
---|---|
void |
drawListIcon(java.awt.Graphics2D g,
int x,
int y)
implement this to provide nice drawing of icon on printing graphics context.
|
javax.swing.Icon |
getListIcon()
An icon can be provided that will be shown in a list
along with the textual description of the element.
|
java.lang.String |
getListLabel()
return a
String that will help the user
identify this item when choosing from a list. |
java.lang.String getListLabel()
String
that will help the user
identify this item when choosing from a list.javax.swing.Icon getListIcon()
null
if there
is no icon available, or a roughly 16x16 pixel icon.void drawListIcon(java.awt.Graphics2D g, int x, int y)
g
- the graphics context.x
- the x position, typically 0.y
- the y position, typically 0.