jdk/src/java.desktop/share/classes/javax/swing/plaf/metal/MetalIconFactory.java
changeset 32865 f9cb6e427f9e
parent 25859 3317bb8137f4
child 40434 49d6193f196f
equal deleted inserted replaced
32864:2a338536e642 32865:f9cb6e427f9e
  1615             return 16;
  1615             return 16;
  1616         }
  1616         }
  1617     }  // End class TreeFloppyDriveIcon
  1617     }  // End class TreeFloppyDriveIcon
  1618 
  1618 
  1619 
  1619 
  1620     static private final Dimension folderIcon16Size = new Dimension( 16, 16 );
  1620     private static final Dimension folderIcon16Size = new Dimension( 16, 16 );
  1621 
  1621 
  1622     /**
  1622     /**
  1623      * Utility class for caching icon images.  This is necessary because
  1623      * Utility class for caching icon images.  This is necessary because
  1624      * we need a new image whenever we are rendering into a new
  1624      * we need a new image whenever we are rendering into a new
  1625      * GraphicsConfiguration, but we do not want to keep recreating icon
  1625      * GraphicsConfiguration, but we do not want to keep recreating icon
  1785         public int getShift() { return -1; }
  1785         public int getShift() { return -1; }
  1786         public int getAdditionalHeight() { return 2; }
  1786         public int getAdditionalHeight() { return 2; }
  1787     }
  1787     }
  1788 
  1788 
  1789 
  1789 
  1790     static private final Dimension fileIcon16Size = new Dimension( 16, 16 );
  1790     private static final Dimension fileIcon16Size = new Dimension( 16, 16 );
  1791 
  1791 
  1792     /**
  1792     /**
  1793      * <p>
  1793      * <p>
  1794      * <strong>Warning:</strong>
  1794      * <strong>Warning:</strong>
  1795      * Serialized objects of this class will not be compatible with
  1795      * Serialized objects of this class will not be compatible with
  1885         public int getShift() { return 2; }
  1885         public int getShift() { return 2; }
  1886         public int getAdditionalHeight() { return 4; }
  1886         public int getAdditionalHeight() { return 4; }
  1887     }
  1887     }
  1888 
  1888 
  1889 
  1889 
  1890     static private final Dimension treeControlSize = new Dimension( 18, 18 );
  1890     private static final Dimension treeControlSize = new Dimension( 18, 18 );
  1891 
  1891 
  1892     /**
  1892     /**
  1893      * <p>
  1893      * <p>
  1894      * <strong>Warning:</strong>
  1894      * <strong>Warning:</strong>
  1895      * Serialized objects of this class will not be compatible with
  1895      * Serialized objects of this class will not be compatible with
  2050 
  2050 
  2051   //
  2051   //
  2052   // Menu Icons
  2052   // Menu Icons
  2053   //
  2053   //
  2054 
  2054 
  2055     static private final Dimension menuArrowIconSize = new Dimension( 4, 8 );
  2055     private static final Dimension menuArrowIconSize = new Dimension( 4, 8 );
  2056     static private final Dimension menuCheckIconSize = new Dimension( 10, 10 );
  2056     private static final Dimension menuCheckIconSize = new Dimension( 10, 10 );
  2057     static private final int xOff = 4;
  2057     private static final int xOff = 4;
  2058 
  2058 
  2059     private static class MenuArrowIcon implements Icon, UIResource, Serializable
  2059     private static class MenuArrowIcon implements Icon, UIResource, Serializable
  2060     {
  2060     {
  2061         public void paintIcon( Component c, Graphics g, int x, int y )
  2061         public void paintIcon( Component c, Graphics g, int x, int y )
  2062         {
  2062         {