public Image addImage(String location,Image image){
  if (m_maxImageWidth > -1 || m_maxImageHeight > -1) {
    image=getScaledImage(image);
    image.getWidth(null);
  }
  imageCache.put(location,image);
  return image;
}

public Image addImage ( String location , Image image ) { if ( m_maxImageWidth > - 1 || m_maxImageHeight > - 1 ) { image = getScaledImage ( image ) ; image . getWidth ( null ) ; } imageCache . put ( location , image ) ; return image ; }
adds an image associated with a location string to this factory ' s cache . the image will be scaled as dictated by this current factory settings .
