|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiggests.utils.Arrow
public class Arrow
Title: Arrow
Description: Class that implements an Icon. Actually it is an arrow representing the sorting status.
Copyright: Copyright (c) 2008
Constructor Summary | |
---|---|
Arrow(boolean descending,
int size,
int priority)
Creates a new arrow for the given sorting status, with the given size and priority . |
Method Summary | |
---|---|
int |
getIconHeight()
Returns the height of the arrow icon. |
int |
getIconWidth()
Returns the width of the arrow icon. |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics g,
int x,
int y)
Paints the arrow. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Arrow(boolean descending, int size, int priority)
size
and priority
.
descending
- boolean
the sorting statussize
- int
the size of the iconpriority
- int
the priorityMethod Detail |
---|
public void paintIcon(java.awt.Component c, java.awt.Graphics g, int x, int y)
paintIcon
in interface javax.swing.Icon
c
- the Component
where the arrow will be paintedg
- the Graphics
to draw the arrowx
- int
the x-coordinatey
- public int getIconWidth()
getIconWidth
in interface javax.swing.Icon
public int getIconHeight()
getIconHeight
in interface javax.swing.Icon
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |