|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.klg.jclass.util.swing.JCSortableTable.SortIcon
Internal sorting icon class.
Field Summary | |
protected Color |
color
|
protected int |
height
|
protected boolean |
isUp
|
protected Color |
outlineColor
|
protected int |
width
|
protected int[] |
xpoints
|
protected int[] |
ypoints
|
Constructor Summary | |
JCSortableTable.SortIcon(boolean isUp)
Constructs a new SortIcon instance for up or down arrow. |
|
JCSortableTable.SortIcon(boolean isUp,
Color fillColor,
Color outlineColor)
Constructs a new SortIcon instance. |
Method Summary | |
Color |
getColor()
Returns the icon's fill color. |
int |
getIconHeight()
Returns the icon's height. |
int |
getIconWidth()
Returns the icon's width. |
Color |
getOutlineColor()
Returns the icon's outline color. |
void |
paintIcon(Component c,
Graphics g,
int x,
int y)
Draws the icon at the specified location. |
void |
setColor(Color color)
Sets the icon's fill color. |
void |
setOutlineColor(Color color)
Sets the icon's outline color. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected boolean isUp
protected Color color
protected Color outlineColor
protected int width
protected int height
protected int[] xpoints
protected int[] ypoints
Constructor Detail |
public JCSortableTable.SortIcon(boolean isUp)
SortIcon
instance for up or down arrow.
isUp
- if true
, this icon draws an up arrow instead of
a down arrowpublic JCSortableTable.SortIcon(boolean isUp, Color fillColor, Color outlineColor)
SortIcon
instance.
isUp
- if true
, this icon draws an up arrow instead of
a down arrowfillColor
- the fill color of the arrowoutlineColor
- the outline color of the arrowMethod Detail |
public Color getColor()
public void setColor(Color color)
color
- the new icon's fill colorpublic Color getOutlineColor()
public void setOutlineColor(Color color)
color
- the new icon's outline colorpublic void paintIcon(Component c, Graphics g, int x, int y)
paintIcon
in interface Icon
c
- Not used. Some icon implementations use this Component argument
to get properties useful for painting; for example, the
foreground or background color.g
- the graphics object to do the paintingx
- the X position at which to painty
- the Y position at which to paintpublic int getIconWidth()
getIconWidth
in interface Icon
public int getIconHeight()
getIconHeight
in interface Icon
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |