JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.higrid
Class DefaultNodeRenderer

java.lang.Object
  |
  +--com.klg.jclass.cell.renderers.JCImageCellRenderer
        |
        +--com.klg.jclass.higrid.DefaultImageRenderer
              |
              +--com.klg.jclass.higrid.DefaultNodeRenderer
All Implemented Interfaces:
HiGridNodeRenderer, ImageObserver, JCCellRenderer, JCLightCellRenderer, Serializable

public class DefaultNodeRenderer
extends DefaultImageRenderer
implements HiGridNodeRenderer

The DefaultNodeRenderer class defines a JCCellRenderer object that paints NodeStatus objects in a HiGrid node cell.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.klg.jclass.cell.renderers.JCImageCellRenderer
drawClipArrowOutline, utilities
 
Fields inherited from interface com.klg.jclass.higrid.HiGridNodeRenderer
serialVersionUID
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DefaultNodeRenderer()
           
 
Method Summary
 void draw(Graphics gc, com.klg.jclass.cell.JCCellInfo cellFormat, com.klg.jclass.higrid.NodeStatus nodeStatus, boolean selected)
          Used to draw the cell.
 void draw(Graphics gc, com.klg.jclass.cell.JCCellInfo cellFormat, Object o, boolean selected)
          Used to draw the cell.
 
Methods inherited from class com.klg.jclass.higrid.DefaultImageRenderer
draw
 
Methods inherited from class com.klg.jclass.cell.renderers.JCImageCellRenderer
getAlignmentOffset, getPreferredSize, imageUpdate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNodeRenderer

public DefaultNodeRenderer()
Method Detail

draw

public void draw(Graphics gc,
                 com.klg.jclass.cell.JCCellInfo cellFormat,
                 Object o,
                 boolean selected)
Used to draw the cell. Note that the size of the cell comes from JCCellInfo.getDrawingArea(). When the renderer's draw method is called, the gc is translated to the upper-left corner of the drawing area for the cell. The "drawing area" of the cell is the region inside the borders and the margins.

Specified by:
draw in interface JCLightCellRenderer
Overrides:
draw in class DefaultImageRenderer
Parameters:
gc - Graphics context to use for drawing.
cellFormat - Cell property information.
o - Object to be rendered.
selected - Boolean value indicating whether the cell is selected.

draw

public void draw(Graphics gc,
                 com.klg.jclass.cell.JCCellInfo cellFormat,
                 com.klg.jclass.higrid.NodeStatus nodeStatus,
                 boolean selected)
Used to draw the cell. Note that the size of the cell comes from JCCellInfo.getDrawingArea(). When the renderer's draw method is called, the gc is translated to the upper-left corner of the drawing area for the cell. The "drawing area" of the cell is the region inside the borders and the margins.

Specified by:
draw in interface HiGridNodeRenderer
Parameters:
gc - Graphics context to use for drawing.
cellFormat - Cell property information.
nodeStatus - Information about the object to be rendered.
selected - Boolean value indicating whether the cell is selected.

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