|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.utils.swing.icons.StarIcons
public class StarIcons
StarIcons.
Star Icons are icons showing five stars partially or fully filled in. Star Icons reside in the "resources/staricons" subdirectory of the package directory.
This static class manages and encapsulates access to the star icons.
Method Summary | |
---|---|
static javax.swing.ImageIcon |
get(int index)
Gets an icon by index. |
static javax.swing.ImageIcon |
get(java.lang.String name)
Gets an icon by name. |
static javax.swing.ImageIcon[] |
getIcons(boolean getAll)
Get icons. |
static javax.swing.JLabel[] |
getLabels(boolean getAll)
Get icons as list of JLabels. |
static int |
indexOf(javax.swing.ImageIcon icon)
Gets the index of an emoticon. |
static javax.swing.JPopupMenu |
popup(java.awt.event.ActionListener listener)
Creates and returns a popup menu for all the star icons. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static javax.swing.ImageIcon get(int index)
index
- The index of the icon.
public static javax.swing.ImageIcon get(java.lang.String name)
name
- The icon name.
public static javax.swing.JPopupMenu popup(java.awt.event.ActionListener listener)
listener
- Shared action listener for all the menu items.
public static int indexOf(javax.swing.ImageIcon icon)
icon
- The image icon.
public static javax.swing.JLabel[] getLabels(boolean getAll)
getAll
- True to get all star icons, false to get
only the ones for whole numbers.
public static javax.swing.ImageIcon[] getIcons(boolean getAll)
getAll
- True to get all star icons, false to get
only the ones for whole numbers.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |