JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.cell.renderers
Class JCScaledImageCellRenderer

java.lang.Object
  |
  +--com.klg.jclass.cell.renderers.JCScaledImageCellRenderer
All Implemented Interfaces:
ImageObserver, JCCellRenderer, JCLightCellRenderer, Serializable
Direct Known Subclasses:
JCRawImageCellRenderer

public class JCScaledImageCellRenderer
extends Object
implements JCLightCellRenderer, ImageObserver

The JCScaledImageCellRenderer class defines a JCCellRenderer object that paints Image objects in a table cell.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JCScaledImageCellRenderer()
           
 
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
 

Constructor Detail

JCScaledImageCellRenderer

public JCScaledImageCellRenderer()
Method Detail

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:
size of the cell required to display the image

imageUpdate

public boolean imageUpdate(Image img,
                           int flags,
                           int x,
                           int y,
                           int width,
                           int height)
Specified by:
imageUpdate in interface ImageObserver

Copyright © 2004 Quest Software Inc..
All rights reserved.