JClass DesktopViews 6.3.0 API
Documentation

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

Field Summary
protected  boolean drawClipArrowOutline
           
protected  com.klg.jclass.cell.Utilities utilities
           
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
JCImageCellRenderer()
           
 
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
 

Field Detail

utilities

protected com.klg.jclass.cell.Utilities utilities

drawClipArrowOutline

protected boolean drawClipArrowOutline
Constructor Detail

JCImageCellRenderer

public JCImageCellRenderer()
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:

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.