|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PivotRowHeaderRenderer
PivotRowHeaderRenderer is the renderer for a PivotTable's row header cells. It defines methods for displaying as well as expanding/collapsing tree nodes.
Method Summary | |
---|---|
Rectangle |
getEditableBounds()
Returns the bounds of the editable component that is drawn. |
Component |
getTreeTableCellRendererComponent(JTable table,
Object value,
boolean isSelected,
boolean hasFocus,
int row,
int column,
boolean isLeaf,
boolean isExpanded,
PivotRowAdapter adapter,
TreePath path,
TableCellRenderer cellRenderer)
Returns the component used for drawing the expandable row. |
boolean |
handleEvent(MouseEvent e,
PivotTable table)
This method is called whenever a mouse event such as MOUSE_PRESSED is captured on a cell of the pivot table's row header. |
Method Detail |
---|
Rectangle getEditableBounds()
Component getTreeTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column, boolean isLeaf, boolean isExpanded, PivotRowAdapter adapter, TreePath path, TableCellRenderer cellRenderer)
table
- the table that is asking the renderer to drawvalue
- the value of the cell to be renderedisSelected
- true if the cell is to be rendered with the selection highlighted, false otherwisehasFocus
- if true, render cell appropriately. For example, put a special border on the cell, if the cell can be edited, render in the color used to indicate editingrow
- the row index of the cell being drawncolumn
- the column index of the cell being drawnisLeaf
- true if the cell has children, false otherwiseisExpanded
- true if the cell is expanded, false otherwiseadapter
- the adapter that was found at the specified cellpath
- the corresponding path in the adaptercellRenderer
- the renderer of the cell being drawn
boolean handleEvent(MouseEvent e, PivotTable table)
e
- the mouse event triggering the method calltable
- the pivot table which is the source of the event
|
Copyright © 2011 Citra Technologies. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |