Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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()
Returns the sorting direction.
|
Color |
getFillColor()
Returns the fill color.
|
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.
|
public static final int UP
public static final int DOWN
public static final int DEFAULT_SIZE
public IlpArrowIcon()
IlpArrowIcon
with a default aspect:
UP
1
false
false
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.public void paintIcon(Component c, Graphics g, int x, int y)
public int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
public int getDirection()
UP
or DOWN
public 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.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.