final class PlasticIconFactory
extends java.lang.Object
Icons for the
JGoodies Plastic look and feel.
These icons are used extensively in Plastic via the defaults mechanism.
While other look and feels often use GIFs for icons, creating icons
in code facilitates switching to other themes.
Each method in this class returns either an Icon or null,
where null implies that there is no default icon.
| Modifier and Type | Class and Description |
|---|---|
private static class |
PlasticIconFactory.CheckBoxIcon |
private static class |
PlasticIconFactory.CheckBoxMenuItemIcon |
private static class |
PlasticIconFactory.CollapsedTreeIcon
The plus sign button icon used in trees.
|
private static class |
PlasticIconFactory.ComboBoxButtonIcon
The arrow button used in comboboxes.
|
private static class |
PlasticIconFactory.ExpandedTreeIcon
Paints a minus sign button icon used in trees.
|
private static class |
PlasticIconFactory.MenuArrowIcon |
private static class |
PlasticIconFactory.RadioButtonMenuItemIcon |
| Modifier and Type | Field and Description |
|---|---|
private static javax.swing.Icon |
checkBoxIcon |
private static javax.swing.Icon |
checkBoxMenuItemIcon |
private static javax.swing.Icon |
collapsedTreeIcon |
private static javax.swing.Icon |
comboBoxButtonIcon |
private static javax.swing.Icon |
expandedTreeIcon |
private static javax.swing.Icon |
menuArrowIcon |
private static javax.swing.Icon |
radioButtonMenuItemIcon |
| Modifier | Constructor and Description |
|---|---|
private |
PlasticIconFactory() |
| Modifier and Type | Method and Description |
|---|---|
private static void |
drawCheck(java.awt.Graphics g,
int x,
int y) |
(package private) static javax.swing.Icon |
getCheckBoxIcon()
Answers an
Icon used for JCheckBoxes. |
(package private) static javax.swing.Icon |
getCheckBoxMenuItemIcon()
Answers an
Icon used for JCheckButtonMenuItems. |
(package private) static javax.swing.Icon |
getCollapsedTreeIcon()
Answers an
Icon used in JTrees. |
(package private) static javax.swing.Icon |
getComboBoxButtonIcon()
Answers an
Icon used in JComboBoxes. |
(package private) static javax.swing.Icon |
getExpandedTreeIcon()
Answers an
Icon used in JTrees. |
(package private) static javax.swing.Icon |
getMenuArrowIcon()
Answers an
Icon used for arrows in JMenus. |
(package private) static javax.swing.Icon |
getRadioButtonMenuItemIcon()
Answers an
Icon used for JRadioButtonMenuItems. |
private static javax.swing.Icon checkBoxIcon
private static javax.swing.Icon checkBoxMenuItemIcon
private static javax.swing.Icon radioButtonMenuItemIcon
private static javax.swing.Icon menuArrowIcon
private static javax.swing.Icon expandedTreeIcon
private static javax.swing.Icon collapsedTreeIcon
private static javax.swing.Icon comboBoxButtonIcon
private static void drawCheck(java.awt.Graphics g,
int x,
int y)
static javax.swing.Icon getCheckBoxIcon()
Icon used for JCheckBoxes.static javax.swing.Icon getCheckBoxMenuItemIcon()
Icon used for JCheckButtonMenuItems.static javax.swing.Icon getRadioButtonMenuItemIcon()
Icon used for JRadioButtonMenuItems.static javax.swing.Icon getMenuArrowIcon()
Icon used for arrows in JMenus.static javax.swing.Icon getExpandedTreeIcon()
Icon used in JTrees.static javax.swing.Icon getCollapsedTreeIcon()
Icon used in JTrees.static javax.swing.Icon getComboBoxButtonIcon()
Icon used in JComboBoxes.