y.option
Class IconCellRenderer
java.lang.Object
y.option.IconCellRenderer
- All Implemented Interfaces:
- Icon, ListCellRenderer, TableCellRenderer
public class IconCellRenderer
- extends Object
- implements Icon, ListCellRenderer, TableCellRenderer
Method Summary |
int |
getIconHeight()
|
int |
getIconWidth()
|
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IconCellRenderer
public IconCellRenderer(GuiFactory factory,
int desiredWidth,
int desiredHeight)
getListCellRendererComponent
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
- Specified by:
getListCellRendererComponent
in interface ListCellRenderer
paintIcon
public void paintIcon(Component c,
Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface Icon
getTableCellRendererComponent
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
- Specified by:
getTableCellRendererComponent
in interface TableCellRenderer