Package com.jgoodies.looks.plastic
Class PlasticIconFactory
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticIconFactory
-
final class PlasticIconFactory extends java.lang.Object
Factory class that vendsIcon
s 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
ornull
, wherenull
implies that there is no default icon.- Version:
- $Revision: 1.11 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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
-
Field Summary
Fields Modifier and Type Field 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
-
Constructor Summary
Constructors Modifier Constructor Description private
PlasticIconFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
drawCheck(java.awt.Graphics g, int x, int y)
(package private) static javax.swing.Icon
getCheckBoxIcon()
Answers anIcon
used forJCheckBox
es.(package private) static javax.swing.Icon
getCheckBoxMenuItemIcon()
Answers anIcon
used forJCheckButtonMenuItem
s.(package private) static javax.swing.Icon
getCollapsedTreeIcon()
Answers anIcon
used inJTree
s.(package private) static javax.swing.Icon
getComboBoxButtonIcon()
Answers anIcon
used inJComboBox
es.(package private) static javax.swing.Icon
getExpandedTreeIcon()
Answers anIcon
used inJTree
s.(package private) static javax.swing.Icon
getMenuArrowIcon()
Answers anIcon
used for arrows inJMenu
s.(package private) static javax.swing.Icon
getRadioButtonMenuItemIcon()
Answers anIcon
used forJRadioButtonMenuItem
s.
-
-
-
Field Detail
-
checkBoxIcon
private static javax.swing.Icon checkBoxIcon
-
checkBoxMenuItemIcon
private static javax.swing.Icon checkBoxMenuItemIcon
-
radioButtonMenuItemIcon
private static javax.swing.Icon radioButtonMenuItemIcon
-
menuArrowIcon
private static javax.swing.Icon menuArrowIcon
-
expandedTreeIcon
private static javax.swing.Icon expandedTreeIcon
-
collapsedTreeIcon
private static javax.swing.Icon collapsedTreeIcon
-
comboBoxButtonIcon
private static javax.swing.Icon comboBoxButtonIcon
-
-
Method Detail
-
drawCheck
private static void drawCheck(java.awt.Graphics g, int x, int y)
-
getCheckBoxIcon
static javax.swing.Icon getCheckBoxIcon()
Answers anIcon
used forJCheckBox
es.
-
getCheckBoxMenuItemIcon
static javax.swing.Icon getCheckBoxMenuItemIcon()
Answers anIcon
used forJCheckButtonMenuItem
s.
-
getRadioButtonMenuItemIcon
static javax.swing.Icon getRadioButtonMenuItemIcon()
Answers anIcon
used forJRadioButtonMenuItem
s.
-
getMenuArrowIcon
static javax.swing.Icon getMenuArrowIcon()
Answers anIcon
used for arrows inJMenu
s.
-
getExpandedTreeIcon
static javax.swing.Icon getExpandedTreeIcon()
Answers anIcon
used inJTree
s.
-
getCollapsedTreeIcon
static javax.swing.Icon getCollapsedTreeIcon()
Answers anIcon
used inJTree
s.
-
getComboBoxButtonIcon
static javax.swing.Icon getComboBoxButtonIcon()
Answers anIcon
used inJComboBox
es.
-
-