|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||
java.lang.Objectcom.wordpress.tipsforjava.swing.table.VerticalTableHeaderCellRenderer.VerticalSortIcon
private enum VerticalTableHeaderCellRenderer.VerticalSortIcon
An icon implementation to paint the contained icon rotated 90 degrees clockwise.
This implementation assumes that the L&F provides ascending and descending sort icons of identical size.
| Enum Constant Summary | |
|---|---|
ASCENDING
|
|
DESCENDING
|
|
| Field Summary | |
|---|---|
private Icon |
icon
A renderer for a JTableHeader with text rotated 90 degrees counterclockwise. |
| Method Summary | |
|---|---|
int
|
getIconHeight()
Returns the height of the rotated icon. |
int
|
getIconWidth()
Returns the width of the rotated icon. |
void
|
paintIcon(Component c, Graphics g, int x, int y)
Paints an icon suitable for the header of a sorted table column, rotated by 90 degrees clockwise. |
| Methods inherited from class Object | |
|---|---|
| wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
| Enum Constant Detail |
|---|
VerticalTableHeaderCellRenderer.VerticalSortIcon ASCENDING
VerticalTableHeaderCellRenderer.VerticalSortIcon DESCENDING
| Field Detail |
|---|
private Icon icon
Extends DefaultTableHeaderCellRenderer.
| Method Detail |
|---|
@Override public int getIconHeight()
@Override public int getIconWidth()
@Override public void paintIcon(Component c, Graphics g, int x, int y)
The icon is retrieved from the UIManager to obtain an icon appropriate to the L&F.
c - the component to which the icon is to be renderedg - the graphics contextx - the X coordinate of the icon's top-left cornery - the Y coordinate of the icon's top-left corner
Groovy Documentation