com.klg.jclass.higrid
Class TableNodeRenderer
java.lang.Object
|
+--com.klg.jclass.cell.renderers.JCImageCellRenderer
|
+--com.klg.jclass.higrid.TableNodeRenderer
- All Implemented Interfaces:
- HiGridNodeRenderer, ImageObserver, JCCellRenderer, JCLightCellRenderer, Serializable
- public class TableNodeRenderer
- extends JCImageCellRenderer
- implements HiGridNodeRenderer
An alternative to DefaultNodeRenderer
when no indentation is wanted.
- See Also:
- Serialized Form
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableNodeRenderer
public TableNodeRenderer()
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 JCImageCellRenderer
- Parameters:
gc
- Graphics context to use for drawing.o
- Object to be renderedselected
- Boolean value indicating whether the cell is selectedcellFormat
-
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.nodeStatus
- Information about the object to be renderedselected
- Boolean value indicating whether the cell is selectedcellFormat
- Cell property information.