|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.ImageCellRenderer
public class ImageCellRenderer
Renderer for Image
s.
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 . |
java.awt.Component |
getListCellRendererComponent(javax.swing.JList list,
java.lang.Object value,
int index,
boolean isSelected,
boolean cellHasFocus)
Returns a component that has been configured to display an image. |
java.awt.Component |
getTableCellRendererComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column)
Returns a component that has been configured to display an image. |
void |
paintIcon(java.awt.Component c,
java.awt.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 localizationMethod Detail |
---|
public java.awt.Component getListCellRendererComponent(javax.swing.JList list, java.lang.Object value, int index, boolean isSelected, boolean cellHasFocus)
Image
URLImageWrapper
from which
the actual image can be extractedURL
which specifies the
actual image's location
getListCellRendererComponent
in interface javax.swing.ListCellRenderer
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
Image
on the specified
Graphics
context.
paintIcon
in interface javax.swing.Icon
public int getIconWidth()
Image
.
getIconWidth
in interface javax.swing.Icon
Image
.public int getIconHeight()
Image
.
getIconHeight
in interface javax.swing.Icon
Image
.public java.awt.Component getTableCellRendererComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, boolean hasFocus, int row, int column)
Image
URLImageWrapper
from which
the actual image can be extractedURL
which specifies the
actual image's location
getTableCellRendererComponent
in interface javax.swing.table.TableCellRenderer
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |