| 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jidesoft.grid.SortableTableHeaderCellDecorator
public class SortableTableHeaderCellDecorator
This class is to paint sort icon and sort index.
| Nested Class Summary | |
|---|---|
protected  class | 
SortableTableHeaderCellDecorator.SortInfo
Sort information of a particular column.  | 
| Constructor Summary | |
|---|---|
SortableTableHeaderCellDecorator()
 | 
|
| Method Summary | |
|---|---|
protected  TableCellRenderer | 
getHeaderRenderer(JTableHeader header,
                  int columnIndex)
 | 
 Insets | 
getInsets(Graphics g,
          JTableHeader header,
          int columnIndex,
          Rectangle cellRect)
Gets the margin insets where this cell decorator will paint in.  | 
protected  SortableTableHeaderCellDecorator.SortInfo | 
getSortInfo(JTableHeader header,
            int columnIndex)
Gets the sort information of the specified column.  | 
 void | 
paint(Graphics g,
      JTableHeader header,
      int columnIndex,
      Rectangle cellRect,
      boolean mouseOverPaintArea)
Paints the table header cell.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SortableTableHeaderCellDecorator()
| Method Detail | 
|---|
protected TableCellRenderer getHeaderRenderer(JTableHeader header,
                                              int columnIndex)
public Insets getInsets(Graphics g,
                        JTableHeader header,
                        int columnIndex,
                        Rectangle cellRect)
TableHeaderCellDecorator
getInsets in interface TableHeaderCellDecoratorg - the Graphics instanceheader - the table headercolumnIndex - the view column index to be paintedcellRect - the original cell rectangle for the column
public void paint(Graphics g,
                  JTableHeader header,
                  int columnIndex,
                  Rectangle cellRect,
                  boolean mouseOverPaintArea)
TableHeaderCellDecoratorTableHeaderCellDecorator.getInsets(java.awt.Graphics, javax.swing.table.JTableHeader,
 int, java.awt.Rectangle), i.e., paint only in the area as specified in the insets.  You do need to consider both
 RTL and LTR orientations in your code when doing the painting.
paint in interface TableHeaderCellDecoratorg - the Graphics instanceheader - the table headercolumnIndex - the view column index to be paintedcellRect - the original cell rectangle for the columnmouseOverPaintArea - the flag indicating if the mouse is over the paint area of this cell decorator
protected SortableTableHeaderCellDecorator.SortInfo getSortInfo(JTableHeader header,
                                                                int columnIndex)
header - the headercolumnIndex - the column index
  | 
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||