JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.cell.renderers
Class JCRawImageCellRenderer

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

public class JCRawImageCellRenderer
extends JCScaledImageCellRenderer

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

See Also:
Serialized Form

Field Summary
protected  Canvas component
           
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JCRawImageCellRenderer()
           
 
Method Summary
 void draw(Graphics gc, com.klg.jclass.cell.JCCellInfo cellInfo, Object o, boolean selected)
          Draws the image.
 Dimension getPreferredSize(Graphics gc, com.klg.jclass.cell.JCCellInfo info, Object o)
          Returns the size of the cell required to display the image.
 
Methods inherited from class com.klg.jclass.cell.renderers.JCScaledImageCellRenderer
getAlignmentOffset, imageUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

component

protected Canvas component
Constructor Detail

JCRawImageCellRenderer

public JCRawImageCellRenderer()
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
Overrides:
draw in class JCScaledImageCellRenderer
Parameters:
cellInfo -
gc -
o -
selected -

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
Overrides:
getPreferredSize in class JCScaledImageCellRenderer
Parameters:
gc -
info -
o -
Returns:
size of the cell required to display the image

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