Class Images


  • public class Images
    extends java.lang.Object
    Utility to load and cache images. Maintains a list of known images.
    Author:
    Pinaki Poddar
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.swing.Icon BACK  
      static javax.swing.Icon BUY  
      static javax.swing.Icon CART  
      static javax.swing.Icon DELIVERY  
      static javax.swing.Icon DONE  
      static javax.swing.Icon ERROR  
      static javax.swing.Icon LOGO_OPENBOOKS  
      static javax.swing.Icon LOGO_OPENJPA  
      static javax.swing.Icon NEXT  
      static javax.swing.Icon SEARCH  
      static javax.swing.Icon START  
      static javax.swing.Icon SUPPLY  
      static javax.swing.Icon VIEW_CODE  
      static javax.swing.Icon VIEW_DOMAIN  
      static javax.swing.Icon VIEW_QUERY  
      static javax.swing.Icon VIEW_UNIT  
    • Constructor Summary

      Constructors 
      Constructor Description
      Images()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      protected static javax.swing.ImageIcon createImageIcon​(java.lang.String path)
      Returns an ImageIcon, or null if the path was invalid.
      static javax.swing.Icon getIcon​(java.lang.String name)  
      static javax.swing.Icon getIcon​(java.lang.String name, boolean scale)  
      static javax.swing.Icon getIcon​(java.lang.String name, int width, int height)  
      • Methods inherited from class java.lang.Object

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

      • NEXT

        public static javax.swing.Icon NEXT
      • BACK

        public static javax.swing.Icon BACK
      • DONE

        public static javax.swing.Icon DONE
      • ERROR

        public static javax.swing.Icon ERROR
      • START

        public static javax.swing.Icon START
      • BUY

        public static final javax.swing.Icon BUY
      • DELIVERY

        public static final javax.swing.Icon DELIVERY
      • SUPPLY

        public static final javax.swing.Icon SUPPLY
      • SEARCH

        public static final javax.swing.Icon SEARCH
      • CART

        public static final javax.swing.Icon CART
      • VIEW_UNIT

        public static javax.swing.Icon VIEW_UNIT
      • VIEW_DOMAIN

        public static javax.swing.Icon VIEW_DOMAIN
      • VIEW_CODE

        public static javax.swing.Icon VIEW_CODE
      • VIEW_QUERY

        public static javax.swing.Icon VIEW_QUERY
      • LOGO_OPENBOOKS

        public static final javax.swing.Icon LOGO_OPENBOOKS
      • LOGO_OPENJPA

        public static final javax.swing.Icon LOGO_OPENJPA
    • Constructor Detail

      • Images

        public Images()
    • Method Detail

      • getIcon

        public static javax.swing.Icon getIcon​(java.lang.String name)
      • getIcon

        public static javax.swing.Icon getIcon​(java.lang.String name,
                                               boolean scale)
      • getIcon

        public static javax.swing.Icon getIcon​(java.lang.String name,
                                               int width,
                                               int height)
      • createImageIcon

        protected static javax.swing.ImageIcon createImageIcon​(java.lang.String path)
        Returns an ImageIcon, or null if the path was invalid.