com.klg.jclass.cell.renderers
Class JCImageCellRenderer
java.lang.Object
|
+--com.klg.jclass.cell.renderers.JCImageCellRenderer
- All Implemented Interfaces:
- ImageObserver, JCCellRenderer, JCLightCellRenderer, Serializable
- Direct Known Subclasses:
- DefaultImageRenderer, TableNodeRenderer
- public class JCImageCellRenderer
- extends Object
- implements JCLightCellRenderer, ImageObserver
The JCImageCellRenderer
class defines a
JCCellRenderer
object that paints Image
objects in a table cell.
- See Also:
- Serialized Form
Method Summary |
void |
draw(Graphics gc,
com.klg.jclass.cell.JCCellInfo cellInfo,
Object o,
boolean selected)
Draws the image. |
Point |
getAlignmentOffset(com.klg.jclass.cell.JCCellInfo cellInfo,
Object o)
Computes the alignment offset. |
Dimension |
getPreferredSize(Graphics gc,
com.klg.jclass.cell.JCCellInfo info,
Object o)
Returns the size of the cell required to display the image. |
boolean |
imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
utilities
protected com.klg.jclass.cell.Utilities utilities
drawClipArrowOutline
protected boolean drawClipArrowOutline
JCImageCellRenderer
public JCImageCellRenderer()
draw
public void draw(Graphics gc,
com.klg.jclass.cell.JCCellInfo cellInfo,
Object o,
boolean selected)
- Draws the image.
- Specified by:
draw
in interface JCLightCellRenderer
- Parameters:
cellInfo
- gc
- o
- selected
-
getAlignmentOffset
public Point getAlignmentOffset(com.klg.jclass.cell.JCCellInfo cellInfo,
Object o)
- Computes the alignment offset.
- Parameters:
cellInfo
- o
-
- Returns:
getPreferredSize
public Dimension getPreferredSize(Graphics gc,
com.klg.jclass.cell.JCCellInfo info,
Object o)
- Returns the size of the cell required to display the image.
- Specified by:
getPreferredSize
in interface JCLightCellRenderer
- Parameters:
gc
- info
- o
-
- Returns:
imageUpdate
public boolean imageUpdate(Image img,
int flags,
int x,
int y,
int width,
int height)
- Specified by:
imageUpdate
in interface ImageObserver