|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.cpl.table.IlpArrowIcon
public class IlpArrowIcon
This icon can be used to indicate the sorting direction (ascending or descending) and sorting order.
| Field Summary | |
|---|---|
static int |
DEFAULT_SIZE
The default size of the icon is 15. |
static int |
DOWN
Creates an icon representing a descending sort. |
static int |
UP
Creates an icon representing an ascending sort. |
| Constructor Summary | |
|---|---|
IlpArrowIcon()
Constructs an IlpArrowIcon with a default aspect:
sorting direction: UP
sorting order: 1
raised aspect: false
pressed aspect: false
|
|
IlpArrowIcon(Color edge1,
Color edge2,
Color fill,
int size,
int direction,
int number)
Creates an IlpArrowIcon with special parameters. |
|
IlpArrowIcon(int direction,
int number,
boolean isRaisedView,
boolean isPressedView)
Creates an IlpArrowIcon with regular parameters. |
|
| Method Summary | |
|---|---|
protected void |
drawDownArrow(Graphics g,
int xo,
int yo)
Draws a descending order icon at the specified location. |
protected void |
drawUpArrow(Graphics g,
int xo,
int yo)
Draws an ascending order icon at the specified location. |
Color |
getBorderColor()
Returns the up border color. |
Color |
getBorderColor2()
Returns the bottom border color. |
int |
getDirection()
|
Color |
getFillColor()
|
int |
getIconHeight()
Returns the height of the icon. |
int |
getIconWidth()
Returns the width of the icon. |
String |
getNumber()
Returns the sorting order number. |
protected void |
init(Color edge1,
Color edge2,
Color fill,
int size,
int direction)
Initializes the icon. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draws the icon at the specified location. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int UP
public static final int DOWN
public static final int DEFAULT_SIZE
| Constructor Detail |
|---|
public IlpArrowIcon()
IlpArrowIcon with a default aspect:
UP1falsefalse
public IlpArrowIcon(int direction,
int number,
boolean isRaisedView,
boolean isPressedView)
IlpArrowIcon with regular parameters.
direction - Sorting direction, UP or DOWN.number - Sorting order.isRaisedView - Displays the icon with a raised aspect.isPressedView - Displays the icon with a pressed aspect.
public IlpArrowIcon(Color edge1,
Color edge2,
Color fill,
int size,
int direction,
int number)
IlpArrowIcon with special parameters.
edge1 - Top border color.edge2 - Bottom border color.fill - Fill color.size - Size of the icon.direction - Sorting direction, UP or DOWN.number - Sorting order.| Method Detail |
|---|
public void paintIcon(Component c,
Graphics g,
int x,
int y)
paintIcon in interface Iconc - Not used.g - The Graphics the icon is drawn inside.x - The x location at which to draw the icon.y - The y location at which to draw the icon.public int getIconWidth()
getIconWidth in interface Iconpublic int getIconHeight()
getIconHeight in interface Iconpublic int getDirection()
UP or DOWNpublic Color getFillColor()
public Color getBorderColor()
public Color getBorderColor2()
public String getNumber()
protected void init(Color edge1,
Color edge2,
Color fill,
int size,
int direction)
edge1 - Top border color.edge2 - Bottom border color.fill - Fill color.size - Size of the icon.direction - Sorting direction, UP or DOWN.
protected void drawDownArrow(Graphics g,
int xo,
int yo)
g - The Graphics the icon is drawn inside.xo - The x location at which to draw the icon.yo - The y location at which to draw the icon.
protected void drawUpArrow(Graphics g,
int xo,
int yo)
g - The Graphics the icon is drawn inside.xo - The x location at which to draw the icon.yo - The y location at which to draw the icon.
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||