| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Implements a sequence of Icons being painted in a horizontal line.
Different height icons will be aligned according to Alignment property.
| Field Summary | |
final static int | BOTTOM |
final static int | CENTER |
private int | myAlignment |
private Vector | myIcons |
final static int | TOP |
| Constructor Summary | |
IconSequence()Constructs new icon sequence without icons and with centered alignment. | |
IconSequence(Icon[] icons, int alignment)Constructs new icon sequence with specified icons and alignment. | |
| Method Summary | |
void | addIcon(Icon icon)Adds new icon at the end of sequence. |
int | getAlignment()Return current alingment. |
Icon | getIconAt(int index)Returns icon at the specified position of sequence. |
int | getIconCount()Returns count of icons in this sequence. |
int | getIconHeight()Finds an icon with a maximum height and returns it's height. |
int | getIconWidth()Returns width of this sequence |
void | insertIconAt(Icon icon, int index)Insert new icon before specified position. |
void | paintIcon(Component c, Graphics g, int x, int y)Draw the icon at the specified location. |
void | removeAllIcons()Remove all icons from this sequence. |
void | removeIconAt(int index)Remove icon at the specified position. |
void | setAlignment(int alignment)Set new alingment. |
void | setIconAt(Icon icon, int index)Replace icon at specified position with new one. |
| Field Detail |
public final static int BOTTOM
public final static int CENTER
private int myAlignment
private Vector myIcons
public final static int TOP
| Constructor Detail |
public IconSequence()
public IconSequence(Icon[] icons, int alignment)
| Method Detail |
public void addIcon(Icon icon)
public int getAlignment()
public Icon getIconAt(int index)
public int getIconCount()
public int getIconHeight()
public int getIconWidth()
public void insertIconAt(Icon icon, int index)
public void paintIcon(Component c, Graphics g, int x, int y)
public void removeAllIcons()
public void removeIconAt(int index)
public void setAlignment(int alignment)
public void setIconAt(Icon icon, int index)
| Association Links |
| ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||