Class PlasticIconFactory


  • final class PlasticIconFactory
    extends java.lang.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 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
    • Constructor Detail

      • PlasticIconFactory

        private PlasticIconFactory()
    • Method Detail

      • drawCheck

        private static void drawCheck​(java.awt.Graphics g,
                                      int x,
                                      int y)
      • getCheckBoxIcon

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

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

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

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

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

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

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