Package openbook.client
Class Images
- java.lang.Object
-
- openbook.client.Images
-
public class Images extends java.lang.ObjectUtility 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.IconBACKstatic javax.swing.IconBUYstatic javax.swing.IconCARTstatic javax.swing.IconDELIVERYstatic javax.swing.IconDONEstatic javax.swing.IconERRORstatic javax.swing.IconLOGO_OPENBOOKSstatic javax.swing.IconLOGO_OPENJPAstatic javax.swing.IconNEXTstatic javax.swing.IconSEARCHstatic javax.swing.IconSTARTstatic javax.swing.IconSUPPLYstatic javax.swing.IconVIEW_CODEstatic javax.swing.IconVIEW_DOMAINstatic javax.swing.IconVIEW_QUERYstatic javax.swing.IconVIEW_UNIT
-
Constructor Summary
Constructors Constructor Description Images()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static javax.swing.ImageIconcreateImageIcon(java.lang.String path)Returns an ImageIcon, or null if the path was invalid.static javax.swing.IcongetIcon(java.lang.String name)static javax.swing.IcongetIcon(java.lang.String name, boolean scale)static javax.swing.IcongetIcon(java.lang.String name, int width, int height)
-
-
-
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
-
-
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.
-
-