y.option
Class IconCellRenderer
java.lang.Object
y.option.IconCellRenderer
- All Implemented Interfaces:
- javax.swing.Icon, javax.swing.ListCellRenderer, javax.swing.table.TableCellRenderer
public class IconCellRenderer
- extends java.lang.Object
- implements javax.swing.Icon, javax.swing.ListCellRenderer, javax.swing.table.TableCellRenderer
-
-
Method Summary |
int |
getIconHeight()
|
int |
getIconWidth()
|
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
|
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
|
void |
paintIcon(java.awt.Component c,
java.awt.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 java.awt.Component getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
- Specified by:
getListCellRendererComponent
in interface javax.swing.ListCellRenderer
paintIcon
public void paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
- Specified by:
paintIcon
in interface javax.swing.Icon
getIconWidth
public int getIconWidth()
- Specified by:
getIconWidth
in interface javax.swing.Icon
getIconHeight
public int getIconHeight()
- Specified by:
getIconHeight
in interface javax.swing.Icon
getTableCellRendererComponent
public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
- Specified by:
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer