|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.option.ImageCellRenderer
public class ImageCellRenderer
Renderer for Images.
| Constructor Summary | |
|---|---|
ImageCellRenderer(GuiFactory factory,
int desiredWidth,
int desiredHeight)
Creates a new instance of ImageCellRenderer. |
|
| Method Summary | |
|---|---|
int |
getIconHeight()
Returns the height of the last displayed Image. |
int |
getIconWidth()
Returns the width of the last displayed Image. |
Component |
getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Returns a component that has been configured to display an image. |
Component |
getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns a component that has been configured to display an image. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Paints the last displayed Image on the specified
Graphics context. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ImageCellRenderer(GuiFactory factory,
int desiredWidth,
int desiredHeight)
ImageCellRenderer.
factory - the GuiFactory used for localization| Method Detail |
|---|
public Component getListCellRendererComponent(JList list,
Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
ImageURLImageWrapper from which
the actual image can be extractedURL which specifies the
actual image's location
getListCellRendererComponent in interface ListCellRenderer
public void paintIcon(Component c,
Graphics g,
int x,
int y)
Image on the specified
Graphics context.
paintIcon in interface Iconpublic int getIconWidth()
Image.
getIconWidth in interface IconImage.public int getIconHeight()
Image.
getIconHeight in interface IconImage.
public Component getTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
ImageURLImageWrapper from which
the actual image can be extractedURL which specifies the
actual image's location
getTableCellRendererComponent in interface TableCellRenderer
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||