Class PlasticXPIconFactory.RadioButtonIcon

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.Icon, javax.swing.plaf.UIResource
    Enclosing class:
    PlasticXPIconFactory

    private static final class PlasticXPIconFactory.RadioButtonIcon
    extends java.lang.Object
    implements javax.swing.Icon, javax.swing.plaf.UIResource, java.io.Serializable
    Paints the the icon and focus border for Plastic XP check boxes.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.awt.Stroke FOCUS_STROKE  
      private static int SIZE  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RadioButtonIcon()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void drawBorder​(java.awt.Graphics2D g2, boolean enabled, int x, int y, int w, int h)  
      private static void drawCheck​(java.awt.Graphics2D g2, java.awt.Component c, boolean enabled, int x, int y, int w, int h)  
      private static void drawFill​(java.awt.Graphics2D g2, boolean pressed, int x, int y, int w, int h)  
      private static void drawFocus​(java.awt.Graphics2D g2, int x, int y, int w, int h)  
      int getIconHeight()  
      int getIconWidth()  
      void paintIcon​(java.awt.Component c, java.awt.Graphics g, int x, int y)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SIZE

        private static final int SIZE
      • FOCUS_STROKE

        private static final java.awt.Stroke FOCUS_STROKE
    • Constructor Detail

      • RadioButtonIcon

        private RadioButtonIcon()
    • Method Detail

      • getIconWidth

        public int getIconWidth()
        Specified by:
        getIconWidth in interface javax.swing.Icon
      • getIconHeight

        public int getIconHeight()
        Specified by:
        getIconHeight in interface javax.swing.Icon
      • paintIcon

        public void paintIcon​(java.awt.Component c,
                              java.awt.Graphics g,
                              int x,
                              int y)
        Specified by:
        paintIcon in interface javax.swing.Icon
      • drawBorder

        private static void drawBorder​(java.awt.Graphics2D g2,
                                       boolean enabled,
                                       int x,
                                       int y,
                                       int w,
                                       int h)
      • drawCheck

        private static void drawCheck​(java.awt.Graphics2D g2,
                                      java.awt.Component c,
                                      boolean enabled,
                                      int x,
                                      int y,
                                      int w,
                                      int h)
      • drawFill

        private static void drawFill​(java.awt.Graphics2D g2,
                                     boolean pressed,
                                     int x,
                                     int y,
                                     int w,
                                     int h)
      • drawFocus

        private static void drawFocus​(java.awt.Graphics2D g2,
                                      int x,
                                      int y,
                                      int w,
                                      int h)