public class SortArrowIcon extends Object implements Icon
FilePanelJFlatTable
.Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING
Draw arrow, representing ascending sort order.
|
static int |
DESCENDING
Draw arrow, representing descending sort order.
|
protected int |
direction |
protected int |
height |
static int |
NONE
Don't draw an arrow.
|
protected int |
width |
Constructor and Description |
---|
SortArrowIcon(int direction)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
int |
getIconHeight() |
int |
getIconWidth() |
void |
paintIcon(Component c,
Graphics g,
int x,
int y) |
public static final int NONE
public static final int DESCENDING
public static final int ASCENDING
protected int direction
protected int width
protected int height
public SortArrowIcon(int direction)
direction
- The desired direction, either ASCENDING
,
DESCENDING
or NONE
public int getIconWidth()
getIconWidth
in interface Icon
Icon.getIconWidth()
public int getIconHeight()
getIconHeight
in interface Icon
Icon.getIconHeight()
public void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
Icon.paintIcon(java.awt.Component, java.awt.Graphics,
int, int)
Copyright © 2015. All rights reserved.