|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A drawing-based cell renderer interface.
This interface is used to draw cell data within
contraints provided by the container. This technique
is faster than that provided by JCComponentCellRenderer
,
and offers more control. It can also be more work.
JCCellRenderer
,
JCComponentCellRenderer
Method Summary | |
void |
draw(Graphics gc,
com.klg.jclass.cell.JCCellInfo cellInfo,
Object o,
boolean selected)
Used to draw the cell. |
Dimension |
getPreferredSize(Graphics gc,
com.klg.jclass.cell.JCCellInfo cellInfo,
Object o)
Returns the preferred size of the cell's drawing area. |
Method Detail |
public void draw(Graphics gc, com.klg.jclass.cell.JCCellInfo cellInfo, Object o, boolean selected)
cellInfo.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.
gc
- graphics context to use for drawingcellInfo
- cell property informationo
- object to be renderedselected
- boolean value indicating whether the cell is selectedpublic Dimension getPreferredSize(Graphics gc, com.klg.jclass.cell.JCCellInfo cellInfo, Object o)
gc
- graphics context for calculating sizecellInfo
- cell property informationo
- object to be rendered
java.awt.Dimension
instance containing preferrred height and width
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |