Class PlasticIconFactory

java.lang.Object
com.jgoodies.looks.plastic.PlasticIconFactory

final class PlasticIconFactory extends Object
Factory class that vends 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.

Version:
$Revision: 1.11 $
  • Field Details

    • checkBoxIcon

      private static Icon checkBoxIcon
    • checkBoxMenuItemIcon

      private static Icon checkBoxMenuItemIcon
    • radioButtonMenuItemIcon

      private static Icon radioButtonMenuItemIcon
    • expandedTreeIcon

      private static Icon expandedTreeIcon
    • collapsedTreeIcon

      private static Icon collapsedTreeIcon
    • comboBoxButtonIcon

      private static Icon comboBoxButtonIcon
  • Constructor Details

    • PlasticIconFactory

      private PlasticIconFactory()
  • Method Details

    • drawCheck

      private static void drawCheck(Graphics g, int x, int y)
    • getCheckBoxIcon

      static Icon getCheckBoxIcon()
      Answers an Icon used for JCheckBoxes.
    • getCheckBoxMenuItemIcon

      static Icon getCheckBoxMenuItemIcon()
      Answers an Icon used for JCheckButtonMenuItems.
    • getRadioButtonMenuItemIcon

      static Icon getRadioButtonMenuItemIcon()
      Answers an Icon used for JRadioButtonMenuItems.
    • getMenuArrowIcon

      static Icon getMenuArrowIcon()
      Answers an Icon used for arrows in JMenus.
    • getExpandedTreeIcon

      static Icon getExpandedTreeIcon()
      Answers an Icon used in JTrees.
    • getCollapsedTreeIcon

      static Icon getCollapsedTreeIcon()
      Answers an Icon used in JTrees.
    • getComboBoxButtonIcon

      static Icon getComboBoxButtonIcon()
      Answers an Icon used in JComboBoxes.