Package com.jgoodies.looks.plastic
Class PlasticIconFactory
- java.lang.Object
-
- com.jgoodies.looks.plastic.PlasticIconFactory
-
final class PlasticIconFactory extends java.lang.ObjectFactory class that vendsIcons 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
Iconornull, wherenullimplies that there is no default icon.- Version:
- $Revision: 1.11 $
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classPlasticIconFactory.CheckBoxIconprivate static classPlasticIconFactory.CheckBoxMenuItemIconprivate static classPlasticIconFactory.CollapsedTreeIconThe plus sign button icon used in trees.private static classPlasticIconFactory.ComboBoxButtonIconThe arrow button used in comboboxes.private static classPlasticIconFactory.ExpandedTreeIconPaints a minus sign button icon used in trees.private static classPlasticIconFactory.MenuArrowIconprivate static classPlasticIconFactory.RadioButtonMenuItemIcon
-
Field Summary
Fields Modifier and Type Field Description private static javax.swing.IconcheckBoxIconprivate static javax.swing.IconcheckBoxMenuItemIconprivate static javax.swing.IconcollapsedTreeIconprivate static javax.swing.IconcomboBoxButtonIconprivate static javax.swing.IconexpandedTreeIconprivate static javax.swing.IconmenuArrowIconprivate static javax.swing.IconradioButtonMenuItemIcon
-
Constructor Summary
Constructors Modifier Constructor Description privatePlasticIconFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voiddrawCheck(java.awt.Graphics g, int x, int y)(package private) static javax.swing.IcongetCheckBoxIcon()Answers anIconused forJCheckBoxes.(package private) static javax.swing.IcongetCheckBoxMenuItemIcon()Answers anIconused forJCheckButtonMenuItems.(package private) static javax.swing.IcongetCollapsedTreeIcon()Answers anIconused inJTrees.(package private) static javax.swing.IcongetComboBoxButtonIcon()Answers anIconused inJComboBoxes.(package private) static javax.swing.IcongetExpandedTreeIcon()Answers anIconused inJTrees.(package private) static javax.swing.IcongetMenuArrowIcon()Answers anIconused for arrows inJMenus.(package private) static javax.swing.IcongetRadioButtonMenuItemIcon()Answers anIconused forJRadioButtonMenuItems.
-
-
-
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 anIconused forJCheckBoxes.
-
getCheckBoxMenuItemIcon
static javax.swing.Icon getCheckBoxMenuItemIcon()
Answers anIconused forJCheckButtonMenuItems.
-
getRadioButtonMenuItemIcon
static javax.swing.Icon getRadioButtonMenuItemIcon()
Answers anIconused forJRadioButtonMenuItems.
-
getMenuArrowIcon
static javax.swing.Icon getMenuArrowIcon()
Answers anIconused for arrows inJMenus.
-
getExpandedTreeIcon
static javax.swing.Icon getExpandedTreeIcon()
Answers anIconused inJTrees.
-
getCollapsedTreeIcon
static javax.swing.Icon getCollapsedTreeIcon()
Answers anIconused inJTrees.
-
getComboBoxButtonIcon
static javax.swing.Icon getComboBoxButtonIcon()
Answers anIconused inJComboBoxes.
-
-